Documentation ¶
Index ¶
- func GenerateRandomSecret(length int, characterSet string) (string, error)
- func GetOrCreateSecret(secrets map[string]*corev1.Secret, req router.Request, ...) (*corev1.Secret, error)
- type ErrInterpolation
- type Interpolator
- func (i *Interpolator) AddError(err error)
- func (i *Interpolator) AddMissingAnnotations(stopped bool, annotations map[string]string)
- func (i *Interpolator) Err() error
- func (i *Interpolator) ForContainer(containerName string) *Interpolator
- func (i *Interpolator) ForJob(jobName string) *Interpolator
- func (i *Interpolator) ForService(serviceName string) *Interpolator
- func (i *Interpolator) GetAccountID() (string, error)
- func (i *Interpolator) GetProjectName() (string, error)
- func (i *Interpolator) Incomplete() bool
- func (i *Interpolator) Objects() []kclient.Object
- func (i *Interpolator) Replace(content string) (string, error)
- func (i *Interpolator) SecretName() string
- func (i *Interpolator) ToEnv(key, value string) (corev1.EnvVar, bool)
- func (i *Interpolator) ToVolumeMount(filename string, file v1.File) corev1.VolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomSecret ¶
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.
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) SecretName ¶
func (i *Interpolator) SecretName() string
func (*Interpolator) ToVolumeMount ¶
func (i *Interpolator) ToVolumeMount(filename string, file v1.File) corev1.VolumeMount
Click to show internal directories.
Click to hide internal directories.