layerfetcher

package
v0.0.0-...-90a43f9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 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) Close

func (f *LayerFetcher) Close() error

func (*LayerFetcher) ImageInfo

func (f *LayerFetcher) ImageInfo(logger lager.Logger) (imagepuller.ImageInfo, error)

func (*LayerFetcher) StreamBlob

func (f *LayerFetcher) StreamBlob(logger lager.Logger, layerInfo imagepuller.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 QuotaedReader

type QuotaedReader struct {
	DelegateReader            io.ReadCloser
	QuotaLeft                 int64
	QuotaExceededErrorHandler func() error
}

func NewQuotaedReader

func NewQuotaedReader(delegateReader io.ReadCloser, quotaLeft int64, errorMsg string) *QuotaedReader

func (*QuotaedReader) Close

func (q *QuotaedReader) Close() error

func (*QuotaedReader) Read

func (q *QuotaedReader) Read(p []byte) (int, error)

type Source

type Source interface {
	Manifest(logger lager.Logger) (types.Image, error)
	Blob(logger lager.Logger, layerInfo imagepuller.LayerInfo) (string, int64, error)
	Close() 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