ssh

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

type SSH struct {
}

func (*SSH) CopyFile

func (s *SSH) CopyFile(filePath string, remoteFilePath string, address SSHAddress, privateKey []byte, timeout time.Duration, stdout io.Writer, stderr io.Writer) error

func (*SSH) RetrieveFile

func (s *SSH) RetrieveFile(filePath string, remoteFilePath string, address SSHAddress, privateKey []byte, timeout time.Duration) error

func (*SSH) RunSSHCommand

func (s *SSH) RunSSHCommand(command string, addresses SSHAddress, privateKey []byte, timeout time.Duration, stdout io.Writer, stderr io.Writer) (err error)

func (*SSH) WaitForSSH

func (s *SSH) WaitForSSH(addresses SSHAddress, privateKey []byte, timeout time.Duration) error

type SSHAddress

type SSHAddress struct {
	IP   string
	Port string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL