Documentation ¶
Index ¶
- type EnvironmentsMsg
- type NodeClassifier
- func (ctx *NodeClassifier) Classify(hostname, environment, primary_role string, missingOK bool, ...) <-chan NodeConfigResult
- func (ctx *NodeClassifier) GetClassification(node string, missingOK bool) (*NodeConfig, error)
- func (ctx *NodeClassifier) GetEnvironments() EnvironmentsMsg
- func (ctx *NodeClassifier) GetRoles(environment string) RolesMsg
- type NodeClassifierInterface
- type NodeConfig
- type NodeConfigResult
- type RepositoryInterface
- type RolesMsg
- type WorktreeInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentsMsg ¶
type NodeClassifier ¶
type NodeClassifier struct { ResultChan chan NodeConfigResult ListenerChans []reflect.SelectCase // contains filtered or unexported fields }
func NewNodeClassifier ¶
func NewNodeClassifier(nodesDir, nodesPrivateKey, nodesGitUser string, puppetConfig *puppetconfig.PuppetConfig, log *log.Logger, notifyCallback func(message string), webhookTimeout int64, execTimeout int64) (*NodeClassifier, error)
func (*NodeClassifier) Classify ¶
func (ctx *NodeClassifier) Classify(hostname, environment, primary_role string, missingOK bool, requestorName, requestorEmail string) <-chan NodeConfigResult
func (*NodeClassifier) GetClassification ¶
func (ctx *NodeClassifier) GetClassification(node string, missingOK bool) (*NodeConfig, error)
func (*NodeClassifier) GetEnvironments ¶
func (ctx *NodeClassifier) GetEnvironments() EnvironmentsMsg
func (*NodeClassifier) GetRoles ¶
func (ctx *NodeClassifier) GetRoles(environment string) RolesMsg
type NodeClassifierInterface ¶
type NodeClassifierInterface interface { Classify(hostname, environment, primary_role string, missingOK bool, requestorName, requestorEmail string) <-chan NodeConfigResult GetClassification(node string, missingOK bool) (*NodeConfig, error) GetEnvironments() EnvironmentsMsg GetRoles(environment string) RolesMsg }
type NodeConfig ¶
type NodeConfigResult ¶
type RepositoryInterface ¶
Click to show internal directories.
Click to hide internal directories.