bucket

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 28 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 (
	GroupVersionResource = svcapitypes.GroupVersion.WithResource("buckets")
	GroupKind            = metav1.GroupKind{
		Group: "s3.services.k8s.aws",
		Kind:  "Bucket",
	}
)
View Source
var (
	DefaultAccelerationStatus     = svcsdk.BucketAccelerateStatusSuspended
	DefaultRequestPayer           = svcsdk.PayerBucketOwner
	DefaultVersioningStatus       = svcsdk.BucketVersioningStatusSuspended
	DefaultACL                    = svcsdk.BucketCannedACLPrivate
	DefaultPublicBlockAccessValue = false
	DefaultPublicBlockAccess      = svcapitypes.PublicAccessBlockConfiguration{
		BlockPublicACLs:       &DefaultPublicBlockAccessValue,
		BlockPublicPolicy:     &DefaultPublicBlockAccessValue,
		IgnorePublicACLs:      &DefaultPublicBlockAccessValue,
		RestrictPublicBuckets: &DefaultPublicBlockAccessValue,
	}
	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

type ConfigurationAction added in v0.0.7

type ConfigurationAction int

ConfigurationAction stores the possible actions that can be performed on any of the elements of a configuration list

const (
	ConfigurationActionNone ConfigurationAction = iota
	ConfigurationActionPut
	ConfigurationActionDelete
	ConfigurationActionUpdate
)

Jump to

Keyboard shortcuts

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