Documentation
¶
Overview ¶
Package credentials handles the retrieval and injection of credentials stored in Kubernetes secrets
Index ¶
- Constants
- func EnvSetBackupCloudCredentials(ctx context.Context, c client.Client, namespace string, ...) ([]string, error)
- func EnvSetRestoreCloudCredentials(ctx context.Context, c client.Client, namespace string, ...) ([]string, error)
- func PgBackRestBackupEndpointCACertificateLocation(repoIndex int) string
- func PgBackRestRestoreEndpointCACertificateLocation(repoIndex int) string
Constants ¶
const ( // ScratchDataDirectory is the directory to be used for scratch data ScratchDataDirectory = "/controller" // CertificatesDir location to store the certificates CertificatesDir = ScratchDataDirectory + "/certificates/" // PgBackRestEndpointCACertificateFileName is the base name of the file in // which the pgBackRest endpoint CA certificate is stored. PgBackRestEndpointCACertificateFileName = "pgbackrest-ca.crt" )
Variables ¶
This section is empty.
Functions ¶
func EnvSetBackupCloudCredentials ¶
func EnvSetBackupCloudCredentials( ctx context.Context, c client.Client, namespace string, configuration *pgbackrestApi.PgbackrestConfiguration, 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 *pgbackrestApi.PgbackrestConfiguration, env []string, ) ([]string, error)
EnvSetRestoreCloudCredentials sets the AWS environment variables needed for restores given the configuration inside the cluster
func PgBackRestBackupEndpointCACertificateLocation ¶ added in v0.8.0
PgBackRestBackupEndpointCACertificateLocation returns the file path where the pgBackRest endpoint CA certificate for backups of the given repository (zero-based index) is stored.
func PgBackRestRestoreEndpointCACertificateLocation ¶ added in v0.8.0
PgBackRestRestoreEndpointCACertificateLocation returns the file path where the pgBackRest endpoint CA certificate for restores of the given repository (zero-based index) is stored.
Types ¶
This section is empty.