Documentation ¶
Index ¶
- func ConvertKeys(strategy esv1beta1.ExternalSecretConversionStrategy, 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 ObjectHash(object interface{}) string
- 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 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 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 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.