Documentation ¶
Index ¶
- func EnterDocument(document *yaml.Node) (node *yaml.Node, err error)
- type Config
- func (c *Config) AssertIsDocument(node *yaml.Node)
- func (c *Config) AssertIsInteger(node *yaml.Node)
- func (c *Config) AssertIsMapping(node *yaml.Node)
- func (c *Config) AssertIsScalar(node *yaml.Node)
- func (c *Config) AssertIsSequence(node *yaml.Node)
- func (c *Config) AssertIsString(node *yaml.Node)
- func (c *Config) ExtractContent(node *yaml.Node) interface{}
- func (c *Config) GetInt(node *yaml.Node) int
- func (c *Config) GetString(node *yaml.Node) string
- func (c *Config) IsDocument(node *yaml.Node) bool
- func (c *Config) IsInterger(node *yaml.Node) bool
- func (c *Config) IsMapping(node *yaml.Node) bool
- func (c *Config) IsMerge(node *yaml.Node) bool
- func (c *Config) IsScalar(node *yaml.Node) bool
- func (c *Config) IsSequence(node *yaml.Node) bool
- func (c *Config) IsString(node *yaml.Node) bool
- func (c *Config) MapAssertStringKeysAmong(node *yaml.Node, acceptSlice []string)
- func (c *Config) MapGetAny(node *yaml.Node, key string) interface{}
- func (c *Config) MapGetValue(node *yaml.Node, key string) *yaml.Node
- func (c *Config) MapTryGetValue(node *yaml.Node, key string) *yaml.Node
- func (c *Config) Resolve(node **yaml.Node)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnterDocument ¶
func EnterDocument(document *yaml.Node) (node *yaml.Node, err error)
Types ¶
type Config ¶
func (*Config) AssertIsDocument ¶
func (c *Config) AssertIsDocument(node *yaml.Node)
func (*Config) AssertIsInteger ¶
func (c *Config) AssertIsInteger(node *yaml.Node)
func (*Config) AssertIsMapping ¶
func (c *Config) AssertIsMapping(node *yaml.Node)
func (*Config) AssertIsScalar ¶
func (c *Config) AssertIsScalar(node *yaml.Node)
func (*Config) AssertIsSequence ¶
func (c *Config) AssertIsSequence(node *yaml.Node)
func (*Config) AssertIsString ¶
func (c *Config) AssertIsString(node *yaml.Node)
func (*Config) ExtractContent ¶
func (c *Config) ExtractContent(node *yaml.Node) interface{}
ExtractContent recurses through a tree of yaml.Node and produces a golang tree of map[string]interface{}, []interface{}, string and integer
func (*Config) IsDocument ¶
func (*Config) IsInterger ¶
func (*Config) IsSequence ¶
func (*Config) MapAssertStringKeysAmong ¶
MapAssertStringKeysAmong asserts the keys of the mapping node are all strings whose value is among the given slice of accepted values
func (*Config) MapGetAny ¶
Search through a yaml map for the entry associated to a given key and retrieve any kind of value, as interface{}
func (*Config) MapGetValue ¶
Search through a yaml map for the value associated to a given key. Panic if the key is missing
func (*Config) MapTryGetValue ¶
Search through a yaml map for the entry associated to a given key and return the value. Returns nil if the key is missing
Click to show internal directories.
Click to hide internal directories.