Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 141 for Parse (0.15 sec)

  1. cmd/httprange_test.go

    		rs, err := parseRequestRangeSpec(urs)
    		if err == nil {
    			t.Errorf("Case %d: Did not get an expected error - got %v", i, rs)
    		}
    		if isErrInvalidRange(err) {
    			t.Errorf("Case %d: Got invalid range error instead of a parse error", i)
    		}
    		if rs != nil {
    			t.Errorf("Case %d: Got non-nil rs though err != nil: %v", i, rs)
    		}
    	}
    
    	invalidRangeSpecs := []string{
    		"bytes=5-3",
    		"bytes=10-10",
    		"bytes=10-",
    		"bytes=100-",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    		return
    	}
    
    	// Read escaped copy source path to check for parameters.
    	cpSrcPath := r.Header.Get(xhttp.AmzCopySource)
    	var vid string
    	if u, err := url.Parse(cpSrcPath); err == nil {
    		vid = strings.TrimSpace(u.Query().Get(xhttp.VersionID))
    		// Note that url.Parse does the unescaping
    		cpSrcPath = u.Path
    	}
    
    	srcBucket, srcObject := path2BucketObject(cpSrcPath)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  3. cmd/generic-handlers_test.go

    )
    
    // Tests request guess function for net/rpc requests.
    func TestGuessIsRPC(t *testing.T) {
    	if guessIsRPCReq(nil) {
    		t.Fatal("Unexpected return for nil request")
    	}
    
    	u, err := url.Parse("http://localhost:9000/minio/lock")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	r := &http.Request{
    		Proto:  "HTTP/1.0",
    		Method: http.MethodPost,
    		URL:    u,
    	}
    	if !guessIsRPCReq(r) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. internal/jwt/parser.go

    // MarshalJSON marshals the MapClaims struct
    func (c *MapClaims) MarshalJSON() ([]byte, error) {
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	return json.Marshal(c.MapClaims)
    }
    
    // ParseWithStandardClaims - parse the token string, valid methods.
    func ParseWithStandardClaims(tokenStr string, claims *StandardClaims, key []byte) error {
    	// Key is not provided.
    	if key == nil {
    		// keyFunc was not provided, return error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  5. Makefile

    	$(eval LDFLAGS := $(shell MINIO_RELEASE="RELEASE" MINIO_HOTFIX="hotfix.$(shell git rev-parse --short HEAD)" go run buildscripts/gen-ldflags.go $(shell git describe --tags --abbrev=0 | \
        sed 's#RELEASE\.\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)T\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)Z#\1-\2-\3T\4:\5:\6Z#')))
    	$(eval VERSION := $(shell git describe --tags --abbrev=0).hotfix.$(shell git rev-parse --short HEAD))
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:55:41 GMT 2024
    - 10.3K bytes
    - Viewed (1)
  6. internal/config/dns/operator_dns.go

    	if err != nil {
    		return err
    	}
    
    	r.Header.Set("Authorization", "Bearer "+ss)
    	return nil
    }
    
    func (c *OperatorDNS) endpoint(bucket string, delete bool) (string, error) {
    	u, err := url.Parse(c.Endpoint)
    	if err != nil {
    		return "", err
    	}
    	q := u.Query()
    	q.Add("bucket", bucket)
    	q.Add("delete", strconv.FormatBool(delete))
    	u.RawQuery = q.Encode()
    	return u.String(), nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  7. internal/crypto/metadata_test.go

    		metadata := S3.CreateMetadata(nil, test.KeyID, test.SealedDataKey, test.SealedKey)
    		keyID, kmsKey, sealedKey, err := S3.ParseMetadata(metadata)
    		if err != nil {
    			t.Errorf("Test %d: failed to parse metadata: %v", i, err)
    			continue
    		}
    		if keyID != test.KeyID {
    			t.Errorf("Test %d: Key-ID mismatch: got '%s' - want '%s'", i, keyID, test.KeyID)
    		}
    		if !bytes.Equal(kmsKey, test.SealedDataKey) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. cmd/update.go

    //
    // An official binary's version string is the release time formatted
    // with RFC3339 (in UTC) - e.g. `2017-09-29T19:16:56Z`
    func minioVersionToReleaseTime(version string) (releaseTime time.Time, err error) {
    	return time.Parse(time.RFC3339, version)
    }
    
    // releaseTimeToReleaseTag - converts a time to a string formatted as
    // an official MinIO release tag.
    //
    // An official minio release tag looks like:
    // `RELEASE.2017-09-29T19-16-56Z`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. cmd/object-handlers.go

    	}
    
    	// Read escaped copy source path to check for parameters.
    	cpSrcPath := r.Header.Get(xhttp.AmzCopySource)
    	var vid string
    	if u, err := url.Parse(cpSrcPath); err == nil {
    		vid = strings.TrimSpace(u.Query().Get(xhttp.VersionID))
    		// Note that url.Parse does the unescaping
    		cpSrcPath = u.Path
    	}
    
    	srcBucket, srcObject := path2BucketObject(cpSrcPath)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  10. cmd/iam.go

    }
    
    // GetRolePolicy - returns policies associated with a role ARN.
    func (sys *IAMSys) GetRolePolicy(arnStr string) (arn.ARN, string, error) {
    	roleArn, err := arn.Parse(arnStr)
    	if err != nil {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN parse err: %v", err)
    	}
    	rolePolicy, ok := sys.rolesMap[roleArn]
    	if !ok {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN %s is not defined.", arnStr)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top