remote

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobReader added in v0.9.0

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

func NewBlobReader added in v0.9.0

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

func (*BlobReader) Close added in v0.9.0

func (d *BlobReader) Close() error

func (*BlobReader) Read added in v0.9.0

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

type History

type History struct {
	V1Compatibility string `json:"v1Compatibility"`
}

type Layer

type Layer struct {
	BlobID string
	Size   int64
}

type Manifest

type Manifest struct {
	SchemaVersion   int
	Layers          []Layer
	ConfigCacheKey  string
	V1Compatibility []string
}

type RemoteFetcher

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

func NewRemoteFetcher

func NewRemoteFetcher(source Source, cacheDriver fetcher.CacheDriver) *RemoteFetcher

func (*RemoteFetcher) BaseImageInfo added in v0.4.0

func (f *RemoteFetcher) BaseImageInfo(logger lager.Logger, baseImageURL *url.URL) (base_image_puller.BaseImageInfo, error)

func (*RemoteFetcher) StreamBlob

func (f *RemoteFetcher) StreamBlob(logger lager.Logger, baseImageURL *url.URL, source string) (io.ReadCloser, int64, error)

type SchemaV1Manifest

type SchemaV1Manifest struct {
	FSLayers []map[string]string `json:"fsLayers"`
	History  []History           `json:"history"`
}

type Source

type Source interface {
	Manifest(logger lager.Logger, baseImageURL *url.URL) (Manifest, error)
	Config(logger lager.Logger, baseImageURL *url.URL, manifest Manifest) (specsv1.Image, error)
	Blob(logger lager.Logger, baseImageURL *url.URL, digest string) (string, int64, error)
}

type V1Compatibility

type V1Compatibility struct {
	ID string `json:"id"`
}

Directories

Path Synopsis
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