Documentation ¶
Index ¶
- Constants
- func DecryptNode(node *yaml.Node, cache *cache.Cache, tag bool) error
- func EncryptNode(node *yaml.Node, possibleCiphertext []byte, cache *cache.Cache) error
- func GetTaggedChildren(node *yaml.Node, tag string) <-chan *nodeNode
- func GetTaggedChildrenValues(node *yaml.Node, tag string) (out map[string]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
- type Path
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 *nodeNode
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 map of paths to 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 ¶
Click to show internal directories.
Click to hide internal directories.