Documentation ¶
Index ¶
- Constants
- Variables
- func Setup(mgr ctrl.Manager, o controller.Options, c *Connector) error
- func WithAutoPause(a *bool) func(*Connector)
- func WithBackendStore(s *backendstore.BackendStore) func(*Connector)
- func WithCreationGracePeriod(t time.Duration) func(*Connector)
- func WithKubeClient(k client.Client) func(*Connector)
- func WithLog(l logging.Logger) func(*Connector)
- func WithMinimumReplicas(m *uint) func(*Connector)
- func WithNewServiceFn(s func(creds []byte) (interface{}, error)) func(*Connector)
- func WithOperationTimeout(t time.Duration) func(*Connector)
- func WithPollInterval(t time.Duration) func(*Connector)
- func WithRecreateMissingBucket(a *bool) func(*Connector)
- func WithS3ClientHandler(h *s3clienthandler.Handler) func(*Connector)
- func WithSubresourceClients(s []SubresourceClient) func(*Connector)
- func WithUsage(u resource.Tracker) func(*Connector)
- type ACLClient
- 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 Connector
- type LifecycleConfigurationClient
- type NoOpService
- type ObjectLockConfigurationClient
- type PolicyClient
- type ResourceStatus
- type SubresourceClient
- type UpdateRequired
- type VersioningConfigurationClient
Constants ¶
const (
True = "true"
)
Variables ¶
var (
NewNoOpService = func(_ []byte) (interface{}, error) { return &NoOpService{}, nil }
)
Functions ¶
func WithAutoPause ¶ added in v0.0.27
func WithBackendStore ¶ added in v0.0.27
func WithBackendStore(s *backendstore.BackendStore) func(*Connector)
func WithCreationGracePeriod ¶ added in v0.0.27
func WithKubeClient ¶ added in v0.0.27
func WithMinimumReplicas ¶ added in v0.0.40
func WithNewServiceFn ¶ added in v0.0.27
func WithOperationTimeout ¶ added in v0.0.27
func WithPollInterval ¶ added in v0.0.27
func WithRecreateMissingBucket ¶ added in v0.0.40
func WithS3ClientHandler ¶ added in v0.0.35
func WithS3ClientHandler(h *s3clienthandler.Handler) func(*Connector)
func WithSubresourceClients ¶ added in v0.0.27
func WithSubresourceClients(s []SubresourceClient) func(*Connector)
Types ¶
type ACLClient ¶ added in v0.0.44
type ACLClient struct {
// contains filtered or unexported fields
}
ACLClient is the client for API methods and reconciling the ACL
func NewACLClient ¶ added in v0.0.44
func NewACLClient(b *backendstore.BackendStore, h *s3clienthandler.Handler, l logging.Logger) *ACLClient
NewACLClient creates the client for ACL
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 Connector ¶ added in v0.0.27
type Connector struct {
// contains filtered or unexported fields
}
A Connector is expected to produce an ExternalClient when its Connect method is called.
func NewConnector ¶ added in v0.0.27
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(b *backendstore.BackendStore, h *s3clienthandler.Handler, l logging.Logger) *LifecycleConfigurationClient
func (*LifecycleConfigurationClient) Observe ¶ added in v0.0.22
func (l *LifecycleConfigurationClient) Observe(ctx context.Context, bucket *v1alpha1.Bucket, backendNames []string) (ResourceStatus, error)
type ObjectLockConfigurationClient ¶ added in v0.0.48
type ObjectLockConfigurationClient struct {
// contains filtered or unexported fields
}
ObjectLockConfigurationClient is the client for API methods and reconciling the ObjectLockConfiguration
func NewObjectLockConfigurationClient ¶ added in v0.0.48
func NewObjectLockConfigurationClient(b *backendstore.BackendStore, h *s3clienthandler.Handler, l logging.Logger) *ObjectLockConfigurationClient
func (*ObjectLockConfigurationClient) Observe ¶ added in v0.0.48
func (l *ObjectLockConfigurationClient) Observe(ctx context.Context, bucket *v1alpha1.Bucket, backendNames []string) (ResourceStatus, error)
type PolicyClient ¶ added in v0.0.45
type PolicyClient struct {
// contains filtered or unexported fields
}
PolicyClient is the client for API methods and reconciling a BucketPolicy
func NewPolicyClient ¶ added in v0.0.45
func NewPolicyClient(b *backendstore.BackendStore, h *s3clienthandler.Handler, l logging.Logger) *PolicyClient
func (*PolicyClient) Observe ¶ added in v0.0.45
func (p *PolicyClient) 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 ( // NoAction is returned if the resource requires no action. NoAction ResourceStatus = iota // Updated is returned if the resource is updated. Updated // 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(b *backendstore.BackendStore, h *s3clienthandler.Handler, l 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 )
type VersioningConfigurationClient ¶ added in v0.0.47
type VersioningConfigurationClient struct {
// contains filtered or unexported fields
}
VersioningConfigurationClient is the client for API methods and reconciling the VersioningConfiguration
func NewVersioningConfigurationClient ¶ added in v0.0.47
func NewVersioningConfigurationClient(b *backendstore.BackendStore, h *s3clienthandler.Handler, l logging.Logger) *VersioningConfigurationClient
func (*VersioningConfigurationClient) Observe ¶ added in v0.0.47
func (l *VersioningConfigurationClient) Observe(ctx context.Context, bucket *v1alpha1.Bucket, backendNames []string) (ResourceStatus, error)