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

Method GetBucketPolicy

core.go:137–139  ·  view source on GitHub ↗

GetBucketPolicy - fetches bucket access policy for a given bucket.

(ctx context.Context, bucket string)

Source from the content-addressed store, hash-verified

135
136// GetBucketPolicy - fetches bucket access policy for a given bucket.
137func (c Core) GetBucketPolicy(ctx context.Context, bucket string) (string, error) {
138 return c.getBucketPolicy(ctx, bucket)
139}
140
141// PutBucketPolicy - applies a new bucket access policy for a given bucket.
142func (c Core) PutBucketPolicy(ctx context.Context, bucket, bucketPolicy string) error {

Callers 2

TestGetBucketPolicyFunction · 0.95
mainFunction · 0.45

Calls 1

getBucketPolicyMethod · 0.80

Tested by 1

TestGetBucketPolicyFunction · 0.76