Documentation ¶
Overview ¶
Package userauthapi contains the self service logic required to manage a user's authentication settings, such as API keys.
Index ¶
- func CreateKey(params CreateKeyParams) (*models.APIKeyResponse, error)
- func DeleteKey(params DeleteKeyParams) error
- func GetKey(params GetKeyParams) (*models.APIKeyResponse, error)
- func ListKeys(params ListKeysParams) (*models.APIKeysResponse, error)
- type CreateKeyParams
- type DeleteKeyParams
- type GetKeyParams
- type ListKeysParams
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 ¶
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 ¶
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 ¶
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 ¶
ListKeysParams is consumed by ListKeys
func (ListKeysParams) Validate ¶
func (params ListKeysParams) Validate() error
Validate ensures the parameters are usable by the consuming function.