- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsSecretKeyValid (0.06 sec)
-
cmd/batch-replicate.go
} // 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 // the filtered data from source
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 6.3K bytes - Viewed (0) -
internal/auth/credentials_test.go
}{ {alphaNumericTable[:secretKeyMinLen], true}, {alphaNumericTable[:secretKeyMinLen+1], true}, {alphaNumericTable[:secretKeyMinLen-1], false}, } for i, testCase := range testCases { result := IsSecretKeyValid(testCase.secretKey) if result != testCase.expectedResult { t.Fatalf("test %v: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } } func TestGetNewCredentials(t *testing.T) {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.4K bytes - Viewed (0)