types.go 355 B

1234567891011121314
  1. package sshutil
  2. // HostGroup defines expected attributes for a host group that a host might belong to.
  3. type HostGroup struct {
  4. ID string
  5. Name string
  6. }
  7. // Host defines expected attributes for an ssh host.
  8. type Host struct {
  9. HostID string `json:"hid"`
  10. HostGroups []HostGroup `json:"host_groups"`
  11. Hostname string `json:"hostname"`
  12. }