Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
List returns a Pager which allows you to iterate over a collection of domains.
Types ¶
type BillingDomainMetadata ¶
type BillingDomainMetadata struct { PrimaryContactUserID string `json:"primaryContactUserID"` PrimaryContactEmail string `json:"primaryContactEmail"` AdditionalInformation string `json:"additionalInformation"` CostObjectName string `json:"costObjectName"` CostObjectType string `json:"costObjectType"` ProjectsCanInherit bool `json:"projectsCanInherit"` }
type Domain ¶
type Domain struct { Name string `json:"name"` ID string `json:"uuid"` Description string `json:"description"` BillingMetadata BillingDomainMetadata `json:"cbrMasterdata"` }
Domain represents a OpenStack domain with attached Billing Metadata.
type GetResult ¶
type GetResult struct {
gophercloud.Result
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as a Domain.
func Get ¶
func Get(c *gophercloud.ServiceClient, id string) (r GetResult)
Get retrieves a specific domain based on its unique ID.
func (GetResult) Extract ¶
Extract is a function that accepts a result and extracts a domain resource.
func (GetResult) ExtractInto ¶
type ListOpts ¶
type ListOpts struct { // Limit will limit the number of results returned per page. Limit int `q:"limit"` // UUIDs will only return domains with the specified UUIDs. UUIDs []string `q:"uuids"` }
ListOpts is a structure that holds options for listing domain masterdata.
func (ListOpts) ToDomainListQuery ¶
ToDomainListQuery formats a ListOpts into a query string.
type ListOptsBuilder ¶
ListOptsBuilder allows extensions to add additional parameters to the List request.
Click to show internal directories.
Click to hide internal directories.