pod

package
v0.0.0-...-1af1d7c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 6 Imported by: 0

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 GetPodResponse struct {
	v1.Pod `json:",inline"`
}

type K8sClient

type K8sClient struct {
	Client kubernetes.Interface
}

type ListPodResponse

type ListPodResponse struct {
	v1.PodList `json:",inline"`
}

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)

Jump to

Keyboard shortcuts

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