Documentation ¶
Index ¶
- Variables
- func LifecycleConfigurationNotFound(err error) bool
- func Setup(mgr ctrl.Manager, o controller.Options, s *backendstore.BackendStore, ...) error
- type BucketValidator
- func (b *BucketValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (b *BucketValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (b *BucketValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type LifecycleConfigurationClient
- type NoOpService
- type ResourceStatus
- type SubresourceClient
- type UpdateRequired
Constants ¶
This section is empty.
Variables ¶
View Source
var LifecycleNotFoundErrCode = "NoSuchLifecycleConfiguration"
LifecycleNotFoundErrCode is the error code sent by AWS when the lifecycle config does not exist
Functions ¶
func LifecycleConfigurationNotFound ¶ added in v0.0.22
LifecycleConfigurationNotFound is parses the aws Error and validates if the lifecycle configuration does not exist
func Setup ¶
func Setup(mgr ctrl.Manager, o controller.Options, s *backendstore.BackendStore, autoPauseBucket bool, pollInterval, operationTimeout, creationGracePeriod time.Duration) error
Setup adds a controller that reconciles Bucket managed resources.
Types ¶
type BucketValidator ¶ added in v0.0.17
type BucketValidator struct {
// contains filtered or unexported fields
}
func NewBucketValidator ¶ added in v0.0.17
func NewBucketValidator(b *backendstore.BackendStore) *BucketValidator
func (*BucketValidator) ValidateCreate ¶ added in v0.0.17
func (*BucketValidator) ValidateDelete ¶ added in v0.0.17
func (*BucketValidator) ValidateUpdate ¶ added in v0.0.17
type LifecycleConfigurationClient ¶ added in v0.0.22
type LifecycleConfigurationClient struct {
// contains filtered or unexported fields
}
LifecycleConfigurationClient is the client for API methods and reconciling the LifecycleConfiguration
func NewLifecycleConfigurationClient ¶ added in v0.0.22
func NewLifecycleConfigurationClient(backendStore *backendstore.BackendStore, log logging.Logger) *LifecycleConfigurationClient
NewLifecycleConfigurationClient creates the client for Accelerate Configuration
func (*LifecycleConfigurationClient) Observe ¶ added in v0.0.22
func (l *LifecycleConfigurationClient) Observe(ctx context.Context, bucket *v1alpha1.Bucket, backendNames []string) (ResourceStatus, error)
type ResourceStatus ¶ added in v0.0.22
type ResourceStatus int
ResourceStatus represents the current status of the resource.
const ( // Updated is returned if the resource is updated. Updated ResourceStatus = iota // NeedsUpdate is returned if the resource required updating. NeedsUpdate // NeedsDeletion is returned if the resource needs to be deleted. NeedsDeletion )
type SubresourceClient ¶ added in v0.0.22
type SubresourceClient interface { Observe(ctx context.Context, bucket *v1alpha1.Bucket, backendNames []string) (ResourceStatus, error) Handle(ctx context.Context, bucket *v1alpha1.Bucket, backendName string, bb *bucketBackends) error }
SubresourceClient is the interface all Bucket sub-resources must conform to.
func NewSubresourceClients ¶ added in v0.0.22
func NewSubresourceClients(backendStore *backendstore.BackendStore, log logging.Logger) []SubresourceClient
NewSubresourceClients creates the array of all sub resource clients.
type UpdateRequired ¶ added in v0.0.14
type UpdateRequired int
const ( NeedsStatusUpdate UpdateRequired = iota NeedsObjectUpdate )
Click to show internal directories.
Click to hide internal directories.