s3

package
v0.0.0-...-09572fc Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const S3_CONTROLLER = "s3Controller"

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new S3 Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func CreateOrUpdateIAMPolicy

func CreateOrUpdateIAMPolicy(cr *v1alpha1.S3, iamClient iamiface.IAMAPI) error

func DeleteBucket

func DeleteBucket(bucketName string, s3Client s3iface.S3API) error

Assumes empty the bucket , then delete

func DeleteUser

func DeleteUser(username string, iamClient iamiface.IAMAPI) error

func IAMPolicyMatchesDesiredPolicyDocument

func IAMPolicyMatchesDesiredPolicyDocument(desiredPolicyDocument, username, policyName string, iamClient iamiface.IAMAPI) (bool, error)

func PutBucketPolicy

func PutBucketPolicy(cr *v1alpha1.S3, s3Client s3iface.S3API) error

Types

type ReconcileS3

type ReconcileS3 struct {
	// contains filtered or unexported fields
}

ReconcileS3 reconciles a S3 object

func (*ReconcileS3) Reconcile

func (r *ReconcileS3) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a S3 object and makes changes based on the state read and what is in the S3.Spec

Jump to

Keyboard shortcuts

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