jwttemplate

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 5 Imported by: 1

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

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.

func Delete

func Delete(ctx context.Context, id string) (*clerk.DeletedResource, error)

Delete deletes a JWT template.

func Get

func Get(ctx context.Context, id string) (*clerk.JWTTemplate, error)

Get returns details about a JWT template.

func List

func List(ctx context.Context, params *ListParams) (*clerk.JWTTemplateList, error)

List returns a list of JWT templates.

func Update

func Update(ctx context.Context, id string, params *UpdateParams) (*clerk.JWTTemplate, error)

Update updates the JWT template specified by id.

Types

type Client

type Client struct {
	Backend clerk.Backend
}

Client is used to invoke the JWT Templates API.

func NewClient

func NewClient(config *clerk.ClientConfig) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, params *CreateParams) (*clerk.JWTTemplate, error)

Create creates a new JWT template.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string) (*clerk.DeletedResource, error)

Delete deletes a JWT template.

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (*clerk.JWTTemplate, error)

Get returns details about a JWT template.

func (*Client) List

func (c *Client) List(ctx context.Context, params *ListParams) (*clerk.JWTTemplateList, error)

List returns a list of JWT templates.

func (*Client) Update

func (c *Client) Update(ctx context.Context, id string, params *UpdateParams) (*clerk.JWTTemplate, error)

Update updates the JWT template specified by id.

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"`
}

Jump to

Keyboard shortcuts

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