Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoDetectRuntime ¶
AutoDetectRuntime auto detects the underlying container runtime like docker, containerd
Types ¶
type Runtime ¶
type Runtime interface {
ExtractImage(imageID string, imageName string, path string) error
GetImageID(imageName string) ([]byte, error)
Save(imageName, outputParam string) ([]byte, error)
GetSocket() string
ExtractFileSystem(imageTarPath string, outputTarPath string, imageName string) error
ExtractFileSystemContainer(containerId string, namespace string, outputTarPath string) error
ImageExists(imageName string) bool
}
Runtime interface, interfaces all the container runtime methods
func NewRuntime ¶ added in v0.5.3
NewRuntime Auto detect and returns the runtime available for the current system
Click to show internal directories.
Click to hide internal directories.