user

package
v5.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignUserToTenant

func AssignUserToTenant(userId string, tenantId string, role string) (*warrant.Warrant, error)

func BatchCreate

func BatchCreate(params []warrant.UserParams) ([]warrant.User, error)

func Create

func Create(params *warrant.UserParams) (*warrant.User, error)

func Delete

func Delete(userId string) error

func Get

func Get(userId string, params *warrant.UserParams) (*warrant.User, error)

func ListUsers

func ListUsers(listParams *warrant.ListUserParams) ([]warrant.User, error)

func ListUsersForTenant

func ListUsersForTenant(tenantId string, listParams *warrant.ListUserParams) ([]warrant.User, error)

func RemoveUserFromTenant

func RemoveUserFromTenant(userId string, tenantId string, role string) error

func Update

func Update(userId string, params *warrant.UserParams) (*warrant.User, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config warrant.ClientConfig) Client

func (Client) AssignUserToTenant

func (c Client) AssignUserToTenant(userId string, tenantId string, role string) (*warrant.Warrant, error)

func (Client) BatchCreate

func (c Client) BatchCreate(params []warrant.UserParams) ([]warrant.User, error)

func (Client) Create

func (c Client) Create(params *warrant.UserParams) (*warrant.User, error)

func (Client) Delete

func (c Client) Delete(userId string) error

func (Client) Get

func (c Client) Get(userId string, params *warrant.UserParams) (*warrant.User, error)

func (Client) ListUsers

func (c Client) ListUsers(listParams *warrant.ListUserParams) ([]warrant.User, error)

func (Client) ListUsersForTenant

func (c Client) ListUsersForTenant(tenantId string, listParams *warrant.ListUserParams) ([]warrant.User, error)

func (Client) RemoveUserFromTenant

func (c Client) RemoveUserFromTenant(userId string, tenantId string, role string) error

func (Client) Update

func (c Client) Update(userId string, params *warrant.UserParams) (*warrant.User, error)

Jump to

Keyboard shortcuts

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