MCPcopy
hub / github.com/minio/minio-go / NewArn

Function NewArn

pkg/notification/notification.go:103–111  ·  view source on GitHub ↗

NewArn creates new ARN based on the given partition, service, region, account id and resource

(partition, service, region, accountID, resource string)

Source from the content-addressed store, hash-verified

101
102// NewArn creates new ARN based on the given partition, service, region, account id and resource
103func NewArn(partition, service, region, accountID, resource string) Arn {
104 return Arn{
105 Partition: partition,
106 Service: service,
107 Region: region,
108 AccountID: accountID,
109 Resource: resource,
110 }
111}
112
113var (
114 // ErrInvalidArnPrefix is returned when ARN string format does not start with 'arn'

Callers 5

testBucketNotificationFunction · 0.92
mainFunction · 0.92
TestConfig_EqualFunction · 0.85
TestNewArnFromStringFunction · 0.85
NewArnFromStringFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestConfig_EqualFunction · 0.68
TestNewArnFromStringFunction · 0.68