Documentation ¶
Index ¶
Constants ¶
View Source
const BaseImageReferenceFormat = "baseimage:%s"
View Source
const MetricsDownloadTimeName = "DownloadTime"
View Source
const MetricsUnpackTimeName = "UnpackTime"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseImageInfo ¶
type BaseImagePuller ¶
type BaseImagePuller struct {
// contains filtered or unexported fields
}
func NewBaseImagePuller ¶
func NewBaseImagePuller(fetcher Fetcher, unpacker Unpacker, volumeDriver VolumeDriver, dependencyRegisterer DependencyRegisterer, metricsEmitter groot.MetricsEmitter, locksmith groot.Locksmith) *BaseImagePuller
func (*BaseImagePuller) Pull ¶
func (p *BaseImagePuller) Pull(logger lager.Logger, spec groot.BaseImageSpec) (groot.BaseImage, error)
type DependencyRegisterer ¶
type UnpackOutput ¶ added in v0.26.0
type UnpackSpec ¶
type UnpackSpec struct { Stream io.ReadCloser `json:"-"` TargetPath string UIDMappings []groot.IDMappingSpec GIDMappings []groot.IDMappingSpec BaseDirectory string }
type Unpacker ¶
type Unpacker interface {
Unpack(logger lager.Logger, spec UnpackSpec) (UnpackOutput, error)
}
type VolumeDriver ¶
type VolumeDriver interface { VolumePath(logger lager.Logger, id string) (string, error) CreateVolume(logger lager.Logger, parentID, id string) (string, error) DestroyVolume(logger lager.Logger, id string) error Volumes(logger lager.Logger) ([]string, error) MoveVolume(logger lager.Logger, from, to string) error WriteVolumeMeta(logger lager.Logger, id string, data VolumeMeta) error HandleOpaqueWhiteouts(logger lager.Logger, id string, opaqueWhiteouts []string) error }
type VolumeMeta ¶ added in v0.26.0
type VolumeMeta struct {
Size int64
}
Directories ¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
unpackerfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.