key

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 16 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)

create ak & sk @Summary create key @Description create ak & sk keys @Tags key @Success 200 {object} map[string]string @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/cube/key/create [get]

func DeleteKey

func DeleteKey(c *gin.Context)

@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)

@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 @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/cube/key/token [get]

func GetUUID

func GetUUID() string

func ListKey

func ListKey(c *gin.Context)

@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