bucket

package
v0.0.0-...-d58c982 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ErrSyncingPutProperty = "Error syncing property '%s'"

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 FromACKTags

func FromACKTags(tags acktags.Tags) []*svcapitypes.Tag

FromACKTags converts the tags parameter into []*svcapitypes.Tag shape. This method helps in setting the tags back inside AWSResource after merging default controller tags with existing resource tags.

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.

func ToACKTags

func ToACKTags(tags []*svcapitypes.Tag) acktags.Tags

ToACKTags converts the tags parameter into 'acktags.Tags' shape. This method helps in creating the hub(acktags.Tags) for merging default controller tags with existing resource tags.

Types

type ConfigurationAction

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