ctr

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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) Create

func (s *SnapshotterService) Create(ref, containerName string, optimize bool) (sn string, mnt []mount.Mount, err error)

func (*SnapshotterService) GetHash

func (s *SnapshotterService) GetHash(ref string) string

func (*SnapshotterService) Pull

func (s *SnapshotterService) Pull(from, proxy, ref string) (err error)

Jump to

Keyboard shortcuts

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