Documentation
¶
Index ¶
- Constants
- func DecryptNode(node *yaml.Node, decryptionMapping *map[string]string, tag bool) error
- func EncryptNode(node *yaml.Node, encryptionMapping *map[string]string) error
- func GetTaggedChildren(node *yaml.Node, tag string) <-chan *yaml.Node
- func GetTaggedChildrenValues(node *yaml.Node, tag string) (out []string, err error)
- func GetValue(node *yaml.Node) (value string, err error)
- func ReadFile(path string) (node yaml.Node, err error)
- func SaveFile(path string, node yaml.Node) error
Constants ¶
View Source
const ( EncryptedTag = "!encrypted" DecryptedTag = "!secret" )
Variables ¶
This section is empty.
Functions ¶
func DecryptNode ¶ added in v0.3.0
Turn a yaml Node tagged !encrypted into a yaml Node tagged !secret, by looking up its values in a give mapping of ciphertexts to plaintexts.
func EncryptNode ¶ added in v0.3.0
Turn a yaml Node tagged !secret into a yaml Node tagged !encrypted, looking up its values in a given mapping of plaintexts to ciphertexts.
func GetTaggedChildren ¶ added in v0.3.0
func GetTaggedChildren(node *yaml.Node, tag string) <-chan *yaml.Node
A Channel-based iterator that yields all descendents of a yaml Node that match a given tag.
func GetTaggedChildrenValues ¶ added in v0.3.0
Get a list of decoded string values from all descendents of a yaml Node that match a given tag.
func GetValue ¶ added in v0.3.0
Get the decoded value of an !encrypted or !secret Node, as a String. !encrypted Nodes are base64-decoded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.