Back to godoc.org

Package api

v1.0.6
Latest Go to latest

The highest tagged major version is .

Published: Oct 31, 2016 | License: Apache-2.0 | Module: github.com/Dataman-Cloud/crane

Index

Constants

const (
	CodeCreateRegistryAuthParamError = "400-17001"
	CodeGetRegistryAuthExistError    = "400-17002"
	CodeDeleteRegistryAuthParamError = "400-17003"
	CodeRegistryAuthInvalidUserError = "401-17004"
)

func Init

func Init(dbClient *gorm.DB)

type RegistryAuthApi

type RegistryAuthApi struct{}

func (*RegistryAuthApi) ApiRegister

func (api *RegistryAuthApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)

func (*RegistryAuthApi) Create

func (api *RegistryAuthApi) Create(ctx *gin.Context)

func (*RegistryAuthApi) Delete

func (api *RegistryAuthApi) Delete(ctx *gin.Context)

func (*RegistryAuthApi) List

func (api *RegistryAuthApi) List(ctx *gin.Context)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier