Documentation ¶
Index ¶
- func AssignRoleToUser(roleId string, userId string) (*warrant.Warrant, error)
- func Create(params *warrant.RoleParams) (*warrant.Role, error)
- func Delete(roleId string) error
- func Get(roleId string, params *warrant.RoleParams) (*warrant.Role, error)
- func ListRoles(listParams *warrant.ListRoleParams) ([]warrant.Role, error)
- func ListRolesForUser(userId string, listParams *warrant.ListRoleParams) ([]warrant.Role, error)
- func RemoveRoleFromUser(roleId string, userId string) error
- func Update(roleId string, params *warrant.RoleParams) (*warrant.Role, error)
- type Client
- func (c Client) AssignRoleToUser(roleId string, userId string) (*warrant.Warrant, error)
- func (c Client) Create(params *warrant.RoleParams) (*warrant.Role, error)
- func (c Client) Delete(roleId string) error
- func (c Client) Get(roleId string, params *warrant.RoleParams) (*warrant.Role, error)
- func (c Client) ListRoles(listParams *warrant.ListRoleParams) ([]warrant.Role, error)
- func (c Client) ListRolesForUser(userId string, listParams *warrant.ListRoleParams) ([]warrant.Role, error)
- func (c Client) RemoveRoleFromUser(roleId string, userId string) error
- func (c Client) Update(roleId string, params *warrant.RoleParams) (*warrant.Role, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignRoleToUser ¶
func ListRolesForUser ¶
func RemoveRoleFromUser ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) AssignRoleToUser ¶
func (Client) ListRolesForUser ¶
func (Client) RemoveRoleFromUser ¶
Click to show internal directories.
Click to hide internal directories.