credentials

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 1 package

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 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 EnvSetCloudCredentialsAndCertificates added in v0.2.0

func EnvSetCloudCredentialsAndCertificates(
	ctx context.Context,
	c client.Client,
	namespace string,
	configuration *barmanApi.BarmanObjectStoreConfiguration,
	env []string,
	certificatesLocation string,
) ([]string, error)

EnvSetCloudCredentialsAndCertificates sets the AWS and Azure environment variables needed for restores 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.

Jump to

Keyboard shortcuts

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