Documentation ¶
Index ¶
- func DeleteAddon(a *assets.Addon, client *ssh.Client) error
- func DeleteFile(f assets.CopyableFile, client *ssh.Client) error
- func GetDeleteFileCommand(f assets.CopyableFile) string
- func NewSSHClient(d drivers.Driver) (*ssh.Client, error)
- func RunCommand(c *ssh.Client, cmd string) error
- func Transfer(reader io.Reader, readerLen int, remotedir, filename string, perm string, ...) error
- func TransferAddon(a *assets.Addon, client *ssh.Client) error
- func TransferFile(f assets.CopyableFile, client *ssh.Client) error
- type SSHSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶ added in v0.12.0
func DeleteFile(f assets.CopyableFile, client *ssh.Client) error
func GetDeleteFileCommand ¶ added in v0.12.0
func GetDeleteFileCommand(f assets.CopyableFile) string
func NewSSHClient ¶
NewSSHClient returns an SSH client object for running commands.
func Transfer ¶
func Transfer(reader io.Reader, readerLen int, remotedir, filename string, perm string, c *ssh.Client) error
Transfer uses an SSH session to copy a file to the remote machine.
func TransferFile ¶ added in v0.12.0
func TransferFile(f assets.CopyableFile, client *ssh.Client) error
Types ¶
type SSHSession ¶
type SSHSession interface { Close() error StdinPipe() (io.WriteCloser, error) Run(cmd string) error Wait() error }
SSHSession provides methods for running commands on a host.
Click to show internal directories.
Click to hide internal directories.