package roles
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity/v2/roles"
Index ¶
- func List(client *gophercloud.ServiceClient) pagination.Pager
- func MockAddUserRoleResponse(t *testing.T)
- func MockDeleteUserRoleResponse(t *testing.T)
- func MockListRoleResponse(t *testing.T)
- type UserRoleResult
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient) pagination.Pager
List is the operation responsible for listing all available global roles that a user can adopt.
func MockAddUserRoleResponse ¶
func MockDeleteUserRoleResponse ¶
func MockListRoleResponse ¶
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.
Source Files ¶
delegate.go fixtures.go
- Version
- v1.1.8
- Published
- Feb 23, 2016
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 3 minutes ago –
Tools for package owners.