Documentation ¶
Index ¶
- type Otter
- func (otter *Otter) CollectResults(results chan *state.ResultMap, count int) *state.ResultMap
- func (otter *Otter) ListHosts() ([]string, error)
- func (otter *Otter) RetrieveStateMap() (*state.StateMap, error)
- func (otter *Otter) SaveResultMap(id string, resultMap *state.ResultMap) error
- func (otter *Otter) SubmitCommand(host, command string, resultChan chan *state.ResultMap)
- func (otter *Otter) SubmitCommands(hostString, command string) (*state.ResultMap, error)
- func (otter *Otter) SubmitState(state string) error
- func (otter *Otter) UpdateHost(hostname, previous string) (string, error)
- func (otter *Otter) WaitForChange(key string, recurse bool, timeout time.Duration) (string, string, error)
- func (otter *Otter) WaitForCommand(hostname string) (string, string, error)
- func (otter *Otter) WaitForResults(id string) (*state.ResultMap, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Otter ¶
type Otter struct { Hostname string // contains filtered or unexported fields }
func NewOtterClient ¶
func (*Otter) CollectResults ¶
Collect results from a channel and append them to a ResultMap when they are received
func (*Otter) SaveResultMap ¶
func (*Otter) SubmitCommand ¶
Run a command against remote hosts
func (*Otter) SubmitCommands ¶
Submit a single command against all hosts who's name matches the given hostString.
func (*Otter) SubmitState ¶
func (*Otter) UpdateHost ¶
Update the list of remote hosts with the specified hostname.
func (*Otter) WaitForChange ¶
func (otter *Otter) WaitForChange(key string, recurse bool, timeout time.Duration) (string, string, error)
Wait for a key to be added or modified in etcd
func (*Otter) WaitForCommand ¶
Wait for a command and then return it.
Click to show internal directories.
Click to hide internal directories.