remote

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerSource

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

func NewDockerSource

func NewDockerSource(trustedRegistries []string) *DockerSource

func (*DockerSource) Blob

func (s *DockerSource) Blob(logger lager.Logger, baseImageURL *url.URL, digest string) ([]byte, int64, error)

func (*DockerSource) Config

func (s *DockerSource) Config(logger lager.Logger, baseImageURL *url.URL, manifest Manifest) (specsv1.Image, error)

func (*DockerSource) Manifest

func (s *DockerSource) Manifest(logger lager.Logger, baseImageURL *url.URL) (Manifest, 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) ([]byte, 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