- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ToARN (0.02 sec)
-
internal/event/targetid.go
type TargetID struct { ID string Name string } // String - returns string representation. func (tid TargetID) String() string { return tid.ID + ":" + tid.Name } // ToARN - converts to ARN. func (tid TargetID) ToARN(region string) ARN { return ARN{TargetID: tid, region: region} } // MarshalJSON - encodes to JSON data. func (tid TargetID) MarshalJSON() ([]byte, error) { return json.Marshal(tid.String())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.8K bytes - Viewed (0) -
internal/config/lambda/event/targetid.go
type TargetID struct { ID string Name string } // String - returns string representation. func (tid TargetID) String() string { return tid.ID + ":" + tid.Name } // ToARN - converts to ARN. func (tid TargetID) ToARN(region string) ARN { return ARN{TargetID: tid, region: region} } // MarshalJSON - encodes to JSON data. func (tid TargetID) MarshalJSON() ([]byte, error) { return json.Marshal(tid.String())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 1.8K bytes - Viewed (0) -
internal/config/lambda/event/targetlist.go
func (list *TargetList) List(region string) []ARN { list.RLock() defer list.RUnlock() keys := make([]ARN, 0, len(list.targets)) for k := range list.targets { keys = append(keys, k.ToARN(region)) } return keys } // TargetMap - returns available targets. func (list *TargetList) TargetMap() map[TargetID]Target { list.RLock() defer list.RUnlock()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 4.3K bytes - Viewed (0) -
internal/config/lambda/event/targetid_test.go
region string expectedARN ARN }{ {tid, "", ARN{TargetID: tid, region: ""}}, {tid, "us-east-1", ARN{TargetID: tid, region: "us-east-1"}}, } for i, testCase := range testCases { arn := testCase.tid.ToARN(testCase.region) if arn != testCase.expectedARN { t.Fatalf("test %v: ARN: expected: %v, got: %v", i+1, testCase.expectedARN, arn) } } } func TestTargetDMarshalJSON(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 3.5K bytes - Viewed (0) -
internal/event/targetid_test.go
region string expectedARN ARN }{ {tid, "", ARN{TargetID: tid, region: ""}}, {tid, "us-east-1", ARN{TargetID: tid, region: "us-east-1"}}, } for i, testCase := range testCases { arn := testCase.tid.ToARN(testCase.region) if arn != testCase.expectedARN { t.Fatalf("test %v: ARN: expected: %v, got: %v", i+1, testCase.expectedARN, arn) } } } func TestTargetDMarshalJSON(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
cmd/event-notification.go
// This list is only meant for external targets, filter // this out pro-actively. if !strings.HasPrefix(targetID.ID, "httpclient+") { arns = append(arns, targetID.ToARN(region).String()) } } return arns } // Loads notification policies for all buckets into EventNotifier. func (evnot *EventNotifier) set(bucket string, meta BucketMetadata) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 21 22:22:24 UTC 2024 - 7.7K bytes - Viewed (0)