roles

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2015 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List is the operation responsible for listing all available global roles that a user can adopt.

func MockAddUserRoleResponse

func MockAddUserRoleResponse(t *testing.T)

func MockDeleteUserRoleResponse

func MockDeleteUserRoleResponse(t *testing.T)

func MockListRoleResponse

func MockListRoleResponse(t *testing.T)

Types

type UserRoleResult

type UserRoleResult struct {
	gophercloud.ErrResult
}

UserRoleResult represents the result of either an AddUserRole or a DeleteUserRole operation.

func AddUserRole

func AddUserRole(client *gophercloud.ServiceClient, userID, roleID string) UserRoleResult

AddUserRole is the operation responsible for assigning a particular role to a user. This is confined to the scope of the user's tenant - so the tenant ID is a required argument.

func DeleteUserRole

func DeleteUserRole(client *gophercloud.ServiceClient, userID, roleID string) UserRoleResult

DeleteUserRole is the operation responsible for deleting a particular role from a user. This is confined to the scope of the user's tenant - so the tenant ID is a required argument.

Jump to

Keyboard shortcuts

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