Documentation ¶
Overview ¶
Package pod pod operate
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadPodLog ¶
DownloadPodLog 下载日志 @Summary 下载日志 @Tags Logs @Param container_name query string true "容器名称" @Param previous query string true "是否使用上一次日志, 异常退出使用" @Produce octet-stream @Success 200 {string} string @Router /namespaces/:namespace/pods/:pod/logs/download [get]
func GetPodContainers ¶
GetPodContainers 获取 Pod 容器列表 @Summary 获取 Pod 容器列表 @Tags Logs @Produce json @Success 200 {array} k8sclient.Container @Router /namespaces/:namespace/pods/:pod/containers [get]
func GetPodLog ¶
GetPodLog 查询容器日志 @Summary 查询容器日志 @Tags Logs @Param container_name query string true "容器名称" @Param previous query string true "是否使用上一次日志, 异常退出使用" @Produce json @Success 200 {array} k8sclient.Log @Router /namespaces/:namespace/pods/:pod/logs [get]
func PodLogStream ¶
PodLogStream Server Sent Events Handler 连接处理函数 @Summary SSE 实时日志流 @Tags Logs @Param container_name query string true "容器名称" @Param started_at query string false "开始时间" @Produce text/event-stream @Success 200 {string} string @Router /namespaces/:namespace/pods/:pod/logs/stream [get]
Types ¶
This section is empty.