Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultOSDetector ¶
type DefaultOSDetector struct{}
DefaultOSDetector is a default implementation of the OSDetector interface.
type Host ¶
type Host struct { common.Credentials OSType OSType SSHClient SSHClient Hostname string PackageManager packagemanager.PackageManager NetworkManager networkmanager.NetworkManager FileManager filemanager.FileManager HostManager hostmanager.HostManager ServiceManager servicemanager.ServiceManager CommandManager commandmanager.CommandManager }
type HostOption ¶
type HostOption func(*Host)
func WithKeyPassphrase ¶
func WithKeyPassphrase(keyPassphrase string) HostOption
WithKeyPassphrase returns a HostOption that sets the key passphrase for a Host.
func WithOS ¶
func WithOS(os OSType) HostOption
WithOS returns a HostOption that sets the OS for a Host.
func WithPassword ¶
func WithPassword(password string) HostOption
WithPassword returns a HostOption that sets the password for a Host.
func WithSSHClient ¶
func WithSSHClient(client SSHClient) HostOption
WithSSHClient returns a HostOption that sets the SSHClient for a UnixHost.
func WithSudoPassword ¶
func WithSudoPassword(password string) HostOption
WithSudoPassword returns a HostOption that sets the sudo password for a Host.
func WithUser ¶
func WithUser(user string) HostOption
WithUser returns a HostOption that sets the user for a Host.
type OSType ¶
type OSType int
OSType represents various types of Operating Systems that are supported.
type RealSSHClient ¶
type RealSSHClient struct{}
RealSSHClient provides a real implementation of the SSHClient interface.