source

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPodNotFound    = errors.New("pod not found")
	ErrContainerEmpty = errors.New("container empty")
	ErrAddressInvalid = errors.New("invalid save.path, eg: k8s://namespace/podName:filePath")
)

Functions

func CopyFromContainer

func CopyFromContainer(containerID, remotePath string) (string, error)

func CopyFromLocal

func CopyFromLocal(srcFileName string) (string, error)

func CopyFromPod

func CopyFromPod(namespace, podName, container, remotePath string) (string, error)

func DownloadFromHttp

func DownloadFromHttp(url string) (string, error)

func ParseDockerAddress

func ParseDockerAddress(address string) (containerID, filePath string, err error)

func ParseK8sAddress

func ParseK8sAddress(address string) (namespace, pod, container, filePath string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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