gophercloud: Index | Files

package tenants

import ""

Package tenants provides information and interaction with the tenants API resource for the OpenStack Identity service.

See and for more information.


Package Files

doc.go requests.go results.go urls.go

func ExtractTenants Uses

func ExtractTenants(page pagination.Page) ([]Tenant, error)

ExtractTenants returns a slice of Tenants contained in a single page of results.

func List Uses

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

List enumerates the Tenants to which the current token has access.

type ListOpts Uses

type ListOpts struct {
    // Marker is the ID of the last Tenant on the previous page.
    Marker string `q:"marker"`

    // Limit specifies the page size.
    Limit int `q:"limit"`

ListOpts filters the Tenants that are returned by the List call.

type Tenant Uses

type Tenant struct {
    // ID is a unique identifier for this tenant.
    ID  string `mapstructure:"id"`

    // Name is a friendlier user-facing name for this tenant.
    Name string `mapstructure:"name"`

    // Description is a human-readable explanation of this Tenant's purpose.
    Description string `mapstructure:"description"`

    // Enabled indicates whether or not a tenant is active.
    Enabled bool `mapstructure:"enabled"`

Tenant is a grouping of users in the identity service.

type TenantPage Uses

type TenantPage struct {

TenantPage is a single page of Tenant results.

func (TenantPage) IsEmpty Uses

func (page TenantPage) IsEmpty() (bool, error)

IsEmpty determines whether or not a page of Tenants contains any results.

func (TenantPage) NextPageURL Uses

func (page TenantPage) NextPageURL() (string, error)

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

Package tenants imports 3 packages (graph) and is imported by 27 packages. Updated 2017-06-01. Refresh now. Tools for package owners.