Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNamespace ¶
AddNamespace sets a namespace for the given context
Types ¶
type Interface ¶
type Interface interface {
// FindUnpackedImage looks for the given image reference in containerd and then checks it is already unpacked.
// Returns error if not found or not unpacked.
FindUnpackedImage(ctx context.Context, imageRef string) (ImgMeta, error)
// RunOnMountedROSnapshot mounts as RO the unpacked snapshot from containerd deamon for the given image
// reference and runs the callback with generated mountpoint. Once the callback is executed the mountpoint
// is unmounted and resources freed. The callback gets as input the mountpoint of the image snapshot.
RunOnMountedROSnapshot(ctx context.Context, img ImgMeta, callback func(rootfs string) error) (err error)
}
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func NewWrapper ¶
func (Wrapper) FindUnpackedImage ¶
Click to show internal directories.
Click to hide internal directories.