Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) DownloadFile(ctx context.Context, session, filePath string, writer io.Writer) error
- func (c *Client) ListCommonNamespaces(ctx context.Context) ([]models.Namespace, error)
- func (c *Client) ListContainers(ctx context.Context, session string) ([]models.Container, error)
- func (c *Client) ListFiles(ctx context.Context, st *models.State) ([]models.FileInfo, error)
- func (c *Client) ListRunningPods(ctx context.Context, session string) ([]models.Pod, error)
- func (c *Client) UploadFile(ctx context.Context, namespace, pod, container, targetDir string, ...) error
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 (*Client) DownloadFile ¶
func (*Client) ListCommonNamespaces ¶
func (*Client) ListContainers ¶
func (*Client) ListRunningPods ¶
Click to show internal directories.
Click to hide internal directories.