secrets

package
v2.10.7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSecretValuesFileName = "secret-values.yaml"
	SecretDirName               = "secret"
)

Variables

This section is empty.

Functions

func GetDefaultSecretValuesFile

func GetDefaultSecretValuesFile(loadedChartFiles []*chart.ChartExtenderBufferedFile) *chart.ChartExtenderBufferedFile

func GetSecretDirFiles

func GetSecretDirFiles(loadedChartFiles []*chart.ChartExtenderBufferedFile) []*chart.ChartExtenderBufferedFile

func LoadChartSecretDirFilesData

func LoadChartSecretDirFilesData(
	chartDir string,
	secretFiles []*chart.ChartExtenderBufferedFile,
	encoder *secret.YamlEncoder,
) (map[string]string, error)

func LoadChartSecretValueFiles

func LoadChartSecretValueFiles(
	chartDir string,
	secretDirFiles []*chart.ChartExtenderBufferedFile,
	encoder *secret.YamlEncoder,
) (map[string]interface{}, error)

Types

type DecodeAndLoadSecretsOptions

type DecodeAndLoadSecretsOptions struct {
	GiterminismManager         giterminism_manager.Interface
	CustomSecretValueFiles     []string
	LoadFromLocalFilesystem    bool
	WithoutDefaultSecretValues bool
}

type SecretsRuntimeData

type SecretsRuntimeData struct {
	DecryptedSecretValues    map[string]interface{}
	DecryptedSecretFilesData map[string]string
	SecretValuesToMask       []string
}

func NewSecretsRuntimeData

func NewSecretsRuntimeData() *SecretsRuntimeData

func (*SecretsRuntimeData) DecodeAndLoadSecrets

func (secretsRuntimeData *SecretsRuntimeData) DecodeAndLoadSecrets(
	ctx context.Context,
	loadedChartFiles []*chart.ChartExtenderBufferedFile,
	chartDir, secretsWorkingDir string,
	secretsManager *secrets_manager.SecretsManager,
	opts DecodeAndLoadSecretsOptions,
) error

func (*SecretsRuntimeData) GetEncodedSecretValues

func (secretsRuntimeData *SecretsRuntimeData) GetEncodedSecretValues(
	ctx context.Context,
	secretsManager *secrets_manager.SecretsManager,
	secretsWorkingDir string,
) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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