Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
*K8sClient
}
func NewPodController ¶
func NewPodController(k8sClient *K8sClient) Controller
func (*Controller) GetPod ¶
func (p *Controller) GetPod(ctx *gin.Context)
GetPod @Summary Get Pod. @Description Return Pod. @Tags pod @Router /api/v1/namespaces/{namespace}/pods/{podName} [get] @Param namespace path string true "Namespace" default(default) @Param podName path string true "Pod name" @Response 200 {object} GetPodResponse @Produce application/json
func (*Controller) ListPod ¶
func (p *Controller) ListPod(ctx *gin.Context)
ListPod @Summary Get the List of Pod. @Description Return list of Pod. @Tags pod @Router /api/v1/namespaces/{namespace}/pods [get] @Param namespace path string true "Namespace" default(default) @Response 200 {array} ListPodResponse @Produce application/json
type GetPodResponse ¶
type K8sClient ¶
type K8sClient struct {
Client kubernetes.Interface
}
type ListPodResponse ¶
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func NewPodRoute ¶
func NewPodRoute(controller Controller) Route
func (*Route) Route ¶
func (r *Route) Route(router *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.