userauthapi

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package userauthapi contains the self service logic required to manage a user's authentication settings, such as API keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKey

func CreateKey(params CreateKeyParams) (*models.APIKeyResponse, error)

CreateKey creates a new API key for the current user.

func DeleteKey

func DeleteKey(params DeleteKeyParams) error

DeleteKey deletes an existing API key for the current user.

func GetKey

func GetKey(params GetKeyParams) (*models.APIKeyResponse, error)

GetKey returns API key details for the current user.

func ListKeys

func ListKeys(params ListKeysParams) (*models.APIKeysResponse, error)

ListKeys returns the available API keys for the current user.

Types

type CreateKeyParams

type CreateKeyParams struct {
	*api.API

	Description string
}

CreateKeyParams is consumed by CreateKey

func (CreateKeyParams) Validate

func (params CreateKeyParams) Validate() error

Validate ensures the parameters are usable by the consuming function.

type DeleteKeyParams

type DeleteKeyParams struct {
	*api.API

	ID string
}

DeleteKeyParams is consumed by DeleteKey

func (DeleteKeyParams) Validate

func (params DeleteKeyParams) Validate() error

Validate ensures the parameters are usable by the consuming function.

type GetKeyParams

type GetKeyParams struct {
	*api.API

	ID string
}

GetKeyParams is consumed by GetKey

func (GetKeyParams) Validate

func (params GetKeyParams) Validate() error

Validate ensures the parameters are usable by the consuming function.

type ListKeysParams

type ListKeysParams struct {
	*api.API
}

ListKeysParams is consumed by ListKeys

func (ListKeysParams) Validate

func (params ListKeysParams) Validate() error

Validate ensures the parameters are usable by the consuming function.

Directories

Path Synopsis
Package userauthadminapi contains the logic required to manage a user's authentication settings, such as API keys.
Package userauthadminapi contains the logic required to manage a user's authentication settings, such as API keys.

Jump to

Keyboard shortcuts

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