Documentation ¶
Index ¶
- Variables
- type Controller
- type GetInfoDto
- type GetNodesDto
- type Kubeconfig
- type M
- type Service
- func (x *Service) GetInfo(ctx context.Context, id primitive.ObjectID) (data M, err error)
- func (x *Service) GetKube(ctx context.Context, id primitive.ObjectID) (kube *kubernetes.Clientset, err error)
- func (x *Service) GetNodes(ctx context.Context, id primitive.ObjectID) (data []interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
ClustersService *Service
}
func (*Controller) GetInfo ¶
func (x *Controller) GetInfo(ctx context.Context, c *app.RequestContext)
func (*Controller) GetNodes ¶
func (x *Controller) GetNodes(ctx context.Context, c *app.RequestContext)
type GetInfoDto ¶
type GetInfoDto struct {
Id string `path:"id,required" vd:"mongoId($);msg:'the document id must be an ObjectId'"`
}
type GetNodesDto ¶
type GetNodesDto struct {
Id string `path:"id,required" vd:"mongoId($);msg:'the document id must be an ObjectId'"`
}
type Kubeconfig ¶
Click to show internal directories.
Click to hide internal directories.