Documentation ¶
Index ¶
- Variables
- func EditSecretUntilOK(secretYAML []byte) ([]byte, error)
- func EditWithEditor(content []byte) (editedContent []byte, err error)
- func EncryptRaw(value []byte, secret corev1.Secret) (encryptedValue []byte, err error)
- func GetEnv(key string, fallback string) string
- func GetKeyDiff(a map[string]string, b map[string]string) (keys []string)
- func GetUpdatedExisting(a map[string]string, b map[string]string) (m map[string]string)
- func IsStandardFinalizerName(str string) bool
- func Seal(secretYAML []byte, allowEmptyData bool) (sealedSecretYAML []byte, err error)
- func Unseal(sealedSecretYAML []byte, sealedSecretsControllerNamespace string) (secretYAML []byte, err error)
- func ValidateObjectMeta(meta *metav1.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, ...) field.ErrorList
- func ValidateSecret(secret *core.Secret) field.ErrorList
- func ValidateSecretYAML(secretYAML []byte) (field.ErrorList, error)
- type ValidateNameFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidateSecretName = apimachineryvalidation.NameIsDNSSubdomain
Functions ¶
func EditSecretUntilOK ¶ added in v0.0.4
func EditWithEditor ¶
take content, open editor, then return edited content a.k.a. vipe
func EncryptRaw ¶
func GetKeyDiff ¶
given map A and B, returns list of keys only exists in map A if there is no such key, returns empty slice
func GetUpdatedExisting ¶
given map A and B, returns a map such that - key exists in both A and B - value of A(key) differs B(key)
func IsStandardFinalizerName ¶ added in v0.0.4
func ValidateObjectMeta ¶ added in v0.0.4
func ValidateObjectMeta(meta *metav1.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList
func ValidateSecret ¶ added in v0.0.4
Types ¶
type ValidateNameFunc ¶ added in v0.0.4
type ValidateNameFunc apimachineryvalidation.ValidateNameFunc
Click to show internal directories.
Click to hide internal directories.