image

package
v0.0.0-...-e99be67 Latest Latest
Warning

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

Go to latest
Published: May 4, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ImageMetadataFile = "metadata.json"
View Source
const RawRootFSScheme = "raw"

Variables

View Source
var ErrImageGetDidNotProduceVolume = errors.New("fetching the image did not produce a volume")
View Source
var ErrImageUnavailable = errors.New("no versions of image available")

ErrImageUnavailable is returned when a task's configured image resource has no versions.

View Source
var ErrUnsupportedResourceType = errors.New("unsupported resource type")

Functions

func NewImageFactory

func NewImageFactory(
	imageResourceFetcherFactory ImageResourceFetcherFactory,
) worker.ImageFactory

Types

type ImageResourceFetcher

type ImageResourceFetcher interface {
	Fetch(
		logger lager.Logger,
		signals <-chan os.Signal,
		resourceUser dbng.ResourceUser,
		imageResourceType string,
		imageResourceSource atc.Source,
		tags atc.Tags,
		teamID int,
		customTypes atc.VersionedResourceTypes,
		imageFetchingDelegate worker.ImageFetchingDelegate,
		privileged bool,
	) (worker.Volume, io.ReadCloser, atc.Version, error)
}

type ImageResourceFetcherFactory

type ImageResourceFetcherFactory interface {
	ImageResourceFetcherFor(worker.Worker) ImageResourceFetcher
}

func NewImageResourceFetcherFactory

func NewImageResourceFetcherFactory(
	resourceFetcherFactory resource.FetcherFactory,
	resourceFactoryFactory resource.ResourceFactoryFactory,
	dbResourceCacheFactory dbng.ResourceCacheFactory,
	dbResourceConfigFactory dbng.ResourceConfigFactory,
	clock clock.Clock,
) ImageResourceFetcherFactory

type MalformedMetadataError

type MalformedMetadataError struct {
	UnmarshalError error
}

func (MalformedMetadataError) Error

func (err MalformedMetadataError) Error() string

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

Jump to

Keyboard shortcuts

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