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) AppendLayer ¶
func (m *MutableSource) AppendLayer(content []byte) error
appendLayer appends an uncompressed blob to the image, preserving the invariants required across the config and manifest.
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.
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
Click to show internal directories.
Click to hide internal directories.