containerd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 31 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonImageProvider

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

DaemonImageProvider is a image.Provider capable of fetching and representing a docker image from the containerd daemon API.

func NewProviderFromDaemon

func NewProviderFromDaemon(imgStr string, tmpDirGen *file.TempDirGenerator, c *containerd.Client, namespace string, registryOptions image.RegistryOptions, platform *image.Platform) (*DaemonImageProvider, error)

NewProviderFromDaemon creates a new provider instance for a specific image that will later be cached to the given directory.

func (*DaemonImageProvider) Provide

func (p *DaemonImageProvider) Provide(ctx context.Context, userMetadata ...image.AdditionalMetadata) (*image.Image, error)

Provide an image object that represents the cached docker image tar fetched from a containerd daemon.

type LayerID

type LayerID string

type PullStatus

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

func (*PullStatus) Complete

func (ps *PullStatus) Complete() bool

func (*PullStatus) Current

func (ps *PullStatus) Current(layer LayerID) progress.Progressable

func (*PullStatus) Layers

func (ps *PullStatus) Layers() []LayerID

type StatusInfoStatus

type StatusInfoStatus string

StatusInfoStatus describes status info for an upload or download.

const (
	StatusResolved    StatusInfoStatus = "resolved"
	StatusResolving   StatusInfoStatus = "resolving"
	StatusWaiting     StatusInfoStatus = "waiting"
	StatusCommitting  StatusInfoStatus = "committing"
	StatusDone        StatusInfoStatus = "done"
	StatusDownloading StatusInfoStatus = "downloading"
	StatusUploading   StatusInfoStatus = "uploading"
	StatusExists      StatusInfoStatus = "exists"
)

Jump to

Keyboard shortcuts

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