pod

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

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 BindPodLogOptions(c *gin.Context, containerName string) (*v1.PodLogOptions, error)

func DeleteFile added in v0.0.5

func DeleteFile(c *gin.Context)

func DownloadFile

func DownloadFile(c *gin.Context)

DownloadFile 处理下载文件的 HTTP 请求

func DownloadLogs

func DownloadLogs(c *gin.Context)

func DownloadPodLogsBySelector

func DownloadPodLogsBySelector(c *gin.Context, ns string, containerName string, options metav1.ListOptions)

func Exec added in v0.0.5

func Exec(c *gin.Context)

func FileList

func FileList(c *gin.Context)

FileList 处理获取文件列表的 HTTP 请求

func SaveFile

func SaveFile(c *gin.Context)

func ShowFile

func ShowFile(c *gin.Context)

ShowFile 处理下载文件的 HTTP 请求

func StreamLogs

func StreamLogs(c *gin.Context)

func StreamPodLogsBySelector

func StreamPodLogsBySelector(c *gin.Context, ns string, containerName string, options metav1.ListOptions)

func UploadFile

func UploadFile(c *gin.Context)

UploadFile 处理上传文件的 HTTP 请求

func Usage added in v0.0.18

func Usage(c *gin.Context)

func WsExec added in v0.0.18

func WsExec(c *gin.Context)

func Xterm added in v0.0.36

func Xterm(c *gin.Context)

Types

type LogQueryParams

type LogQueryParams struct {
	Follow       bool   `form:"follow"`
	Previous     bool   `form:"previous"`
	SinceSeconds *int64 `form:"sinceSeconds"`
	SinceTime    string `form:"sinceTime"` // RFC3339 格式时间字符串
	Timestamps   bool   `form:"timestamps"`
	TailLines    *int64 `form:"tailLines"`
}

type TTYSize added in v0.0.36

type TTYSize struct {
	Cols uint16 `json:"cols"`
	Rows uint16 `json:"rows"`
	X    uint16 `json:"x"`
	Y    uint16 `json:"y"`
}

type TerminalSizeQueue added in v0.0.36

type TerminalSizeQueue struct {
	sync.Mutex
	// contains filtered or unexported fields
}

TerminalSizeQueue 维护 TTY 终端大小

func (*TerminalSizeQueue) Next added in v0.0.36

func (*TerminalSizeQueue) Push added in v0.0.36

func (t *TerminalSizeQueue) Push(cols, rows uint16)

Jump to

Keyboard shortcuts

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