bucketpolicy

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArePoliciesSame

func ArePoliciesSame(p1, p2 *storage.Policy) bool

ArePoliciesSame compares and returns true if two policies are same

func BindRoleToMember

func BindRoleToMember(in v1alpha1.BucketPolicyMemberParameters, sp *storage.Policy) bool

BindRoleToMember updates *storage.Policy instance with BucketPolicyMemberParameters. returns true if policy changed

func GenerateBucketPolicyInstance

func GenerateBucketPolicyInstance(in v1alpha1.BucketPolicyParameters, sp *storage.Policy)

GenerateBucketPolicyInstance generates *storage.Policy instance from BucketPolicyParameters.

func IsEmpty

func IsEmpty(in *storage.Policy) bool

IsEmpty returns if Policy is empty

func IsUpToDate

func IsUpToDate(in *v1alpha1.BucketPolicyParameters, observed *storage.Policy) (bool, error)

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.

func UnbindRoleFromMember

func UnbindRoleFromMember(in v1alpha1.BucketPolicyMemberParameters, sp *storage.Policy) bool

UnbindRoleFromMember generates *storage.Policy instance from BucketPolicyMemberParameters. returns true if bound (i.e. policy changed)

Types

type Client

type Client interface {
	GetIamPolicy(bucket string) *storage.BucketsGetIamPolicyCall
	SetIamPolicy(bucket string, policy *storage.Policy) *storage.BucketsSetIamPolicyCall
}

Client should be satisfied to conduct Bucket Policy operations.

Jump to

Keyboard shortcuts

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