- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for ARN (0.11 sec)
-
internal/event/arn.go
import ( "encoding/xml" "strings" ) // ARN - SQS resource name representation. type ARN struct { TargetID region string } // String - returns string representation. func (arn ARN) String() string { if arn.TargetID.ID == "" && arn.TargetID.Name == "" && arn.region == "" { return "" } return "arn:minio:sqs:" + arn.region + ":" + arn.TargetID.String() } // MarshalXML - encodes to XML data.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.1K bytes - Viewed (0) -
internal/arn/arn.go
func (arn ARN) String() string { return strings.Join( []string{ arnPrefixArn, arn.Partition, arn.Service, arn.Region, "", // account-id is always empty in this implementation arn.ResourceType + "/" + arn.ResourceID, }, ":", ) } // Parse - parses an ARN string into a type. func Parse(arnStr string) (arn ARN, err error) { ps := strings.Split(arnStr, ":")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 08:31:34 UTC 2024 - 3.5K bytes - Viewed (0) -
internal/config/lambda/event/arn.go
package event import ( "strings" ) // ARN - SQS resource name representation. type ARN struct { TargetID region string } // String - returns string representation. func (arn ARN) String() string { if arn.TargetID.ID == "" && arn.TargetID.Name == "" && arn.region == "" { return "" } return "arn:minio:s3-object-lambda:" + arn.region + ":" + arn.TargetID.String() }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 1.6K bytes - Viewed (0) -
internal/event/arn_test.go
data []byte expectedARN *ARN expectErr bool }{ {[]byte("<ARN></ARN>"), nil, true}, {[]byte("<ARN>arn:minio:sqs:::</ARN>"), nil, true}, {[]byte("<ARN>arn:minio:sqs::1:webhook</ARN>"), &ARN{TargetID{"1", "webhook"}, ""}, false}, {[]byte("<ARN>arn:minio:sqs:us-east-1:1:webhook</ARN>"), &ARN{TargetID{"1", "webhook"}, "us-east-1"}, false}, } for i, testCase := range testCases { arn := &ARN{}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.8K bytes - Viewed (0) -
internal/event/config.go
func (q Queue) Validate(region string, targetList *TargetList) error { if q.ARN.region == "" { if !targetList.Exists(q.ARN.TargetID) { return &ErrARNNotFound{q.ARN} } return nil } if region != "" && q.ARN.region != region { return &ErrUnknownRegion{q.ARN.region} } if !targetList.Exists(q.ARN.TargetID) { return &ErrARNNotFound{q.ARN} } return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 8.4K bytes - Viewed (0) -
internal/event/errors.go
} // ErrARNNotFound - ARN not found error. type ErrARNNotFound struct { ARN ARN } func (err ErrARNNotFound) Error() string { return fmt.Sprintf("ARN '%v' not found", err.ARN) } // ErrInvalidARN - invalid ARN error. type ErrInvalidARN struct { ARN string } func (err ErrInvalidARN) Error() string { return fmt.Sprintf("invalid ARN '%v'", err.ARN) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 4.1K bytes - Viewed (0) -
internal/bucket/bandwidth/monitor_test.go
test1Want := make(map[BucketOptions]Details) test1Want[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = Details{LimitInBytesPerSecond: 1024 * 1024, CurrentBandwidthInBytesPerSecond: 0} test1Want2 := make(map[BucketOptions]Details) test1Want2[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = Details{ LimitInBytesPerSecond: 1024 * 1024,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 06 03:21:59 UTC 2023 - 4.3K bytes - Viewed (0) -
internal/bucket/replication/replication.go
} // HasExistingObjectReplication returns true if any of the rule returns 'ExistingObjects' replication. func (c Config) HasExistingObjectReplication(arn string) (hasARN, isEnabled bool) { for _, rule := range c.Rules { if rule.Destination.ARN == arn || c.RoleArn == arn { if !hasARN { hasARN = true } if rule.ExistingObjectReplication.Status == Enabled { return true, true } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Mar 28 17:44:56 UTC 2024 - 8.9K bytes - Viewed (0) -
internal/arn/arn_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 08:31:34 UTC 2024 - 5.1K bytes - Viewed (0) -
internal/config/lambda/event/arn_test.go
func TestARNString(t *testing.T) { testCases := []struct { arn ARN expectedResult string }{ {ARN{}, ""}, {ARN{TargetID{"1", "webhook"}, ""}, "arn:minio:s3-object-lambda::1:webhook"}, {ARN{TargetID{"1", "webhook"}, "us-east-1"}, "arn:minio:s3-object-lambda:us-east-1:1:webhook"}, } for i, testCase := range testCases { result := testCase.arn.String() if result != testCase.expectedResult {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 2.2K bytes - Viewed (0)