Documentation
¶
Index ¶
- type MutableSource
- func (m *MutableSource) AppendConfigHistory(author string, emptyLayer bool)
- func (m *MutableSource) AppendLayer(content []byte, author string) error
- func (m *MutableSource) Config() *manifest.Schema2Config
- func (m *MutableSource) Env() map[string]string
- func (m *MutableSource) GetBlob(bi types.BlobInfo) (io.ReadCloser, int64, error)
- func (m *MutableSource) GetManifest(_ *digest.Digest) ([]byte, string, error)
- func (m *MutableSource) SetConfig(config *manifest.Schema2Config, author string, emptyLayer bool)
- func (m *MutableSource) SetEnv(envMap map[string]string, author string)
- type ProxyReference
- type ProxySource
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 ¶
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)
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