secret

package
v1.5.44 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvManager

type EnvManager struct {
	Variables map[string]testkube.Variable
}

EnvManager manages secret exchange from job pods using env

func NewEnvManager

func NewEnvManager() *EnvManager

NewEnvManager returns an implementation of the Manager

func (EnvManager) GetEnvs

func (m EnvManager) GetEnvs() (secretEnvs []string)

GetEnvs gets secret envs

func (EnvManager) GetVars

func (m EnvManager) GetVars(variables map[string]testkube.Variable)

GetVars gets secret vars

func (EnvManager) Obfuscate added in v1.5.42

func (m EnvManager) Obfuscate(p []byte) []byte

func (EnvManager) Prepare

func (m EnvManager) Prepare(secretEnvs map[string]string, variables map[string]testkube.Variable) (secretEnvVars []corev1.EnvVar)

Prepare prepares secret env vars based on secret envs and variables

type Manager

type Manager interface {
	// Prepare prepares secret env vars based on secret envs and variables
	Prepare(secretEnvs map[string]string, variables map[string]testkube.Variable) (secretEnvVars []corev1.EnvVar)
	// GetEnvs get secret envs
	GetEnvs() (secretEnvs []string)
	// GetVars gets secret vars
	GetVars(variables map[string]testkube.Variable)
}

Manager is responsible for exchanging secrets with executor pod

func EnvManagerWithVars added in v1.5.42

func EnvManagerWithVars(variables map[string]testkube.Variable) Manager

Jump to

Keyboard shortcuts

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