Versions in this module Expand all Collapse all v0 v0.1.0 Sep 22, 2023 Changes in this version + type DefaultOSDetector struct + type Host struct + CommandManager commandmanager.CommandManager + FileManager filemanager.FileManager + HostManager hostmanager.HostManager + Hostname string + NetworkManager networkmanager.NetworkManager + OSType OSType + PackageManager packagemanager.PackageManager + SSHClient SSHClient + ServiceManager servicemanager.ServiceManager + func NewHost(hostname string, options ...HostOption) (*Host, error) + func (h *Host) DetermineOS(ctx context.Context) (OSType, error) + type HostOption func(*Host) + func WithKeyPassphrase(keyPassphrase string) HostOption + func WithOS(os OSType) HostOption + func WithPassword(password string) HostOption + func WithSSHClient(client SSHClient) HostOption + func WithSudoPassword(password string) HostOption + func WithUser(user string) HostOption + type OSType int + const Darwin + const LinuxArch + const LinuxCentOS + const LinuxDebian + const LinuxFedora + const LinuxOpenSUSE + const LinuxRedHat + const LinuxUbuntu + const Unknown + func (o OSType) String() string + type RealSSHClient struct + func (c RealSSHClient) Dial(network, addr string, config *ssh.ClientConfig, timeout time.Duration) (*ssh.Client, error) + type SSHClient interface + Dial func(network, addr string, config *ssh.ClientConfig, timeout time.Duration) (*ssh.Client, error)