Documentation ¶
Overview ¶
Package agents provides access to management network agents
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient, opts *ListOpts) pagination.Pager
List makes a request against the API to list all network agents
Types ¶
type Agent ¶
type Agent struct { ID string `json:"id"` Binary string `json:"binary"` Description string `json:"description"` AvailabilityZone string `json:"availability_zone"` AdminStateUp bool `json:"admin_state_up"` Alive bool `json:"alive"` Topic string `json:"topic"` Host string `json:"host"` AgentType string `json:"agent_type"` Heartbeat osTime.OpenStackTime `json:"heartbeat_timestamp"` }
Agent represents a blockstorage service in the OpenStack cloud.
func ExtractAgents ¶
func ExtractAgents(r pagination.Page) ([]Agent, error)
ExtractAgents interprets the results of a single page from a List() call, producing a slice of Agents entities.
type AgentPage ¶
type AgentPage struct {
pagination.LinkedPageBase
}
AgentPage 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 ExtractAgent call.
func (AgentPage) NextPageURL ¶
NextPageURL uses the response's embedded link reference to navigate to the next page of results.
type GetResult ¶
type GetResult struct {
gophercloud.Result
}
func Get ¶
func Get(client *gophercloud.ServiceClient, id string) (r GetResult)
Get makes a request against the API to get a network agent