key

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserLabel = "kubecube.io/user"
)

Variables

This section is empty.

Functions

func CreateKey

func CreateKey(c *gin.Context)

CreateKey creates ak and sk create ak & sk @Summary create key @Description create ak & sk keys @Tags key @Success 200 {object} map[string]string "{"accessKey":"xxx","secretKey":"xxx"}" @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/cube/key/create [get]

func DeleteKey

func DeleteKey(c *gin.Context)

DeleteKey delete ak and sk @Summary delete key @Description delete ak & sk keys @Tags key @Param accessKey query string true "access key" @Success 200 {object} response.SuccessInfo @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/cube/key [delete]

func GetTokenByKey

func GetTokenByKey(c *gin.Context)

GetTokenByKey get token by key @Summary get token by key @Description query key by ak&sk @Tags key @Param accessKey query string false "access key" @Param secretKey query string false "secret key" @Success 200 {object} map[string]string "{"token":""}" @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/cube/key/token [get]

func GetUUID

func GetUUID() string

func ListKey

func ListKey(c *gin.Context)

ListKey query key by token @Summary list key @Description query key by token @Tags key @Success 200 {object} v1.KeyList @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/cube/key [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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