- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for CreateCredentials (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/auth/credentials.go
func GetNewCredentials() (cred Credentials, err error) { return GetNewCredentialsWithMetadata(map[string]any{}, "") } // CreateCredentials returns new credential with the given access key and secret key. // Error is returned if given access key or secret key are invalid length. func CreateCredentials(accessKey, secretKey string) (cred Credentials, err error) { if !IsAccessKeyValid(accessKey) { return cred, ErrInvalidAccessKeyLength
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.8K bytes - Click Count (0) -
internal/auth/credentials_test.go
// Smaller secret key. {alphaNumericTable[:accessKeyMinLen], alphaNumericTable[:secretKeyMinLen-1], false, ErrInvalidSecretKeyLength}, } for i, testCase := range testCases { cred, err := CreateCredentials(testCase.accessKey, testCase.secretKey) if err != nil { if testCase.expectedErr == nil { t.Fatalf("test %v: error: expected = <nil>, got = %v", i+1, err) }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.4K bytes - Click Count (0)