- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for IsAccessKeyValid (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/auth/credentials_test.go
}{ {alphaNumericTable[:accessKeyMinLen], true}, {alphaNumericTable[:accessKeyMinLen+1], true}, {alphaNumericTable[:accessKeyMinLen-1], false}, } for i, testCase := range testCases { result := IsAccessKeyValid(testCase.accessKey) if result != testCase.expectedResult { t.Fatalf("test %v: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } } func TestIsSecretKeyValid(t *testing.T) {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.4K bytes - Click Count (0) -
cmd/batch-replicate.go
return c.AccessKey == "" && c.SecretKey == "" && c.SessionToken == "" } // Validate validates if credentials are valid func (c BatchJobReplicateCredentials) Validate() error { if !auth.IsAccessKeyValid(c.AccessKey) || !auth.IsSecretKeyValid(c.SecretKey) { return errInvalidArgument } return nil } // BatchJobReplicateTarget describes target element of the replication job that receives
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 01 12:53:30 GMT 2024 - 6.3K bytes - Click Count (0)