Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageClient ¶
type StorageClient interface { // GCS wrappers CreateBucketIfNotExists(ctx context.Context, bucketName, region string) error DeleteBucketIfExists(ctx context.Context, bucketName string) error DeleteObjectsWithPrefix(ctx context.Context, bucketName, prefix string) error }
StorageClient is an interface which must be implemented by GCS clients.
func NewStorageClient ¶
func NewStorageClient(ctx context.Context, serviceAccount *internal.ServiceAccount) (StorageClient, error)
NewStorageClient creates a new storage client from the given serviceAccount.
func NewStorageClientFromSecretRef ¶
func NewStorageClientFromSecretRef(ctx context.Context, c client.Client, secretRef corev1.SecretReference) (StorageClient, error)
NewStorageClientFromSecretRef creates a new storage client from the given <secretRef>.
Click to show internal directories.
Click to hide internal directories.