Exemplo n.º 1
0
// Flatten a role so it's suitable for indexing.
func (r *Role) Flatten() []string {
	flatten := util.FlattenObj(r)
	indexified := util.Indexify(flatten)
	return indexified
}
Exemplo n.º 2
0
// Flatten a node for indexing.
func (n *Node) Flatten() []string {
	flatten := util.FlattenObj(n)
	indexified := util.Indexify(flatten)
	return indexified
}
Exemplo n.º 3
0
// Flatten the environment so it's suitable for indexing.
func (e *ChefEnvironment) Flatten() []string {
	flatten := util.FlattenObj(e)
	indexified := util.Indexify(flatten)
	return indexified
}
Exemplo n.º 4
0
// Flatten a role so it's suitable for indexing.
func (r *Role) Flatten() map[string]interface{} {
	return util.FlattenObj(r)
}
Exemplo n.º 5
0
// Flatten out the client so it's suitable for indexing.
func (c *Client) Flatten() []string {
	flatten := util.FlattenObj(c.flatExport())
	indexified := util.Indexify(flatten)
	return indexified
}
Exemplo n.º 6
0
// Flatten the environment so it's suitable for indexing.
func (e *ChefEnvironment) Flatten() map[string]interface{} {
	return util.FlattenObj(e)
}
Exemplo n.º 7
0
func (to *testObj) Flatten() []string {
	flatten := util.FlattenObj(to)
	indexified := util.Indexify(flatten)
	return indexified
}
Exemplo n.º 8
0
func (to *testObj) Flatten() map[string]interface{} {
	flatten := util.FlattenObj(to)
	return flatten
}
Exemplo n.º 9
0
// Flatten a node for indexing.
func (n *Node) Flatten() map[string]interface{} {
	return util.FlattenObj(n)
}