objectstorage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessRoleService added in v0.2.0

type AccessRoleService interface {
	// Configure the role to access the bucket
	ConfigureRole(ctx context.Context, bucket *v1alpha1.Bucket, additionalTags map[string]string) error
	DeleteRole(ctx context.Context, bucket *v1alpha1.Bucket) error
}

type ObjectStorageService

type ObjectStorageService interface {
	// Configure all bucket related configurations (Tags, ...)
	ConfigureBucket(ctx context.Context, bucket *v1alpha1.Bucket, additionalTags map[string]string) error
	CreateBucket(ctx context.Context, bucket *v1alpha1.Bucket) error
	DeleteBucket(ctx context.Context, bucket *v1alpha1.Bucket) error
	// Exists checks whether a bucket exists in the current account.
	ExistsBucket(ctx context.Context, bucket *v1alpha1.Bucket) (bool, error)
}

type ObjectStorageServiceFactory

type ObjectStorageServiceFactory interface {
	NewIAMService(ctx context.Context, logger logr.Logger, arn string, managementCluster managementcluster.ManagementCluster) (AccessRoleService, error)
	NewS3Service(ctx context.Context, logger logr.Logger, arn string, managementCluster managementcluster.ManagementCluster) (ObjectStorageService, error)
}

Directories

Path Synopsis
cloud
aws
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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