pod

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 请求

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"`
}

Jump to

Keyboard shortcuts

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