- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for APIErrorCode (0.29 sec)
-
cmd/signature-v4-utils_test.go
t.Fatalf("Expected the APIErrorCode to %d, but got %d", ErrUnsignedHeaders, errCode) } // set headers value through Get parameter inputQuery.Add("x-amz-server-side-encryption", xhttp.AmzEncryptionAES) r.URL.RawQuery = inputQuery.Encode() r.ParseForm() _, errCode = extractSignedHeaders(signedHeaders, r) if errCode != ErrNone { t.Fatalf("Expected the APIErrorCode to be %d, but got %d", ErrNone, errCode) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
cmd/api-resources.go
import ( "encoding/base64" "net/url" "strconv" ) // Parse bucket url queries func getListObjectsV1Args(values url.Values) (prefix, marker, delimiter string, maxkeys int, encodingType string, errCode APIErrorCode) { errCode = ErrNone if values.Get("max-keys") != "" { var err error if maxkeys, err = strconv.Atoi(values.Get("max-keys")); err != nil { errCode = ErrInvalidMaxKeys return } } else {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Jun 07 18:25:26 UTC 2023 - 4.3K bytes - Viewed (0) -
cmd/apierrorcode_string.go
func (i APIErrorCode) String() string { if i < 0 || i >= APIErrorCode(len(_APIErrorCode_index)-1) { return "APIErrorCode(" + strconv.FormatInt(int64(i), 10) + ")" } return _APIErrorCode_name[_APIErrorCode_index[i]:_APIErrorCode_index[i+1]]
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 21.4K bytes - Viewed (0) -
cmd/signature-v4-parser.go
c.scope.date.Format(yyyymmdd), c.scope.region, c.scope.service, c.scope.request, }, SlashSeparator) } func getReqAccessKeyV4(r *http.Request, region string, stype serviceType) (auth.Credentials, bool, APIErrorCode) { ch, s3Err := parseCredentialHeader("Credential="+r.Form.Get(xhttp.AmzCredential), region, stype) if s3Err != ErrNone { // Strip off the Algorithm prefix.
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0) -
cmd/signature-v4.go
return hex.EncodeToString(sumHMAC(signingKey, []byte(stringToSign))) } // Check to see if Policy is signed correctly. func doesPolicySignatureMatch(formValues http.Header) (auth.Credentials, APIErrorCode) { // For SignV2 - Signature field will be valid if _, ok := formValues[xhttp.AmzSignatureV2]; ok { return doesPolicySignatureV2Match(formValues) } return doesPolicySignatureV4Match(formValues) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu May 16 23:13:47 UTC 2024 - 12.4K bytes - Viewed (0) -
cmd/auth-handler.go
// for authenticated requests validates IAM policies. // // returns APIErrorCode if any to be replied to the client. func checkRequestAuthType(ctx context.Context, r *http.Request, action policy.Action, bucketName, objectName string) (s3Err APIErrorCode) { logger.GetReqInfo(ctx).BucketName = bucketName logger.GetReqInfo(ctx).ObjectName = objectName
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Sep 17 16:45:46 UTC 2024 - 26.1K bytes - Viewed (0) -
cmd/signature-v2_test.go
t.Fatal(err) } now := UTCNow() var ( accessKey = globalActiveCred.AccessKey secretKey = globalActiveCred.SecretKey ) testCases := []struct { queryParams map[string]string expected APIErrorCode }{ // (0) Should error without a set URL query. { expected: ErrInvalidQueryParams, }, // (1) Should error on an invalid access key. { queryParams: map[string]string{
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Oct 14 10:08:40 UTC 2022 - 8K bytes - Viewed (0) -
cmd/bucket-listobjects-handlers.go
"net/http" "strconv" "strings" "github.com/minio/minio/internal/logger" "github.com/minio/mux" "github.com/minio/pkg/v3/policy" ) // Validate all the ListObjects query arguments, returns an APIErrorCode // if one of the args do not meet the required conditions. // Special conditions required by MinIO server are as below // - delimiter if set should be equal to '/', otherwise the request is rejected.
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 11.4K bytes - Viewed (0) -
cmd/signature-v2.go
// AWS S3 Signature V2 calculation rule is give here: // http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationStringToSign func doesPolicySignatureV2Match(formValues http.Header) (auth.Credentials, APIErrorCode) { accessKey := formValues.Get(xhttp.AmzAccessKeyID) r := &http.Request{Header: formValues} cred, _, s3Err := checkKeyValid(r, accessKey) if s3Err != ErrNone { return cred, s3Err }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.2K bytes - Viewed (0) -
cmd/api-errors_test.go
package cmd import ( "context" "errors" "testing" "github.com/minio/minio/internal/crypto" "github.com/minio/minio/internal/hash" ) var toAPIErrorTests = []struct { err error errCode APIErrorCode }{ {err: hash.BadDigest{}, errCode: ErrBadDigest}, {err: hash.SHA256Mismatch{}, errCode: ErrContentSHA256Mismatch}, {err: IncompleteBody{}, errCode: ErrIncompleteBody},
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 25 15:13:08 UTC 2023 - 3.4K bytes - Viewed (0)