pod

package
v0.0.0-...-344df76 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pod pod operate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadPodLog

func DownloadPodLog(c *rest.Context)

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

func GetPodContainers(c *rest.Context) (interface{}, error)

GetPodContainers 获取 Pod 容器列表 @Summary 获取 Pod 容器列表 @Tags Logs @Produce json @Success 200 {array} k8sclient.Container @Router /namespaces/:namespace/pods/:pod/containers [get]

func GetPodLog

func GetPodLog(c *rest.Context) (interface{}, error)

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

func PodLogStream(c *rest.Context)

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.

Jump to

Keyboard shortcuts

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