layer_fetcher

package
v0.0.0-...-ea9d892 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobReader

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

func NewBlobReader

func NewBlobReader(blobPath string) (*BlobReader, error)

func (*BlobReader) Close

func (d *BlobReader) Close() error

func (*BlobReader) Read

func (d *BlobReader) Read(p []byte) (int, error)

type LayerFetcher

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

func NewLayerFetcher

func NewLayerFetcher(source Source) *LayerFetcher

func (*LayerFetcher) BaseImageInfo

func (f *LayerFetcher) BaseImageInfo(logger lager.Logger, baseImageURL *url.URL) (groot.BaseImageInfo, error)

func (*LayerFetcher) StreamBlob

func (f *LayerFetcher) StreamBlob(logger lager.Logger, baseImageURL *url.URL, layerInfo groot.LayerInfo) (io.ReadCloser, int64, error)

type Manifest

type Manifest interface {
	// Manifest is just a shortcut for the types.Image interface,
	// to make it simpler to test with fakes.
	types.Image
}

type Source

type Source interface {
	Manifest(logger lager.Logger, baseImageURL *url.URL) (types.Image, error)
	Blob(logger lager.Logger, baseImageURL *url.URL, layerInfo groot.LayerInfo) (string, int64, error)
}

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