Documentation ¶
Index ¶
- type Credential
- type I_Job
- type I_Machine
- type I_Mgr
- type I_Task
- type Job
- type Machine
- func (m *Machine) GetAuthConf() (*ssh.ClientConfig, string, error)
- func (m *Machine) GetDomain() string
- func (m *Machine) GetMode() string
- func (m *Machine) GetPassphrase() string
- func (m *Machine) GetPassword() string
- func (m *Machine) GetPort() string
- func (m *Machine) GetSSHKeyfile() string
- func (m *Machine) GetSigner() (ssh.Signer, error)
- func (m *Machine) GetSudoPassword() string
- func (m *Machine) GetUsername() string
- type Mgr
- type Task
- type WindowSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Job ¶
Implement I_Job
type Machine ¶
type Machine struct { Domain string `json:"domain"` Port string `json:"port"` Username string `json:"username"` Mode string `json:"mode"` Credential Credential `json:"credential"` SudoPassword string `json:"sudopassword"` }
Define class: Machine implementing I_Machine
func (*Machine) GetAuthConf ¶
func (m *Machine) GetAuthConf() (*ssh.ClientConfig, string, error)
Implement I_Machine.GetAutoConf() Get auth conf for ssh
func (*Machine) GetMode ¶
Implement I_Machine.GetMode() Get approach of logging into machine: SSHKEY, USERPASS
func (*Machine) GetPassphrase ¶
Implement I_Machine.GetPassphrase() Get passphrase
func (*Machine) GetPassword ¶
Implement I_Machine.GetPassword() Get password
func (*Machine) GetSSHKeyfile ¶
Implement I_Machine.GetSSHKeyfile() Get ssh private key file
func (*Machine) GetSudoPassword ¶
Implement I_Machine.GetSudoPassword() Get sudo password of user
func (*Machine) GetUsername ¶
Implement I_Machine.GetUsername() Get username
type Mgr ¶
Implement I_Mgr
type WindowSize ¶
Click to show internal directories.
Click to hide internal directories.