consts

package
v0.0.0-...-a29e5f6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountNamePrefix = "ba-"
	BucketInfoPrefix  = "bc-"

	BABucketFinalizer = "cosi.objectstorage.k8s.io/bucketaccess-bucket-protection"
	BAFinalizer       = "cosi.objectstorage.k8s.io/bucketaccess-protection"
	BCFinalizer       = "cosi.objectstorage.k8s.io/bucketclaim-protection"
	BucketFinalizer   = "cosi.objectstorage.k8s.io/bucket-protection"
	SecretFinalizer   = "cosi.objectstorage.k8s.io/secret-protection"

	S3Key                      = "s3"
	AzureKey                   = "azure"
	S3SecretAccessKeyID        = "accessKeyID"
	S3SecretAccessSecretKey    = "accessSecretKey"
	S3Endpoint                 = "endpoint"
	S3Region                   = "region"
	AzureSecretAccessToken     = "accessToken"
	AzureSecretExpiryTimeStamp = "expiryTs"
	DefaultTimeFormat          = "2006-01-02 15:04:05.999999999 -0700 MST"
)

Variables

View Source
var (
	ErrInternal                    = errors.New("driverCreateBucket returned a nil response")
	ErrBucketInfoConversionFailed  = errors.New("error converting bucketInfo into Secret")
	ErrEmptyBucketID               = errors.New("driverCreateBucket returned an empty bucketID")
	ErrUndefinedBucketClassName    = errors.New("BucketClassName not defined")
	ErrUndefinedAccountID          = errors.New("AccountId not defined in DriverGrantBucketAccess")
	ErrUndefinedSecretName         = errors.New("CredentialsSecretName not defined in the BucketAccess")
	ErrInvalidBucketState          = errors.New("BucketAccess can't be granted to Bucket not in Ready state")
	ErrInvalidCredentials          = errors.New("Credentials returned in DriverGrantBucketAccessResponse should be of length 1")
	ErrUndefinedServiceAccountName = errors.New("ServiceAccountName required when AuthenticationType is IAM")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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