Documentation ¶
Overview ¶
Code generated by "gen"; DO NOT EDIT. This file is meant to be re-generated in place and/or deleted at any time.
Package jwttemplate provides the JWT Templates API.
Index ¶
- func Create(ctx context.Context, params *CreateParams) (*clerk.JWTTemplate, error)
- func Delete(ctx context.Context, id string) (*clerk.DeletedResource, error)
- func Get(ctx context.Context, id string) (*clerk.JWTTemplate, error)
- func List(ctx context.Context, params *ListParams) (*clerk.JWTTemplateList, error)
- func Update(ctx context.Context, id string, params *UpdateParams) (*clerk.JWTTemplate, error)
- type Client
- func (c *Client) Create(ctx context.Context, params *CreateParams) (*clerk.JWTTemplate, error)
- func (c *Client) Delete(ctx context.Context, id string) (*clerk.DeletedResource, error)
- func (c *Client) Get(ctx context.Context, id string) (*clerk.JWTTemplate, error)
- func (c *Client) List(ctx context.Context, params *ListParams) (*clerk.JWTTemplateList, error)
- func (c *Client) Update(ctx context.Context, id string, params *UpdateParams) (*clerk.JWTTemplate, error)
- type CreateParams
- type ListParams
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, params *CreateParams) (*clerk.JWTTemplate, error)
Create creates a new JWT template.
Types ¶
type Client ¶
type Client struct {
Backend clerk.Backend
}
Client is used to invoke the JWT Templates API.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, params *CreateParams) (*clerk.JWTTemplate, error)
Create creates a new JWT template.
type CreateParams ¶
type CreateParams struct { clerk.APIParams Name *string `json:"name,omitempty"` Claims json.RawMessage `json:"claims,omitempty"` Lifetime *int64 `json:"lifetime,omitempty"` AllowedClockSkew *int64 `json:"allowed_clock_skew,omitempty"` CustomSigningKey *bool `json:"custom_signing_key,omitempty"` SigningKey *string `json:"signing_key,omitempty"` SigningAlgorithm *string `json:"signing_algorithm,omitempty"` }
type ListParams ¶
type ListParams struct {
clerk.APIParams
}
type UpdateParams ¶
type UpdateParams struct { clerk.APIParams Name *string `json:"name,omitempty"` Claims json.RawMessage `json:"claims,omitempty"` Lifetime *int64 `json:"lifetime,omitempty"` AllowedClockSkew *int64 `json:"allowed_clock_skew,omitempty"` CustomSigningKey *bool `json:"custom_signing_key,omitempty"` SigningKey *string `json:"signing_key,omitempty"` SigningAlgorithm *string `json:"signing_algorithm,omitempty"` }
Click to show internal directories.
Click to hide internal directories.