source

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 21 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, way string) (string, error)

func CopyFromLocal

func CopyFromLocal(src, way string) (string, error)

func CopyFromPod

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

func DownloadFromHttp

func DownloadFromHttp(url, way 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