Documentation
¶
Index ¶
- Variables
- func BaseexecuteCMD(cmdStr string, timeout int) ([]byte, error)
- func Doclient()
- type Auth
- type CmdType
- type DeployFile
- type Mutual
- type SshLoginType
- type TargetWithAuth
- func (twa *TargetWithAuth) CheckSshLogin() (string, error)
- func (twa *TargetWithAuth) ClearAuthorizedOnRemote() error
- func (twa *TargetWithAuth) ExecuteCmd(cmds []string, timeout int) (string, error)
- func (twa *TargetWithAuth) KillProcess(process string) (string, error)
- func (twa *TargetWithAuth) MakeCommand(ct CmdType) (string, error)
- func (twa *TargetWithAuth) WithForceMutual() *TargetWithAuth
- func (twa *TargetWithAuth) WithHost(host string) *TargetWithAuth
- func (twa *TargetWithAuth) WithLoginType(lt SshLoginType) *TargetWithAuth
- func (twa *TargetWithAuth) WithPublicKey(publicKey string) *TargetWithAuth
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Auth ¶
type DeployFile ¶
type SshLoginType ¶
type SshLoginType int
const ( LOGIN_NONE SshLoginType = iota LOGIN_PASSWORD LOGIN_MUTUAL )
type TargetWithAuth ¶
type TargetWithAuth struct {
Auth
Host string
LoginType SshLoginType
Mutualed bool
// contains filtered or unexported fields
}
func NewTargetWithAuth ¶
func NewTargetWithAuth(username, password, host string) *TargetWithAuth
func (*TargetWithAuth) CheckSshLogin ¶
func (twa *TargetWithAuth) CheckSshLogin() (string, error)
func (*TargetWithAuth) ClearAuthorizedOnRemote ¶
func (twa *TargetWithAuth) ClearAuthorizedOnRemote() error
func (*TargetWithAuth) ExecuteCmd ¶
func (twa *TargetWithAuth) ExecuteCmd(cmds []string, timeout int) (string, error)
func (*TargetWithAuth) KillProcess ¶
func (twa *TargetWithAuth) KillProcess(process string) (string, error)
func (*TargetWithAuth) MakeCommand ¶
func (twa *TargetWithAuth) MakeCommand(ct CmdType) (string, error)
func (*TargetWithAuth) WithForceMutual ¶
func (twa *TargetWithAuth) WithForceMutual() *TargetWithAuth
func (*TargetWithAuth) WithHost ¶
func (twa *TargetWithAuth) WithHost(host string) *TargetWithAuth
func (*TargetWithAuth) WithLoginType ¶
func (twa *TargetWithAuth) WithLoginType(lt SshLoginType) *TargetWithAuth
func (*TargetWithAuth) WithPublicKey ¶
func (twa *TargetWithAuth) WithPublicKey(publicKey string) *TargetWithAuth
Click to show internal directories.
Click to hide internal directories.