puller

package
v0.0.0-...-84b6aa6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobCacher

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

func NewBlobCacher

func NewBlobCacher(cachePath string, puller Puller) (*BlobCacher, error)

func (*BlobCacher) PullBlob

func (p *BlobCacher) PullBlob(img string, d digest.Digest) (image.BlobReader, error)

func (*BlobCacher) PullIndex

func (p *BlobCacher) PullIndex(img string) (*spec.Index, error)

type LocalPuller

type LocalPuller struct {
}

LocalPuller lacks caching. Use with BlobCacher.

func NewLocalPuller

func NewLocalPuller() *LocalPuller

func (*LocalPuller) PullBlob

func (p *LocalPuller) PullBlob(img string, d digest.Digest) (image.BlobReader, error)

func (*LocalPuller) PullIndex

func (p *LocalPuller) PullIndex(img string) (*spec.Index, error)

type Puller

type Puller interface {
	PullBlob(img string, d digest.Digest) (image.BlobReader, error)
	PullIndex(img string) (*spec.Index, error)
}

Jump to

Keyboard shortcuts

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