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) NextPageURL ¶
NextPageURL extracts the "next" link from the links section of the result.
Click to show internal directories.
Click to hide internal directories.