types.go 371 B

12345678910111213141516
  1. package sshutil
  2. // Hosts are tagged with k,v pairs. These tags are how a user is ultimately
  3. // associated with a host.
  4. type HostTag struct {
  5. ID string
  6. Name string
  7. Value string
  8. }
  9. // Host defines expected attributes for an ssh host.
  10. type Host struct {
  11. HostID string `json:"hid"`
  12. HostTags []HostTag `json:"host_tags"`
  13. Hostname string `json:"hostname"`
  14. }