k8s

package
v0.0.0-...-a96862b Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const FileBufferSize = 32 * 1024 // 32KB

FileBufferSize defines the standard buffer size used for I/O operations

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a Kubernetes client

func New

func New() (*Client, error)

func (*Client) DownloadFile

func (c *Client) DownloadFile(ctx context.Context, session, filePath string, writer io.Writer) error

func (*Client) ListCommonNamespaces

func (c *Client) ListCommonNamespaces(ctx context.Context) ([]models.Namespace, error)

func (*Client) ListContainers

func (c *Client) ListContainers(ctx context.Context, session string) ([]models.Container, error)

func (*Client) ListFiles

func (c *Client) ListFiles(ctx context.Context, st *models.State) ([]models.FileInfo, error)

func (*Client) ListRunningPods

func (c *Client) ListRunningPods(ctx context.Context, session string) ([]models.Pod, error)

func (*Client) UploadFile

func (c *Client) UploadFile(ctx context.Context, namespace, pod, container, targetDir string, reader io.Reader) error

Jump to

Keyboard shortcuts

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