Documentation ¶
Index ¶
- Constants
- func GetAzureClusterResourceGroupName(distribution string, clusterResourceGroup string, clusterName string, ...) string
- func GetSecretForBucket(secret *secret.SecretItemResponse, storageAccount string, ...) (string, error)
- func GetSecretForCluster(secret *secret.SecretItemResponse, resourceGroup string) (string, error)
- func NewObjectStore(ctx providers.ObjectStoreContext) (velero.ObjectStore, error)
- type Secret
Constants ¶
View Source
const ( // PersistentVolumeProvider is a config value for ARK PersistentVolumeProvider = "azure" // BackupStorageProvider is a config value for ARK BackupStorageProvider = "azure" )
Variables ¶
This section is empty.
Functions ¶
func GetSecretForBucket ¶
func GetSecretForBucket(secret *secret.SecretItemResponse, storageAccount string, bucketResourceGroup string, clusterResourceGroup string, ) (string, error)
GetSecretForBucket gets formatted secret for ARK backup bucket
func GetSecretForCluster ¶
func GetSecretForCluster(secret *secret.SecretItemResponse, resourceGroup string) (string, error)
GetSecretForCluster gets formatted secret for cluster
func NewObjectStore ¶
func NewObjectStore(ctx providers.ObjectStoreContext) (velero.ObjectStore, error)
NewObjectStore creates a new objectStore
Types ¶
type Secret ¶
type Secret struct { // For general access ClientID string `json:"AZURE_CLIENT_ID,omitempty"` ClientSecret string `json:"AZURE_CLIENT_SECRET,omitempty"` SubscriptionID string `json:"AZURE_SUBSCRIPTION_ID,omitempty"` TenantID string `json:"AZURE_TENANT_ID,omitempty"` // For bucket access ResourceGroup string `json:"AZURE_RESOURCE_GROUP,omitempty"` StorageAccount string `json:"AZURE_STORAGE_ACCOUNT_ID,omitempty"` StorageKey string `json:"AZURE_STORAGE_KEY,omitempty"` }
Secret describes values for Azure access
Click to show internal directories.
Click to hide internal directories.