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 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" )
Click to show internal directories.
Click to hide internal directories.