Documentation ¶
Index ¶
- Constants
- type SSHCommand
- func (cmd *SSHCommand) Copy(src, dst string) error
- func (cmd *SSHCommand) CopyDir(src, dst string) error
- func (cmd *SSHCommand) CopyFile(src, dst string) error
- func (cmd *SSHCommand) Exec(command string) ([]byte, error)
- func (cmd *SSHCommand) ExecShell(shell string) error
- func (cmd *SSHCommand) Scp(src, dst string) error
Constants ¶
View Source
const (
SSHTimeout = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHCommand ¶
type SSHCommand struct {
// contains filtered or unexported fields
}
func New ¶
func New(host, username, password, privateKeyPath, privateKeyPathPassword string) *SSHCommand
func (*SSHCommand) Copy ¶
func (cmd *SSHCommand) Copy(src, dst string) error
func (*SSHCommand) CopyDir ¶
func (cmd *SSHCommand) CopyDir(src, dst string) error
func (*SSHCommand) CopyFile ¶
func (cmd *SSHCommand) CopyFile(src, dst string) error
func (*SSHCommand) ExecShell ¶
func (cmd *SSHCommand) ExecShell(shell string) error
func (*SSHCommand) Scp ¶
func (cmd *SSHCommand) Scp(src, dst string) error
Click to show internal directories.
Click to hide internal directories.