docker

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 30 Imported by: 8

Documentation

Index

Constants

Variables

View Source
var ErrMultipleManifests = fmt.Errorf("cannot process multiple docker manifests")

Functions

func NewAPIClientProvider added in v0.0.2

func NewAPIClientProvider(name string, tmpDirGen *file.TempDirGenerator, imageStr string, platform *image.Platform, newClient apiClientCreator) image.Provider

NewAPIClientProvider creates a new provider for the provided Docker client.APIClient

func NewArchiveProvider added in v0.0.2

func NewArchiveProvider(tmpDirGen *file.TempDirGenerator, path string, additionalMetadata ...image.AdditionalMetadata) image.Provider

NewArchiveProvider creates a new provider able to resolve docker tarball archives

func NewDaemonProvider added in v0.0.2

func NewDaemonProvider(tmpDirGen *file.TempDirGenerator, imageStr string, platform *image.Platform) image.Provider

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

Types

type LayerID

type LayerID string

type LayerState

type LayerState struct {
	Phase            PullPhase
	PhaseProgress    progress.Progressable
	DownloadProgress progress.Progressable
}

type PullPhase

type PullPhase int
const (
	UnknownPhase PullPhase = iota
	WaitingPhase
	PullingFsPhase
	DownloadingPhase
	DownloadCompletePhase
	ExtractingPhase
	VerifyingChecksumPhase
	AlreadyExistsPhase
	PullCompletePhase
)

type PullStatus

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

func (*PullStatus) Complete

func (p *PullStatus) Complete() bool

func (*PullStatus) Current

func (p *PullStatus) Current(layer LayerID) LayerState

func (*PullStatus) Layers

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

Jump to

Keyboard shortcuts

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