routers

package
v0.0.0-...-55f83f6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityHandler

type IdentityHandler struct {
	I models.IIdentity
	S models.ISwarmPools
}

func NewIdentityHandler

func NewIdentityHandler() *IdentityHandler

func (*IdentityHandler) SetupRoutes

func (I *IdentityHandler) SetupRoutes(router *gin.RouterGroup)

type IdentityModelValidator

type IdentityModelValidator struct {
	S        models.ISwarmPools `json:"-"`
	Identity struct {
		Name        string   `json:"name" binding:"required,dnsrfc1123,min=4,max=127"`
		URL         string   `json:"url" binding:"required,max=253"`
		Description string   `json:"description" binding:"max=253"`
		Categories  []string `json:"categories" binding:"lte=50,dive,max=63"`
	} `json:"identity"`
	// contains filtered or unexported fields
}

func NewIdentityModelValidator

func NewIdentityModelValidator(S *models.ISwarmPools) IdentityModelValidator

func NewIdentityModelValidatorFillWith

func NewIdentityModelValidatorFillWith(S *models.ISwarmPools, identityModel v1alpha1.Identity) IdentityModelValidator

func (*IdentityModelValidator) Bind

type IdentitySerializer

type IdentitySerializer struct {
	C        *gin.Context
	Identity v1alpha1.Identity
}

func (*IdentitySerializer) Response

func (s *IdentitySerializer) Response() api.Identity

Jump to

Keyboard shortcuts

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