Documentation ¶
Index ¶
- Constants
- func GetHostMountPathFromSecretRef(ctx context.Context, client client.Client, logger logr.Logger, ...) (string, error)
- func GetProviderEnvVars(store *druidv1alpha1.StoreSpec) ([]corev1.EnvVar, error)
- func StorageProviderFromInfraProvider(infra *druidv1alpha1.StorageProvider) (string, error)
Constants ¶
View Source
const ( // LocalProviderDefaultMountPath is the default path where the buckets directory is mounted. LocalProviderDefaultMountPath = "/etc/gardener/local-backupbuckets" // EtcdBackupSecretHostPath is the hostPath field in the etcd-backup secret. EtcdBackupSecretHostPath = "hostPath" )
View Source
const ( // S3 is a constant for the AWS and S3 compliant storage provider. S3 = "S3" // ABS is a constant for the Azure storage provider. ABS = "ABS" // GCS is a constant for the Google storage provider. GCS = "GCS" // OSS is a constant for the Alicloud storage provider. OSS = "OSS" // Swift is a constant for the OpenStack storage provider. Swift = "Swift" // Local is a constant for the Local storage provider. Local = "Local" // ECS is a constant for the EMC storage provider. ECS = "ECS" // OCS is a constant for the OpenShift storage provider. OCS = "OCS" )
Variables ¶
This section is empty.
Functions ¶
func GetHostMountPathFromSecretRef ¶
func GetHostMountPathFromSecretRef(ctx context.Context, client client.Client, logger logr.Logger, store *druidv1alpha1.StoreSpec, namespace string) (string, error)
GetHostMountPathFromSecretRef returns the hostPath configured for the given store.
func GetProviderEnvVars ¶
func GetProviderEnvVars(store *druidv1alpha1.StoreSpec) ([]corev1.EnvVar, error)
GetProviderEnvVars returns provider-specific environment variables for the given store.
func StorageProviderFromInfraProvider ¶
func StorageProviderFromInfraProvider(infra *druidv1alpha1.StorageProvider) (string, error)
StorageProviderFromInfraProvider converts infra to object store provider.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.