Documentation ¶
Index ¶
- func Cleanup(ctx context.Context)
- func Decode(ctx context.Context, val string) (string, bool, error)
- func DecodeAsFile(ctx context.Context, val string) (string, error)
- func NewContext(ctx context.Context, c *rest.Config, namespace string) context.Context
- func NewKubernetesSecretDecrypter(ctx context.Context, isFile bool, params string) (secrets.Decrypter, error)
- func ParseKubernetesSecretParams(params string) (string, string, error)
- func ShouldDecryptToValidate(val string) bool
- type KubernetesDecrypter
- type SecretContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAsFile ¶
DecodeAsFile is decode with a check that the final value is a file that exists
func NewContext ¶
func ShouldDecryptToValidate ¶
ShouldDecryptToValidate should we decrypt that value before sending to Halyard for validation? For now we decrypt everything so the operator has to be authorized to.
Types ¶
type KubernetesDecrypter ¶
type KubernetesDecrypter struct {
// contains filtered or unexported fields
}
func (*KubernetesDecrypter) Decrypt ¶
func (k *KubernetesDecrypter) Decrypt() (string, error)
func (*KubernetesDecrypter) IsFile ¶
func (s *KubernetesDecrypter) IsFile() bool
type SecretContext ¶
type SecretContext struct { Cache map[string]string FileCache map[string]string RestConfig *rest.Config Namespace string }
func FromContext ¶
func FromContext(ctx context.Context) (*SecretContext, bool)
func FromContextWithError ¶
func FromContextWithError(ctx context.Context) (*SecretContext, error)
func (*SecretContext) Cleanup ¶
func (s *SecretContext) Cleanup()
Cleanup deletes any temporary file that was used Errors are ignored
Click to show internal directories.
Click to hide internal directories.