secrets

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 43 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomSecret

func GenerateRandomSecret(length int, characterSet string) (string, error)

GenerateRandomSecret generates a random secret with the specified length and character set. If the length is less than 1, a default value of 54 will be used. If the character set is empty, a default value of "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%^&*_-=+" will be used.

func GetOrCreateSecret

func GetOrCreateSecret(secrets map[string]*corev1.Secret, req router.Request, appInstance *v1.AppInstance, secretName string) (*corev1.Secret, error)

Types

type ErrInterpolation

type ErrInterpolation struct {
	v1.ExpressionError
}

func (*ErrInterpolation) Error

func (e *ErrInterpolation) Error() string

type Interpolator

type Interpolator struct {
	// contains filtered or unexported fields
}

func NewInterpolator

func NewInterpolator(ctx context.Context, c kclient.Client, app *v1.AppInstance) *Interpolator

func (*Interpolator) AddError

func (i *Interpolator) AddError(err error)

func (*Interpolator) AddMissingAnnotations

func (i *Interpolator) AddMissingAnnotations(stopped bool, annotations map[string]string)

func (*Interpolator) Err

func (i *Interpolator) Err() error

func (*Interpolator) ForContainer

func (i *Interpolator) ForContainer(containerName string) *Interpolator

func (*Interpolator) ForJob

func (i *Interpolator) ForJob(jobName string) *Interpolator

func (*Interpolator) ForService

func (i *Interpolator) ForService(serviceName string) *Interpolator

func (*Interpolator) GetAccountID

func (i *Interpolator) GetAccountID() (string, error)

func (*Interpolator) GetProjectName

func (i *Interpolator) GetProjectName() (string, error)

func (*Interpolator) Incomplete

func (i *Interpolator) Incomplete() bool

func (*Interpolator) Objects

func (i *Interpolator) Objects() []kclient.Object

func (*Interpolator) Replace

func (i *Interpolator) Replace(content string) (string, error)

func (*Interpolator) SecretName

func (i *Interpolator) SecretName() string

func (*Interpolator) ToEnv

func (i *Interpolator) ToEnv(key, value string) (corev1.EnvVar, bool)

func (*Interpolator) ToVolumeMount

func (i *Interpolator) ToVolumeMount(filename string, file v1.File) corev1.VolumeMount

Jump to

Keyboard shortcuts

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