Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 188 for expects (0.17 sec)

  1. internal/hash/checksum.go

    			if res[part] == nil {
    				res[part] = make(map[string]string, 1)
    			}
    			res[part][typ.String()] = cs
    		}
    	}
    	return res
    }
    
    // NewChecksumWithType is similar to NewChecksumString but expects input algo of ChecksumType.
    func NewChecksumWithType(alg ChecksumType, value string) *Checksum {
    	if !alg.IsSet() {
    		return nil
    	}
    	bvalue, err := base64.StdEncoding.DecodeString(value)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. internal/jwt/parser.go

    			if string(key) == "accessKey" {
    				if dataType != jsonparser.String {
    					return errors.New("accessKey: Expected string")
    				}
    				c.AccessKey, err = jsonparser.ParseString(value)
    				return err
    			}
    			if string(key) == "aud" {
    				if dataType != jsonparser.String {
    					return errors.New("aud: Expected string")
    				}
    				c.Audience, err = jsonparser.ParseString(value)
    				return err
    			}
    		case 'e':
    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)
  3. cmd/handler-utils.go

    			desc = fmt.Sprintf("Server expects client requests with 'admin' API version '%s', found '%s', please upgrade the client to latest releases", madmin.AdminAPIVersion, version)
    		case madmin.AdminAPIVersion:
    			desc = fmt.Sprintf("This 'admin' API is not supported by server in '%s'", getMinioMode())
    		default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  4. internal/s3select/sql/funceval.go

    	s, ok := v.ToString()
    	if !ok {
    		err := fmt.Errorf("%s/%s expects a string argument", sqlFnCharLength, sqlFnCharacterLength)
    		return nil, errIncorrectSQLFunctionArgumentType(err)
    	}
    	return FromInt(int64(len([]rune(s)))), nil
    }
    
    func lowerCase(v *Value) (*Value, error) {
    	inferTypeAsString(v)
    	s, ok := v.ToString()
    	if !ok {
    		err := fmt.Errorf("%s expects a string argument", sqlFnLower)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  5. cmd/object_api_suite_test.go

    			t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "newPrefix", result.Objects[0].Name)
    		}
    		if result.Objects[1].Name != "newPrefix2" {
    			t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "newPrefix", result.Objects[1].Name)
    		}
    		if result.Objects[2].Name != "obj0" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  6. internal/hash/reader_test.go

    		t.Errorf("Expected md5base64 \"4vxxTEcn7pOV8yTNLn8zHw==\", got \"%s\"", base64.StdEncoding.EncodeToString(md5sum))
    	}
    	if r.Size() != 4 {
    		t.Errorf("Expected size 4, got %d", r.Size())
    	}
    	if r.ActualSize() != 4 {
    		t.Errorf("Expected size 4, got %d", r.ActualSize())
    	}
    	expectedMD5, err := hex.DecodeString("e2fc714c4727ee9395f324cd2e7f331f")
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  7. cmd/erasure-object_test.go

    			if tt.expectedError != nil && err == nil {
    				t.Errorf("Expected %s, got %s", tt.expectedError, err)
    			}
    			if tt.expectedError == nil && err != nil {
    				t.Errorf("Expected %s, got %s", tt.expectedError, err)
    			}
    			if tt.expectedReadQuorum != actualReadQuorum {
    				t.Errorf("Expected Read Quorum %d, got %d", tt.expectedReadQuorum, actualReadQuorum)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  8. cmd/encryption-v1_test.go

    	}
    	if encOff != 595127964 {
    		t.Fatalf("Test: expected %d, got %d", 595127964, encOff)
    	}
    	if encLength != 32796 {
    		t.Fatalf("Test: expected %d, got %d", 32796, encLength)
    	}
    	if skipLen != 32756 {
    		t.Fatalf("Test: expected %d, got %d", 32756, skipLen)
    	}
    	if seqNumber != 4538 {
    		t.Fatalf("Test: expected %d, got %d", 4538, seqNumber)
    	}
    	if partStart != 1 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  9. internal/crypto/metadata_test.go

    }
    
    var removeInternalEntriesTests = []struct {
    	Metadata, Expected map[string]string
    }{
    	{ // 0
    		Metadata: map[string]string{
    			MetaMultipart:         "",
    			MetaIV:                "",
    			MetaAlgorithm:         "",
    			MetaSealedKeySSEC:     "",
    			MetaSealedKeyS3:       "",
    			MetaKeyID:             "",
    			MetaDataEncryptionKey: "",
    		},
    		Expected: map[string]string{},
    	},
    	{ // 1
    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)
  10. cmd/object-api-errors.go

    	return "size of the object greater than what is allowed(5G)"
    }
    
    // ObjectTooSmall error returned when the size of the object < what is expected.
    type ObjectTooSmall GenericError
    
    func (e ObjectTooSmall) Error() string {
    	return "size of the object less than what is expected"
    }
    
    // OperationTimedOut - a timeout occurred.
    type OperationTimedOut struct{}
    
    func (e OperationTimedOut) Error() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top