blob: 3c6bb040a842d5f3f4532b28648a3155514b834b [file] [log] [blame]
package os_services
import "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination"
type OsService struct {
ID string `json:"id"`
Host string `json:"host"`
State string `json:"state"`
Status string `json:"status"`
Zone string `json:"zone"`
Binary string `json:"binary"`
}
type OsServicePage struct {
pagination.SinglePageBase
}
func ExtractOsServices(r pagination.Page) ([]OsService, error) {
var s struct {
OsServices []OsService `json:"services"`
}
err := (r.(OsServicePage)).ExtractInto(&s)
return s.OsServices, err
}