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
Click to show internal directories.
Click to hide internal directories.