2019-11-20 17:23:51 -08:00
|
|
|
package sshutil
|
|
|
|
|
2020-04-01 23:02:10 -07: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-20 17:23:51 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Host defines expected attributes for an ssh host.
|
|
|
|
type Host struct {
|
2020-04-01 23:02:10 -07:00
|
|
|
HostID string `json:"hid"`
|
|
|
|
HostTags []HostTag `json:"host_tags"`
|
|
|
|
Hostname string `json:"hostname"`
|
2019-11-20 17:23:51 -08:00
|
|
|
}
|