apikeys

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) CreateApiKey

func (c *Client) CreateApiKey(
	ctx context.Context,
	request *sdk.CreateApiKeyRequest,
	opts ...option.RequestOption,
) (*sdk.ApiKeyResponse, error)

Create a new API key for the organization

func (*Client) DeleteApiKey

func (c *Client) DeleteApiKey(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.ApiKeyResponse, error)

Delete an existing API key

func (*Client) GetAllApiKeys

func (c *Client) GetAllApiKeys(
	ctx context.Context,
	opts ...option.RequestOption,
) (sdk.ApiKeysResponse, error)

Retrieve all API keys for the organization

func (*Client) GetApiKey

func (c *Client) GetApiKey(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.ApiKeyResponse, error)

Retrieve a specific API key

func (*Client) RegenerateApiKey

func (c *Client) RegenerateApiKey(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.RegenerateApiKeyResponse, error)

Generate a new value for an existing API key

func (*Client) UpdateApiKey

func (c *Client) UpdateApiKey(
	ctx context.Context,
	id string,
	request *sdk.UpdateApiKeyRequest,
	opts ...option.RequestOption,
) (*sdk.ApiKeyResponse, error)

Update an existing API key

Jump to

Keyboard shortcuts

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