base_image_puller

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 7 Imported by: 14

Documentation

Index

Constants

View Source
const BaseImageReferenceFormat = "baseimage:%s"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseImageInfo

type BaseImageInfo struct {
	LayersDigest []LayerDigest
	Config       specsv1.Image
}

type BaseImagePuller

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

func NewBaseImagePuller

func NewBaseImagePuller(localFetcher, remoteFetcher Fetcher, unpacker Unpacker, volumeDriver VolumeDriver, dependencyRegisterer DependencyRegisterer) *BaseImagePuller

func (*BaseImagePuller) Pull

type DependencyRegisterer

type DependencyRegisterer interface {
	Register(id string, chainIDs []string) error
}

type Fetcher

type Fetcher interface {
	BaseImageInfo(logger lager.Logger, baseImageURL *url.URL) (BaseImageInfo, error)
	StreamBlob(logger lager.Logger, baseImageURL *url.URL, source string) (io.ReadCloser, int64, error)
}

type LayerDigest

type LayerDigest struct {
	BlobID        string
	ChainID       string
	ParentChainID string
	Size          int64
}

type UnpackSpec

type UnpackSpec struct {
	Stream      io.ReadCloser
	TargetPath  string
	UIDMappings []groot.IDMappingSpec
	GIDMappings []groot.IDMappingSpec
}

type Unpacker

type Unpacker interface {
	Unpack(logger lager.Logger, spec UnpackSpec) error
}

type VolumeDriver

type VolumeDriver interface {
	Path(logger lager.Logger, id string) (string, error)
	Create(logger lager.Logger, parentID, id string) (string, error)
	DestroyVolume(logger lager.Logger, id string) error
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
unpackerfakes
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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