Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `yaml:"address" validate:"required,hostname|ip"` User string `yaml:"user"` SSHPort int `yaml:"sshPort" validate:"gt=0,lte=65535"` SSHKeyPath string `yaml:"sshKeyPath" validate:"file"` Role string `yaml:"role" validate:"oneof=master worker"` ExtraArgs []string `yaml:"extraArgs"` PrivateInterface string `validate:"omitempty,gt=2"` }
Config for host
func (*Config) UnmarshalYAML ¶
UnmarshalYAML unmarshals yaml
type Host ¶
type Host struct { Config Metadata *HostMetadata // contains filtered or unexported fields }
Host describes connectable host
func (*Host) ExecWithOutput ¶
ExecWithOutput execs a command on the host and return output
func (*Host) FullAddress ¶ added in v0.2.0
FullAddress returns address and non-standard ssh port
type HostMetadata ¶ added in v0.2.0
HostMetadata resolved metadata for host
type RemoteHost ¶
Click to show internal directories.
Click to hide internal directories.