api

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Init

func Init(dbClient *gorm.DB)

Types

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)

Jump to

Keyboard shortcuts

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