Documentation ¶
Index ¶
Constants ¶
const (
UserLabel = "kubecube.io/user"
)
Variables ¶
This section is empty.
Functions ¶
func CreateKey ¶
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 ¶
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 ¶
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]
Types ¶
This section is empty.