Documentation ¶
Overview ¶
Package services provides access to management compute service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient) pagination.Pager
List makes a request against the API to list all compute os-services
Types ¶
type Service ¶
type Service struct { ID int `json:"id"` Status string `json:"status"` Binary string `json:"binary"` Host string `json:"host"` Zone string `json:"zone"` State string `json:"state"` DisabledReason string `json:"disabled_reason"` Updated osTime.OpenStackTime `json:"updated_at"` }
Service represents a compute service in the OpenStack cloud.
func ExtractServices ¶
func ExtractServices(r pagination.Page) ([]Service, error)
ExtractServices interprets the results of a single page from a List() call, producing a slice of Services entities.
type ServicePage ¶
type ServicePage struct {
pagination.LinkedPageBase
}
ServicePage abstracts the raw results of making a List() request against the API. As OpenStack extensions may freely alter the response bodies of structures returned to the client, you may only safely access the data provided through the ExtractServices call.
func (ServicePage) IsEmpty ¶
func (r ServicePage) IsEmpty() (bool, error)
IsEmpty returns true if a page contains no Services results.
func (ServicePage) NextPageURL ¶
func (r ServicePage) NextPageURL() (string, error)
NextPageURL uses the response's embedded link reference to navigate to the next page of results.