roles

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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignToUserInProject

func AssignToUserInProject(client *gophercloud.ServiceClient, projectID, userID, roleID string) error

func List

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

Types

type ListOpts

type ListOpts struct {

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

	// Enabled filters the response by domain_id.
	DomainID string `q:"domain_id"`
}

ListOpts provides options to filter the List results.

type Role

type Role struct {
	ID       string `json:"id,omitempty"`
	Name     string `json:"name,omitempty"`
	DomainID string `json:"domain_id,omitempty"`
}

Role represents a Role in an assignment.

func ExtractRoles

func ExtractRoles(r pagination.Page) ([]Role, error)

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

type RolePage

type RolePage struct {
	pagination.LinkedPageBase
}

RolePage is a single page of User results.

func (RolePage) IsEmpty

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

IsEmpty determines whether or not a RolePage contains any results.

func (RolePage) NextPageURL

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

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

Jump to

Keyboard shortcuts

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