Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SecretModifierJSONPath ¶
type SecretModifierJSONPath struct{}
SecretModifierJSONPath is a modifier that can extract a specific field out of a JSON stored in a secret value. After the secret has been dug-up, the modifier digs further at the provided JSONPath, and returns the value found there.
To use it, append the modifier `jq` to the given secret coordinates string:
k8s://NAMESPACE/NAME/KEY?jp=$.kafka.brokers
JSONPath (https://goessner.net/articles/JsonPath/) defines a string syntax for selecting and extracting JSON (RFC-8259) values from within a given JSON object.
If a given JSONPath refers to multiple elements, only the first one is returned.
JSONPath has been normalized as RFC-9535 (https://www.rfc-editor.org/rfc/rfc9535).
See: https://github.com/oliveagle/jsonpath (underlying library).
func (*SecretModifierJSONPath) Type ¶
func (s *SecretModifierJSONPath) Type() string