credentials

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package credentials handles the retrieval and injection of credentials stored in Kubernetes secrets

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/"

	// 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

func PgBackRestBackupEndpointCACertificateLocation(repoIndex int) string

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

func PgBackRestRestoreEndpointCACertificateLocation(repoIndex int) string

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.

Jump to

Keyboard shortcuts

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