ctr

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerdClient

type ContainerdClient struct {
	Container  containerd.Container
	Task       containerd.Task
	ExitSignal <-chan containerd.ExitStatus

	Client *containerd.Client
	Sn     *SnapshotterService
	SnId   string
	// contains filtered or unexported fields
}

func NewContainerdClient

func NewContainerdClient(namespace, socket, logLevel string) (c *ContainerdClient, ctx context.Context, err error)

type SnapshotterService

type SnapshotterService struct {
	// contains filtered or unexported fields
}

func NewSnapshotterService

func NewSnapshotterService(ctx context.Context, client *containerd.Client) (sn *SnapshotterService)

func (*SnapshotterService) CommitWorker

func (s *SnapshotterService) CommitWorker(sn string) error

func (*SnapshotterService) PrepareContainerSnapshot

func (s *SnapshotterService) PrepareContainerSnapshot(name, tag, acceleratedImages string, optimize bool, optimizeGroup string) (sn string, mnt []mount.Mount, err error)

func (*SnapshotterService) PrepareDeltaImage

func (s *SnapshotterService) PrepareDeltaImage(fromImages, toImages string) error

PrepareDeltaImage gets

Jump to

Keyboard shortcuts

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