Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialCloser ¶
func NopDialCloser ¶
func NopDialCloser(d proxy.Dialer) DialCloser
type DialCloserFunc ¶
func (DialCloserFunc) Close ¶
func (DialCloserFunc) Close() error
type DialClosers ¶
type DialClosers []DialCloser
func (DialClosers) Close ¶
func (p DialClosers) Close() (err error)
type DirectoryReader ¶
type FileReadCloser ¶
type FileReadCloser = io.ReadCloser
type FileReader ¶
type Host ¶
type Host interface { io.Closer Sheller Transmitter // State returns the status of the host. State(ctx context.Context) (HostStatus, error) // Execute executes the given command on the host. Execute(ctx context.Context, cmd string, args ...string) error // ExecuteWithOutput executes the given command on the host and returns the output. ExecuteWithOutput(ctx context.Context, cmd string, args ...string) ([]byte, error) }
type HostAddressParsed ¶
func (HostAddressParsed) HostPort ¶
func (p HostAddressParsed) HostPort(defaultPort int) string
func (HostAddressParsed) HostPortFunc ¶
func (p HostAddressParsed) HostPortFunc( defaultPortFunc func(HostAddressParsed) int, ) string
type HostOption ¶
type HostOption struct { Address string Authn HostOptionAuthn Insecure bool }
func (HostOption) ParseAddress ¶
func (o HostOption) ParseAddress() (parsed HostAddressParsed, err error)
type HostOptionAuthn ¶
type HostOptions ¶
type HostOptions struct { HostOption Proxies []HostOption }
type Transmitter ¶
type Transmitter interface { // UploadFile uploads the given file to the host. UploadFile(ctx context.Context, from FileReader, to string) error // UploadDirectory uploads the given directory to the host. UploadDirectory(ctx context.Context, from DirectoryReader, to string) error // DownloadFile downloads the given file from the host. DownloadFile(ctx context.Context, from string) (FileReadCloser, error) // DownloadDirectory downloads the given directory from the host. DownloadDirectory(ctx context.Context, from string) (DirectoryReadCloser, error) }
Click to show internal directories.
Click to hide internal directories.