domains

package
v0.0.0-...-d74374d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

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.

func Extract

func Extract(r pagination.Page) ([]Domain, error)

Extract accepts a Page struct, specifically an v1.CommonPage struct, and extracts the elements into a slice of Domains structs.

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

func (r GetResult) Extract() (*Domain, error)

Extract is a function that accepts a result and extracts a domain resource.

func (GetResult) ExtractInto

func (r GetResult) ExtractInto(v interface{}) error

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

func (opts ListOpts) ToDomainListQuery() (string, error)

ToDomainListQuery formats a ListOpts into a query string.

type ListOptsBuilder

type ListOptsBuilder interface {
	ToDomainListQuery() (string, error)
}

ListOptsBuilder allows extensions to add additional parameters to the List request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL