Versions in this module Expand all Collapse all v2 v2.0.0 Feb 24, 2023 Changes in this version + func AssignRoleToUser(roleId string, userId string) (*warrant.Role, error) + func Create(params *warrant.RoleParams) (*warrant.Role, error) + func Delete(roleId string) error + func Get(roleId string) (*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 struct + func NewClient(config config.ClientConfig) Client + func (c Client) AssignRoleToUser(roleId string, userId string) (*warrant.Role, error) + func (c Client) Create(params *warrant.RoleParams) (*warrant.Role, error) + func (c Client) Delete(roleId string) error + func (c Client) Get(roleId string) (*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) Other modules containing this package github.com/warrant-dev/warrant-go/v3 github.com/warrant-dev/warrant-go/v4 github.com/warrant-dev/warrant-go/v5 github.com/warrant-dev/warrant-go/v6