Documentation
¶
Index ¶
- Variables
- func BindPodLogOptions(c *gin.Context, containerName string) (*v1.PodLogOptions, error)
- func DeleteFile(c *gin.Context)
- func DownloadFile(c *gin.Context)
- func DownloadLogs(c *gin.Context)
- func DownloadPodLogsBySelector(c *gin.Context, ns string, containerName string, options metav1.ListOptions)
- func FileList(c *gin.Context)
- func PortForwardList(c *gin.Context)
- func SaveFile(c *gin.Context)
- func ShowFile(c *gin.Context)
- func StartPortForward(c *gin.Context)
- func StopPortForward(c *gin.Context)
- func StreamLogs(c *gin.Context)
- func StreamPodLogsBySelector(c *gin.Context, ns string, containerName string, options metav1.ListOptions)
- func TopList(c *gin.Context)
- func UniqueLabels(c *gin.Context)
- func UploadFile(c *gin.Context)
- func Usage(c *gin.Context)
- func Xterm(c *gin.Context)
- type LogQueryParams
- type PortInfo
- type TTYSize
- type TerminalSizeQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var WebsocketMessageType = map[int]string{ websocket.BinaryMessage: "binary", websocket.TextMessage: "text", websocket.CloseMessage: "close", websocket.PingMessage: "ping", websocket.PongMessage: "pong", }
Functions ¶
func BindPodLogOptions ¶
func DeleteFile ¶ added in v0.0.5
func DownloadFile ¶
func DownloadLogs ¶
func PortForwardList ¶ added in v0.0.106
func StartPortForward ¶ added in v0.0.106
func StopPortForward ¶ added in v0.0.106
func StreamLogs ¶
func StreamPodLogsBySelector ¶
func UniqueLabels ¶ added in v0.0.49
UniqueLabels 返回当前集群中所有唯一的 Pod 标签键列表,格式化为前端可用的选项数组。
Types ¶
type LogQueryParams ¶
type PortInfo ¶ added in v0.0.106
type PortInfo struct {
Cluster string `json:"cluster"`
Namespace string `json:"namespace"` // Pod 命名空间
Name string `json:"name"` // pod名称
ContainerName string `json:"container_name"`
PortName string `json:"port_name"` // 端口名称
Protocol string `json:"protocol"` // TCP/UDP/STCP
LocalPort string `json:"local_port"` // 本地端口,转发端口
PodPort string `json:"pod_port"` // pod 端口
Status string `json:"status"` // running/failed/stopped
StopCh chan struct{} `json:"-"`
}
PortInfo 结构体用于描述端口转发信息 包含容器名、端口名、协议、端口号、本地端口、转发状态等
type TerminalSizeQueue ¶ added in v0.0.36
TerminalSizeQueue 维护 TTY 终端大小
func (*TerminalSizeQueue) Next ¶ added in v0.0.36
func (t *TerminalSizeQueue) Next() *remotecommand.TerminalSize
func (*TerminalSizeQueue) Push ¶ added in v0.0.36
func (t *TerminalSizeQueue) Push(cols, rows uint16)
Click to show internal directories.
Click to hide internal directories.