Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for FORM (0.12 sec)

  1. cmd/signature-v4_test.go

    	now := UTCNow()
    	accessKey := globalActiveCred.AccessKey
    
    	testCases := []struct {
    		form     http.Header
    		expected APIErrorCode
    	}{
    		// (0) It should fail if 'X-Amz-Credential' is missing.
    		{
    			form:     http.Header{},
    			expected: ErrCredMalformed,
    		},
    		// (1) It should fail if the access key is incorrect.
    		{
    			form: http.Header{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  2. cmd/bucket-policy.go

    		}
    		if existingValues, found := args[key]; found {
    			args[key] = append(existingValues, values...)
    		} else {
    			args[key] = values
    		}
    	}
    
    	cloneURLValues := make(url.Values, len(r.Form))
    	for k, v := range r.Form {
    		cloneURLValues[k] = v
    	}
    
    	for _, objLock := range []string{
    		xhttp.AmzObjectLockMode,
    		xhttp.AmzObjectLockLegalHold,
    		xhttp.AmzObjectLockRetainUntilDate,
    	} {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. cmd/peer-rest-server.go

    		s.writeErrorResponse(w, errServerNotInitialized)
    		return
    	}
    
    	sizeStr := r.Form.Get(peerRESTSize)
    	durationStr := r.Form.Get(peerRESTDuration)
    	concurrentStr := r.Form.Get(peerRESTConcurrent)
    	storageClass := r.Form.Get(peerRESTStorageClass)
    	bucketName := r.Form.Get(peerRESTBucket)
    	enableSha256 := r.Form.Get(peerRESTEnableSha256) == "true"
    
    	size, err := strconv.Atoi(sizeStr)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  4. cmd/storage-rest-server.go

    		return
    	}
    	origvolume := r.Form.Get(storageRESTOrigVolume)
    	volume := r.Form.Get(storageRESTVolume)
    	filePath := r.Form.Get(storageRESTFilePath)
    	versionID := r.Form.Get(storageRESTVersionID)
    	readData, err := strconv.ParseBool(r.Form.Get(storageRESTReadData))
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    	healing, err := strconv.ParseBool(r.Form.Get(storageRESTHealing))
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  5. cmd/signature-v4-parser.go

    	return signedHeaders, ErrNone
    }
    
    // signValues data type represents structured form of AWS Signature V4 header.
    type signValues struct {
    	Credential    credentialHeader
    	SignedHeaders []string
    	Signature     string
    }
    
    // preSignValues data type represents structured form of AWS Signature V4 query string.
    type preSignValues struct {
    	signValues
    	Date    time.Time
    	Expires time.Duration
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  6. internal/lock/lock_windows.go

    	if len(path) < 248 {
    		// Don't fix. (This is how Go 1.7 and earlier worked,
    		// not automatically generating the \\?\ form)
    		return path
    	}
    
    	// The extended form begins with \\?\, as in
    	// \\?\c:\windows\foo.txt or \\?\UNC\server\share\foo.txt.
    	// The extended form disables evaluation of . and .. path
    	// elements and disables the interpretation of / as equivalent
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  7. internal/bpool/bpool.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package bpool
    
    import "github.com/klauspost/reedsolomon"
    
    // BytePoolCap implements a leaky pool of []byte in the form of a bounded channel.
    type BytePoolCap struct {
    	c    chan []byte
    	w    int
    	wcap int
    }
    
    // NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new
    // byte arrays sized based on width.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/endtoend_test.go

    		if strings.HasPrefix(line, "#include ") {
    			continue
    		}
    
    		// Ignore GLOBL.
    		if strings.HasPrefix(line, "GLOBL ") {
    			continue
    		}
    
    		// The general form of a test input line is:
    		//	// comment
    		//	INST args [// printed form] [// hex encoding]
    		parts := strings.Split(line, "//")
    		printed := strings.TrimSpace(parts[0])
    		if printed == "" || strings.HasSuffix(printed, ":") { // empty or label
    			continue
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  9. cmd/kms-handlers.go

    		return
    	}
    
    	manager, ok := GlobalKMS.(kms.KeyManager)
    	if !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    
    	if err := manager.CreateKey(ctx, r.Form.Get("key-id")); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	writeSuccessResponseHeadersOnly(w)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  10. internal/config/identity/openid/providercfg.go

    	}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, p.DiscoveryDoc.UserInfoEndpoint, nil)
    	if err != nil {
    		return nil, err
    	}
    
    	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
    	if accessToken != "" {
    		req.Header.Set("Authorization", "Bearer "+accessToken)
    	}
    
    	client := &http.Client{
    		Transport: transport,
    	}
    
    	resp, err := client.Do(req)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top