Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AssertTargetListEquals ¶ added in v0.1.3
func FriendlyNames ¶ added in v0.1.3
FriendlyNames maps Target.FriendlyName over a []Target
func SSHTargets ¶ added in v0.1.3
SSHTargets maps Target.SSHTarget over a []Target
Types ¶
type Target ¶
type Target struct { Host string // Used to reference the host from the outside, generally an Host Hostname string // What the host calls itself IP string User string CoalesceOrder []string }
Target describes a single machine that easyssh will operate on.
func FromString ¶
FromString creates a Target from a string description of the form [user@]<ip|fqdn>
func FromStrings ¶ added in v0.1.3
FromStrings maps FromString over...string
func (Target) FriendlyName ¶ added in v0.1.3
FriendlyName returns the most descriptive name available for the target. Specifically, the first non-empty value of Hostname, Host, IP
Click to show internal directories.
Click to hide internal directories.