Documentation
¶
Index ¶
- type Obfuscator
- func (o *Obfuscator) ReplaceAll(ctx context.Context, obj any, jsonPaths []string) (any, error)
- func (o *Obfuscator) ReplaceAllFromBytes(ctx context.Context, b []byte, jsonPaths []string) ([]byte, error)
- func (o *Obfuscator) ReplaceAllFromMap(ctx context.Context, m map[string]any, jsonPaths []string) (map[string]any, error)
- type Replacer
- type SecretManagerResolver
- func (s *SecretManagerResolver) ReplaceAll(ctx context.Context, obj any, jsonPaths []string) (any, error)
- func (s *SecretManagerResolver) ReplaceAllFromBytes(ctx context.Context, b []byte, jsonPaths []string) ([]byte, error)
- func (s *SecretManagerResolver) ReplaceAllFromMap(ctx context.Context, m map[string]any, jsonPaths []string) (map[string]any, error)
- type SecretStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Obfuscator ¶
type Obfuscator struct {
// contains filtered or unexported fields
}
func NewObfuscator ¶
func NewObfuscator() *Obfuscator
func (*Obfuscator) ReplaceAll ¶
func (*Obfuscator) ReplaceAllFromBytes ¶
type Replacer ¶
type Replacer interface {
ReplaceAll(ctx context.Context, obj any, jsonPaths []string) (any, error)
}
Replacer is an interface for replacing secret values in different types of objects.
type SecretManagerResolver ¶
type SecretManagerResolver struct {
M secrets.SecretsApi
}
func NewDefaultSecretManagerResolver ¶
func NewDefaultSecretManagerResolver() *SecretManagerResolver
func NewSecretManagerResolver ¶
func NewSecretManagerResolver(api secrets.SecretsApi) *SecretManagerResolver
func (*SecretManagerResolver) ReplaceAll ¶
func (*SecretManagerResolver) ReplaceAllFromBytes ¶
type SecretStore ¶
type SecretStore[T store.Object] struct { store.ObjectStore[T] // contains filtered or unexported fields }
func WrapStore ¶
func WrapStore[T store.Object](s store.ObjectStore[T], secretJsonPaths []string, secretsResolver Replacer) *SecretStore[T]
func (*SecretStore[T]) Get ¶
func (s *SecretStore[T]) Get(ctx context.Context, namespace, name string) (res T, err error)
func (*SecretStore[T]) List ¶
func (s *SecretStore[T]) List(ctx context.Context, opts store.ListOpts) (*store.ListResponse[T], error)
Click to show internal directories.
Click to hide internal directories.