Documentation ¶
Index ¶
- type Konnect
- func (k *Konnect) CheckHosts(hosts []string) error
- func (k *Konnect) GetHost(name string) (*proxy.SSHProxy, error)
- func (k *Konnect) GetHostNames() []string
- func (k *Konnect) GetTask(name string) (*task.SSHTask, error)
- func (k *Konnect) GetTaskNames() []string
- func (k *Konnect) LoadFromFile(filename string) error
- func (k *Konnect) MarshalHosts() ([]byte, error)
- func (k *Konnect) MarshalTasks() ([]byte, error)
- func (k *Konnect) Status(hosts []string)
- func (k *Konnect) TestConnection(host string)
- func (k *Konnect) UnmarshalGlobal(byteStr []byte) error
- func (k *Konnect) UnmarshalHosts(byteStr []byte) error
- func (k *Konnect) UnmarshalTasks(byteStr []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Konnect ¶
type Konnect struct { Global *proxy.SSHProxy `yaml:"-"` ProxyChan chan bool `yaml:"-"` CompletedChan chan bool `yaml:"-"` Hosts map[string]*proxy.SSHProxy Tasks map[string]*task.SSHTask }
Konnect is a collection of SSHProxy objects.
func (*Konnect) CheckHosts ¶
CheckHosts - Ensure that the given host names exist.
func (*Konnect) GetHostNames ¶ added in v1.0.0
GetHostNames - Get host names in sorted order (asc).
func (*Konnect) GetTaskNames ¶ added in v1.0.0
GetTaskNames - Get task names in sorted order (asc).
func (*Konnect) LoadFromFile ¶
LoadFromFile - Load and validate SSHProxy objects from a yaml config file.
func (*Konnect) MarshalHosts ¶ added in v1.0.0
MarshalHosts - Marshal SSHProxy objects to a byte string.
func (*Konnect) MarshalTasks ¶ added in v1.0.0
MarshalTasks - Marshal SSHTask objects to a byte string.
func (*Konnect) TestConnection ¶
TestConnection - Test proxy ssh connection.
func (*Konnect) UnmarshalGlobal ¶ added in v1.0.0
UnmarshalGlobal - Unmarshal global proxy config from a byte string.
func (*Konnect) UnmarshalHosts ¶ added in v1.0.0
UnmarshalHosts - Unmarshal SSHProxy objects from a byte string.
func (*Konnect) UnmarshalTasks ¶ added in v1.0.0
UnmarshalTasks - Unmarshal SSHTask objects from a byte string.