Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Create(ctx context.Context, organizationID string, request *openapi.UserWrite) (*openapi.UserRead, error)
- func (c *Client) Delete(ctx context.Context, organizationID, userID string) error
- func (c *Client) List(ctx context.Context, organizationID string) (openapi.Users, error)
- func (c *Client) Signup(w http.ResponseWriter, r *http.Request)
- func (c *Client) Update(ctx context.Context, organizationID, userID string, request *openapi.UserWrite) (*openapi.UserRead, error)
- type Options
- type SignupClaims
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfiguration = goerrors.New("configuration error")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is responsible for user management.
func New ¶
func New(host string, client client.Client, namespace string, issuer *jose.JWTIssuer, options *Options) *Client
New creates a new user client.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, organizationID string, request *openapi.UserWrite) (*openapi.UserRead, error)
Create makes a new user and issues an access token.
Click to show internal directories.
Click to hide internal directories.