Help us shape the future of Go! Take the 2026 Go Developer Survey

domains

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(client *gophercloud.ServiceClient, opts *ListOpts) pagination.Pager

Types

type Domain

type Domain struct {
	// Description is the description of the domain.
	Description string `json:"description"`

	// Enabled is whether or not the project is enabled.
	Enabled bool `json:"enabled"`

	// ID is the unique ID of the domain.
	ID string `json:"id"`

	// Name is the name of the domain.
	Name string `json:"name"`
}

Project is a base unit of ownership.

func ExtractDomains

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

ExtractDomains returns a slice of Domains contained in a single page of results.

type DomainPage

type DomainPage struct {
	pagination.LinkedPageBase
}

DomainPage is a single page of User results.

func (DomainPage) IsEmpty

func (r DomainPage) IsEmpty() (bool, error)

IsEmpty determines whether or not a DomainPage contains any results.

func (DomainPage) NextPageURL

func (r DomainPage) NextPageURL() (string, error)

NextPageURL extracts the "next" link from the links section of the result.

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

GetResult temporarily contains the response from the Get call.

func Get

func Get(client *gophercloud.ServiceClient, id string) (r GetResult)

Get retrieves details on a single project, by ID.

func (GetResult) Extract

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

Extract interprets any domainResult as a Domain.

type ListOpts

type ListOpts struct {

	// Name filters the response by name.
	Name string `q:"name"`

	// Enabled filters the response by enabled domains.
	Enabled *bool `q:"enabled"`
}

ListOpts provides options to filter the List results.

Jump to

Keyboard shortcuts

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