Documentation ¶
Index ¶
- Constants
- Variables
- func NewAPIClientProvider(name string, tmpDirGen *file.TempDirGenerator, imageStr string, ...) image.Provider
- func NewArchiveProvider(tmpDirGen *file.TempDirGenerator, path string, ...) image.Provider
- func NewDaemonProvider(tmpDirGen *file.TempDirGenerator, imageStr string, platform *image.Platform) image.Provider
- type LayerID
- type LayerState
- type PullPhase
- type PullStatus
Constants ¶
View Source
const Archive image.Source = image.DockerTarballSource
View Source
const Daemon image.Source = image.DockerDaemonSource
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 LayerState ¶
type LayerState struct { Phase PullPhase PhaseProgress progress.Progressable DownloadProgress progress.Progressable }
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
Click to show internal directories.
Click to hide internal directories.