bucket

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CannedACLPrivate             = "private"
	CannedPublicRead             = "public-read"
	CannedPublicReadWrite        = "public-read-write"
	CannedAWSExecRead            = "aws-exec-read"
	CannedAuthenticatedRead      = "authenticated-read"
	CannedBucketOwnerRead        = "bucket-owner-read"
	CannedBucketOwnerFullControl = "bucket-owner-full-control"
	CannedLogDeliveryWrite       = "log-delivery-write"
)

Only some of these exist in the SDK, so duplicating them all here

View Source
var (
	GranteeZATeamID              = "6aa5a366c34c1cbe25dc49211496e913e0351eb0e8c37aa3477e40942ec6b97c"
	GranteeLogDeliveryURI        = "http://acs.amazonaws.com/groups/s3/LogDelivery"
	GranteeAllUsersURI           = "http://acs.amazonaws.com/groups/global/AllUsers"
	GranteeAuthenticatedUsersURI = "http://acs.amazonaws.com/groups/global/AuthenticatedUsers"
)
View Source
var (
	HeaderUserIDFormat = "id=%s"
	HeaderURIFormat    = "uri=%s"
)
View Source
var (
	DefaultAccelerationStatus = svcsdk.BucketAccelerateStatusSuspended
	DefaultRequestPayer       = svcsdk.PayerBucketOwner
	DefaultVersioningStatus   = svcsdk.BucketVersioningStatusSuspended
	DefaultACL                = svcsdk.BucketCannedACLPrivate
)
View Source
var (
	CannedACLJoinDelimiter = "|"
)

Functions

func GetHeadersFromGrants

func GetHeadersFromGrants(
	resp *svcsdk.GetBucketAclOutput,
) aclGrantHeaders

GetHeadersFromGrants will return a list of grant headers from grants

func GetPossibleCannedACLsFromGrants

func GetPossibleCannedACLsFromGrants(
	resp *svcsdk.GetBucketAclOutput,
) []string

GetPossibleCannedACLsFromGrants will return a list of canned ACLs that match the list of grants. This method will return nil if the grants did not match any canned ACLs.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL