apikey

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateApiKey

func GenerateApiKey(ctx *gin.Context)

GenerateApiKey godoc

@Tags			apiKey
@Summary		Generate an API key
@Description	Generate an API key
@Produce		plain
@Param			apiKeyName	path		string	true	"API key name"
@Success		200			{string}	apiKey
@Router			/apikey/{apiKeyName} [post]

@id				GenerateApiKey

func ListClientApiKeys

func ListClientApiKeys(ctx *gin.Context)

ListClientApiKeys godoc

@Tags			apiKey
@Summary		List API keys
@Description	List API keys
@Produce		json
@Success		200	{array}	ApiKey
@Router			/apikey [get]

@id				ListClientApiKeys

func RevokeApiKey

func RevokeApiKey(ctx *gin.Context)

RevokeApiKey godoc

@Tags			apiKey
@Summary		Revoke API key
@Description	Revoke API key
@Param			apiKeyName	path	string	true	"API key name"
@Success		200
@Router			/apikey/{apiKeyName} [delete]

@id				RevokeApiKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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