imagepuller

package
v0.0.0-...-146d009 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	ImageInfo(logger lager.Logger) (ImageInfo, error)
	StreamBlob(logger lager.Logger, layerInfo LayerInfo) (io.ReadCloser, int64, error)
	Close() error
}

type Image

type Image struct {
	Config   imgspec.Image
	ChainIDs []string
	Size     int64
}

type ImageInfo

type ImageInfo struct {
	LayerInfos []LayerInfo
	Config     imgspec.Image
}

type ImagePuller

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

func NewImagePuller

func NewImagePuller(fetcher Fetcher, volumeDriver VolumeDriver) *ImagePuller

func (*ImagePuller) Pull

func (p *ImagePuller) Pull(logger lager.Logger, spec ImageSpec) (Image, error)

type ImageSpec

type ImageSpec struct {
	DiskLimit             int64
	ExcludeImageFromQuota bool
}

type LayerInfo

type LayerInfo struct {
	BlobID        string
	ChainID       string
	DiffID        string
	ParentChainID string
	Size          int64
	URLs          []string
	MediaType     string
}

type VolumeDriver

type VolumeDriver interface {
	Unpack(logger lager.Logger, layerID string, parentIDs []string, layerTar io.Reader) (int64, error)
}

type VolumeMeta

type VolumeMeta struct {
	Size int64
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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