- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for if (0.12 sec)
-
internal/arn/arn.go
// ps[3] is region and is not validated here. If the region is invalid, // the ARN would not match any configured ARNs in the server. if ps[4] != "" { err = errors.New("invalid ARN - unsupported account-id field") return } res := strings.SplitN(ps[5], "/", 2) if len(res) != 2 { err = errors.New("invalid ARN - resource does not contain a \"/\"") return } if res[0] != string(arnResourceTypeRole) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 08:31:34 GMT 2024 - 3.5K bytes - Viewed (0) -
internal/config/lambda/event/arn.go
func ParseARN(s string) (*ARN, error) { // ARN must be in the format of arn:minio:s3-object-lambda:<REGION>:<ID>:<TYPE> if !strings.HasPrefix(s, "arn:minio:s3-object-lambda:") { return nil, &ErrInvalidARN{s} } tokens := strings.Split(s, ":") if len(tokens) != 6 { return nil, &ErrInvalidARN{s} } if tokens[4] == "" || tokens[5] == "" { return nil, &ErrInvalidARN{s} } return &ARN{ region: tokens[3],
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Mar 07 16:12:41 GMT 2023 - 1.6K bytes - Viewed (0)