Documentation ¶
Overview ¶
Package node implements nodes. They do chef-client runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { Name string `json:"name"` ChefEnvironment string `json:"chef_environment"` RunList []string `json:"run_list"` JSONClass string `json:"json_class"` ChefType string `json:"chef_type"` Automatic map[string]interface{} `json:"automatic"` Normal map[string]interface{} `json:"normal"` Default map[string]interface{} `json:"default"` Override map[string]interface{} `json:"override"` }
Node is a basic Chef node, holding the run list and attributes of the node.
func AllNodes ¶ added in v0.5.2
func AllNodes() []*Node
AllNodes returns all the nodes on the server
func GetFromEnv ¶ added in v0.5.0
GetFromEnv returns all nodes that belong to the given environment.
func NewFromJSON ¶ added in v0.6.0
NewFromJSON creates a new node from the uploaded JSON.
Click to show internal directories.
Click to hide internal directories.