Documentation ¶
Index ¶
- func ConvertKeys(strategy esv1beta1.ExternalSecretConversionStrategy, in map[string][]byte) (map[string][]byte, error)
- func Decode(strategy esv1beta1.ExternalSecretDecodingStrategy, in []byte) ([]byte, error)
- func DecodeMap(strategy esv1beta1.ExternalSecretDecodingStrategy, in map[string][]byte) (map[string][]byte, error)
- func ErrorContains(out error, want string) bool
- func IsNil(i interface{}) bool
- func MergeByteMap(dst, src map[string][]byte) map[string][]byte
- func MergeStringMap(dest, src map[string]string)
- func NetworkValidate(endpoint string, timeout time.Duration) error
- func ObjectHash(object interface{}) string
- func RewriteMap(operations []esv1beta1.ExternalSecretRewrite, in map[string][]byte) (map[string][]byte, error)
- func RewriteRegexp(operation esv1beta1.ExternalSecretRewriteRegexp, in map[string][]byte) (map[string][]byte, error)
- func ValidateKeys(in map[string][]byte) bool
- func ValidateReferentSecretSelector(store esv1beta1.GenericStore, ref esmeta.SecretKeySelector) error
- func ValidateReferentServiceAccountSelector(store esv1beta1.GenericStore, ref esmeta.ServiceAccountSelector) error
- func ValidateSecretSelector(store esv1beta1.GenericStore, ref esmeta.SecretKeySelector) error
- func ValidateServiceAccountSelector(store esv1beta1.GenericStore, ref esmeta.ServiceAccountSelector) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertKeys ¶ added in v0.5.0
func ConvertKeys(strategy esv1beta1.ExternalSecretConversionStrategy, in map[string][]byte) (map[string][]byte, error)
ConvertKeys converts a secret map into a valid key. Replaces any non-alphanumeric characters depending on convert strategy.
func Decode ¶ added in v0.5.8
func Decode(strategy esv1beta1.ExternalSecretDecodingStrategy, in []byte) ([]byte, error)
func DecodeMap ¶ added in v0.5.8
func DecodeMap(strategy esv1beta1.ExternalSecretDecodingStrategy, in map[string][]byte) (map[string][]byte, error)
DecodeValues decodes values from a secretMap.
func ErrorContains ¶ added in v0.4.0
func MergeByteMap ¶ added in v0.2.2
MergeByteMap merges map of byte slices.
func MergeStringMap ¶ added in v0.2.2
MergeStringMap performs a deep clone from src to dest.
func NetworkValidate ¶ added in v0.5.2
func ObjectHash ¶ added in v0.3.6
func ObjectHash(object interface{}) string
ObjectHash calculates md5 sum of the data contained in the secret. nolint:gosec
func RewriteMap ¶ added in v0.5.9
func RewriteRegexp ¶ added in v0.5.9
func RewriteRegexp(operation esv1beta1.ExternalSecretRewriteRegexp, in map[string][]byte) (map[string][]byte, error)
RewriteRegexp rewrites a single Regexp Rewrite Operation.
func ValidateKeys ¶ added in v0.5.9
func ValidateReferentSecretSelector ¶ added in v0.5.4
func ValidateReferentSecretSelector(store esv1beta1.GenericStore, ref esmeta.SecretKeySelector) error
ValidateReferentSecretSelector allows cluster scoped store without namespace this should replace above ValidateServiceAccountSelector once all providers support referent auth.
func ValidateReferentServiceAccountSelector ¶ added in v0.5.4
func ValidateReferentServiceAccountSelector(store esv1beta1.GenericStore, ref esmeta.ServiceAccountSelector) error
ValidateReferentServiceAccountSelector allows cluster scoped store without namespace this should replace above ValidateServiceAccountSelector once all providers support referent auth.
func ValidateSecretSelector ¶ added in v0.5.0
func ValidateSecretSelector(store esv1beta1.GenericStore, ref esmeta.SecretKeySelector) error
ValidateSecretSelector just checks if the namespace field is present/absent depending on the secret store type. We MUST NOT check the name or key property here. It MAY be defaulted by the provider.
func ValidateServiceAccountSelector ¶ added in v0.5.0
func ValidateServiceAccountSelector(store esv1beta1.GenericStore, ref esmeta.ServiceAccountSelector) error
ValidateServiceAccountSelector just checks if the namespace field is present/absent depending on the secret store type. We MUST NOT check the name or key property here. It MAY be defaulted by the provider.
Types ¶
This section is empty.