image

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutableSource

type MutableSource struct {
	ProxySource
	// contains filtered or unexported fields
}

func NewMutableSource

func NewMutableSource(r types.ImageReference) (*MutableSource, error)

func (*MutableSource) AppendConfigHistory added in v0.8.0

func (m *MutableSource) AppendConfigHistory(author string, emptyLayer bool)

func (*MutableSource) AppendLayer

func (m *MutableSource) AppendLayer(content []byte, author string) error

appendLayer appends an uncompressed blob to the image, preserving the invariants required across the config and manifest.

func (*MutableSource) Config added in v0.8.0

func (m *MutableSource) Config() *manifest.Schema2Config

func (*MutableSource) Env added in v0.8.0

func (m *MutableSource) Env() map[string]string

Env returns a map of environment variables stored in the image config Converts each variable from a string of the form KEY=VALUE to a map of KEY:VALUE

func (*MutableSource) GetBlob

func (m *MutableSource) GetBlob(bi types.BlobInfo) (io.ReadCloser, int64, error)

GetBlob first checks the stored "extra" blobs, then proxies the call to the original source.

func (*MutableSource) GetManifest

func (m *MutableSource) GetManifest(_ *digest.Digest) ([]byte, string, error)

Manifest marshals the stored manifest to the byte format.

func (*MutableSource) SetConfig added in v0.8.0

func (m *MutableSource) SetConfig(config *manifest.Schema2Config, author string, emptyLayer bool)

func (*MutableSource) SetEnv added in v0.8.0

func (m *MutableSource) SetEnv(envMap map[string]string, author string)

SetEnv takes a map of environment variables, and converts them to an array of strings in the form KEY=VALUE, and then sets the image config

type ProxyReference

type ProxyReference struct {
	types.ImageReference
	Src types.ImageSource
}

ProxyReference implements types.Reference by proxying calls to an underlying implementation.

func (*ProxyReference) NewImageSource

func (p *ProxyReference) NewImageSource(ctx *types.SystemContext) (types.ImageSource, error)

type ProxySource

type ProxySource struct {
	Ref types.ImageReference
	types.ImageSource
	// contains filtered or unexported fields
}

ProxySource is a type that implements types.ImageSource by proxying all calls to an underlying implementation.

func NewProxySource

func NewProxySource(ref types.ImageReference) (*ProxySource, error)

func (*ProxySource) LayerInfosForCopy

func (p *ProxySource) LayerInfosForCopy() []types.BlobInfo

func (*ProxySource) Reference

func (p *ProxySource) Reference() types.ImageReference

Jump to

Keyboard shortcuts

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