Documentation
¶
Overview ¶
Package credentials is used to build environment for barman cloud commands
Index ¶
Constants ¶
View Source
const ( // ScratchDataDirectory is the directory to be used for scratch data ScratchDataDirectory = "/controller" // CertificatesDir location to store the certificates CertificatesDir = ScratchDataDirectory + "/certificates/" // BarmanBackupEndpointCACertificateLocation is the location where the barman endpoint // CA certificate is stored BarmanBackupEndpointCACertificateLocation = CertificatesDir + BarmanBackupEndpointCACertificateFileName // BarmanBackupEndpointCACertificateFileName is the name of the file in which the barman endpoint // CA certificate for backups is stored BarmanBackupEndpointCACertificateFileName = "backup-" + BarmanEndpointCACertificateFileName // BarmanRestoreEndpointCACertificateLocation is the location where the barman endpoint // CA certificate is stored BarmanRestoreEndpointCACertificateLocation = CertificatesDir + BarmanRestoreEndpointCACertificateFileName // BarmanRestoreEndpointCACertificateFileName is the name of the file in which the barman endpoint // CA certificate for restores is stored BarmanRestoreEndpointCACertificateFileName = "restore-" + BarmanEndpointCACertificateFileName // BarmanEndpointCACertificateFileName is the name of the file in which the barman endpoint // CA certificate is stored BarmanEndpointCACertificateFileName = "barman-ca.crt" )
Variables ¶
This section is empty.
Functions ¶
func EnvSetBackupCloudCredentials ¶
func EnvSetBackupCloudCredentials( ctx context.Context, c client.Client, namespace string, configuration *barmanApi.BarmanObjectStoreConfiguration, env []string, ) ([]string, error)
EnvSetBackupCloudCredentials sets the AWS environment variables needed for backups given the configuration inside the cluster
func EnvSetRestoreCloudCredentials ¶
func EnvSetRestoreCloudCredentials( ctx context.Context, c client.Client, namespace string, configuration *barmanApi.BarmanObjectStoreConfiguration, env []string, ) ([]string, error)
EnvSetRestoreCloudCredentials sets the AWS environment variables needed for restores given the configuration inside the cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.