Documentation ¶
Overview ¶
Package services provides access to management orchestration 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 orchestration services
Types ¶
type Service ¶
type Service struct { ID string `json:"id"` EngineID string `json:"engine_id"` Status string `json:"status"` Binary string `json:"binary"` Host string `json:"host"` Hostname string `json:"hostname"` Topic string `json:"topic"` ReportInterval int `json:"report_interval"` Updated osTime.OpenStackTime `json:"updated_at"` }
Service represents a orchestration 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.