Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2026 Changes in this version + var NoLoginType = errors.New("No Login Type") + var SshEmptyOperation = errors.New("SSH Empty Operation") + var SshLoginFailed = errors.New("SSH Login Failed") + func BaseexecuteCMD(cmdStr string, timeout int) ([]byte, error) + func Doclient() + type Auth struct + Password string + PrivateKey string + PublicKey string + Username string + func (auth *Auth) Error() error + type CmdType int + const SSH_CHECK_LOGIN + type DeployFile interface + MainFileName func() string + Source func() string + TarName func() string + TargetPath func() string + type Mutual struct + type SshLoginType int + const LOGIN_MUTUAL + const LOGIN_NONE + const LOGIN_PASSWORD + type TargetWithAuth struct + Host string + LoginType SshLoginType + Mutualed bool + func NewTargetWithAuth(username, password, host string) *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