user

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*httpclient.Client
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) CreateUser

func (c *Client) CreateUser(args *CreateUserArgs) (*CreateUserResp, error)

func (*Client) Healthz added in v1.7.1

func (c *Client) Healthz() error

func (*Client) ListUsers

func (c *Client) ListUsers(args *SearchArgs) ([]*User, error)

func (*Client) SearchUser

func (c *Client) SearchUser(args *SearchUserArgs) (*SearchUserResp, error)

type CreateUserArgs

type CreateUserArgs struct {
	Name     string `json:"name"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Phone    string `json:"phone"`
	Account  string `json:"account"`
}

type CreateUserResp

type CreateUserResp struct {
	Name    string `json:"name"`
	Account string `json:"account"`
	Uid     string `json:"uid"`
}

type SearchArgs

type SearchArgs struct {
	UIDs []string `json:"uids"`
}

type SearchUserArgs

type SearchUserArgs struct {
	Account string `json:"account"`
}

type SearchUserResp

type SearchUserResp struct {
	TotalCount int     `json:"totalCount"`
	Users      []*User `json:"users"`
}

type User

type User struct {
	UID          string `json:"uid"`
	Name         string `json:"name"`
	Email        string `json:"email"`
	Phone        string `json:"phone"`
	IdentityType string `json:"identity_type"`
	Account      string `json:"account"`
}

Jump to

Keyboard shortcuts

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