Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestOpts = golangsdk.RequestOpts{ MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"}, }
Functions ¶
func List ¶
func List(c *golangsdk.ServiceClient, opts ListOpts) pagination.Pager
Types ¶
type Resource ¶
type Resource struct { Id string `json:"id"` Name string `json:"name"` Provider string `json:"provider"` Type string `json:"type"` RegionId string `json:"region_id"` ProjectId string `json:"project_id"` ProjectName string `json:"project_name"` EpId string `json:"ep_id"` EpName string `json:"ep_name"` Checksum string `json:"checksum"` Created string `json:"created"` Updated string `json:"updated"` ProvisioningState string `json:"provisioning_state"` Tags map[string]string `json:"tags"` Properties map[string]interface{} `json:"properties"` }
func ExtractResources ¶
func ExtractResources(r pagination.Page) ([]Resource, error)
ExtractResources accepts a Page struct, specifically a ResourcePage struct, and extracts the elements into a slice of Resource structs.
type ResourcePage ¶
type ResourcePage struct {
pagination.MarkerPageBase
}
ResourcePage is the page returned by a pager when traversing over a collection of route tables
func (ResourcePage) IsEmpty ¶
func (r ResourcePage) IsEmpty() (bool, error)
IsEmpty checks whether a ResourcePage struct is empty.
func (ResourcePage) LastMarker ¶
func (r ResourcePage) LastMarker() (string, error)
LastMarker returns the last resource ID in a ListResult
Click to show internal directories.
Click to hide internal directories.