2019-11-21 01:23:51 +00:00
|
|
|
package sshutil
|
|
|
|
|
2020-04-02 06:02:10 +00:00
|
|
|
// Hosts are tagged with k,v pairs. These tags are how a user is ultimately
|
|
|
|
// associated with a host.
|
|
|
|
type HostTag struct {
|
|
|
|
ID string
|
|
|
|
Name string
|
|
|
|
Value string
|
2019-11-21 01:23:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Host defines expected attributes for an ssh host.
|
|
|
|
type Host struct {
|
2020-04-02 06:02:10 +00:00
|
|
|
HostID string `json:"hid"`
|
|
|
|
HostTags []HostTag `json:"host_tags"`
|
|
|
|
Hostname string `json:"hostname"`
|
2019-11-21 01:23:51 +00:00
|
|
|
}
|