Documentation ¶
Index ¶
- type Config
- type ENC
- func (enc *ENC) AddClass(nodegroupName string, key string) (*Nodegroup, error)
- func (enc *ENC) AddClassParameter(nodegroupName string, class string, key string, val interface{}) (*Nodegroup, error)
- func (enc *ENC) AddNode(nodegroup string, nodeName string) (*Nodegroup, error)
- func (enc *ENC) AddNodegroup(name string, parent string, classes map[string]interface{}, nodes []string, ...) (*Nodegroup, error)
- func (enc *ENC) AddNodes(nodegroup string, nodes []string) (*Nodegroup, error)
- func (enc *ENC) AddParameter(nodegroupName string, key string, val interface{}) (*Nodegroup, error)
- func (enc *ENC) GetNode(nodeName string) (*Nodegroup, error)
- func (enc *ENC) GetNodegroup(nodegroupName string) (*Nodegroup, error)
- func (enc *ENC) RemoveClass(nodegroupName string, key string) (*Nodegroup, error)
- func (enc *ENC) RemoveClassParameter(nodegroupName string, class string, key string) (*Nodegroup, error)
- func (enc *ENC) RemoveNode(nodegroup string, nodeName string) (*Nodegroup, error)
- func (enc *ENC) RemoveNodegroup(name string) (*Nodegroup, error)
- func (enc *ENC) RemoveParameter(nodegroupName string, key string) (*Nodegroup, error)
- func (enc *ENC) SetClassParameter(nodegroupName string, class string, key string, val interface{}) (*Nodegroup, error)
- func (enc *ENC) SetEnvironment(nodegroupName string, env string) (*Nodegroup, error)
- func (enc *ENC) SetParameter(nodegroupName string, key string, val interface{}) (*Nodegroup, error)
- func (enc *ENC) SetParent(nodegroupName string, parent string) (*Nodegroup, error)
- type Nodegroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ENC ¶
ENC represents the entire structure of the External Node Classifier
func (*ENC) AddClassParameter ¶
func (enc *ENC) AddClassParameter(nodegroupName string, class string, key string, val interface{}) (*Nodegroup, error)
AddClassParameter adds a parameter to a given class on a nodegroup
func (*ENC) AddNodegroup ¶
func (enc *ENC) AddNodegroup(name string, parent string, classes map[string]interface{}, nodes []string, params map[string]interface{}) (*Nodegroup, error)
AddNodegroup adds a Nodegroup to the ENC
func (*ENC) AddParameter ¶
AddParameter add a parameter to a nodegroup
func (*ENC) GetNodegroup ¶
GetNodegroup retrieves a nodegroup by name
func (*ENC) RemoveClass ¶
RemoveClass removes a class from a nodegroup
func (*ENC) RemoveClassParameter ¶
func (enc *ENC) RemoveClassParameter(nodegroupName string, class string, key string) (*Nodegroup, error)
RemoveClassParameter removes a parameter from a class
func (*ENC) RemoveNode ¶
RemoveNode removes a single node from a nodegroup
func (*ENC) RemoveNodegroup ¶
RemoveNodegroup removes a nodegroup from the ENC
func (*ENC) RemoveParameter ¶
RemoveParameter removes a parameter from a nodegroup
func (*ENC) SetClassParameter ¶
func (enc *ENC) SetClassParameter(nodegroupName string, class string, key string, val interface{}) (*Nodegroup, error)
SetClassParameter is an alias for AddClassParameter
func (*ENC) SetEnvironment ¶
SetEnvironment sets the value of the environment of a nodegroup
func (*ENC) SetParameter ¶
SetParameter is an alias for AddParameter
type Nodegroup ¶
type Nodegroup struct { Parent string `json:"parent" yaml:"parent"` Classes map[string]interface{} `json:"classes" yaml:"classes"` Nodes []string `json:"nodes" yaml:"nodes"` Parameters map[string]interface{} `json:"parameters" yaml:"parameters"` Environment string `json:"environment" yaml:"environment"` }
Nodegroup represents groups of nodes and meta information about them