Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwarmPoolConnectionInfoSerializer ¶
type SwarmPoolConnectionInfoSerializer struct { C *gin.Context SwarmPool v1alpha1.SwarmPool PrivateKey string }
func (*SwarmPoolConnectionInfoSerializer) Response ¶
func (s *SwarmPoolConnectionInfoSerializer) Response() SwarmPoolConnectionInfoResponse
type SwarmPoolModelValidator ¶
type SwarmPoolModelValidator struct { SwarmPool struct { Name string `json:"name" binding:"required,dnsrfc1123,min=4,max=127"` IsPrivate bool `json:"is_private"` PrivateKey string `json:"private_key" binding:"required_with=JoiningNodes,isdefault_ifnotprivate,omitempty,base64,min=2,max=2048"` JoiningNodes []string `json:"joining_nodes" binding:"isdefault_ifnotprivate,omitempty,gte=1,lte=100,dive,max=1024"` EntryPoint string `json:"entrypoint" binding:"required,min=3,max=31"` } `json:"network"` // contains filtered or unexported fields }
func NewSwarmPoolModelValidator ¶
func NewSwarmPoolModelValidator() SwarmPoolModelValidator
type SwarmPoolResponse ¶
type SwarmPoolSerializer ¶
func (*SwarmPoolSerializer) Response ¶
func (s *SwarmPoolSerializer) Response() SwarmPoolResponse
type SwarmPoolStatusResponse ¶
type SwarmPoolStatusResponse struct { NetworkState api.NetworkState `json:"state"` IsIdentityPublished bool `json:"is_identity_published"` }
type SwarmPoolStatusSerializer ¶
type SwarmPoolStatusSerializer struct { C *gin.Context NetworkState api.NetworkState IsIdentityPublished bool }
func (*SwarmPoolStatusSerializer) Response ¶
func (s *SwarmPoolStatusSerializer) Response() SwarmPoolStatusResponse
type SwarmPoolsHandler ¶
type SwarmPoolsHandler struct { S models.ISwarmPools I models.IIdentity }
func NewSwarmPoolsHandler ¶
func NewSwarmPoolsHandler() *SwarmPoolsHandler
func (*SwarmPoolsHandler) SetupRoutes ¶
func (S *SwarmPoolsHandler) SetupRoutes(router *gin.RouterGroup)
type SwarmPoolsSerializer ¶
func (*SwarmPoolsSerializer) Response ¶
func (s *SwarmPoolsSerializer) Response() []SwarmPoolResponse
Click to show internal directories.
Click to hide internal directories.