s3

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureS3Bucket

func ConfigureS3Bucket(_ context.Context, cm resource.Claim, cs resource.Class, mg resource.Managed) error

ConfigureS3Bucket configures the supplied resource (presumed to be a S3Bucket) using the supplied resource claim (presumed to be a Bucket) and resource class.

Types

type BucketClaimController

type BucketClaimController struct{}

A BucketClaimController reconciles Bucket claims with S3Buckets, dynamically provisioning them if needed.

func (*BucketClaimController) SetupWithManager

func (c *BucketClaimController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager adds a controller that reconciles Bucket resource claims.

type BucketClaimDefaultingController

type BucketClaimDefaultingController struct{}

A BucketClaimDefaultingController reconciles Bucket claims that omit their resource ref, class ref, and class selector by choosing a default S3BucketClass if one exists.

func (*BucketClaimDefaultingController) SetupWithManager

func (c *BucketClaimDefaultingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the BucketClaimDefaultingController using the supplied manager.

type BucketClaimSchedulingController

type BucketClaimSchedulingController struct{}

A BucketClaimSchedulingController reconciles Bucket claims that include a class selector but omit their class and resource references by picking a random matching S3BucketClass, if any.

func (*BucketClaimSchedulingController) SetupWithManager

func (c *BucketClaimSchedulingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the BucketClaimSchedulingController using the supplied manager.

type BucketController

type BucketController struct{}

BucketController is responsible for adding the Bucket controller and its corresponding reconciler to the manager with any runtime configuration.

func (*BucketController) SetupWithManager

func (c *BucketController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager creates a newSyncDeleter Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

type Reconciler

type Reconciler struct {
	client.Client

	resource.ManagedReferenceResolver
	resource.ManagedConnectionPublisher
	// contains filtered or unexported fields
}

Reconciler reconciles a S3Bucket object

func (*Reconciler) Reconcile

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

Reconcile reads that state of the bucket for an Instance object and makes changes based on the state read and what is in the Instance.Spec

Jump to

Keyboard shortcuts

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