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") ErrReference = goerrors.New("resource reference 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. This creates a new user in an organization, but they reference a unique user resource, so we need to get or create the underlying record first, then add to the organization.
type SignupClaims ¶ added in v0.2.52
Click to show internal directories.
Click to hide internal directories.