Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new containerimage exporter instance that supports exporting to an image store and pushing the image to registry. This exporter supports following values in returned kv map: - containerimage.digest - The digest of the root manifest for the image.
func RemoveInternalLayerAnnotations ¶ added in v0.11.0
func RemoveInternalLayerAnnotations(desc *ocispecs.Descriptor, oci bool)
Types ¶
type Annotations ¶ added in v0.11.0
type AnnotationsGroup ¶ added in v0.11.0
type AnnotationsGroup map[string]*Annotations
AnnotationsGroup is a map of annotations keyed by the reference key
func ParseAnnotations ¶ added in v0.11.0
func (AnnotationsGroup) Merge ¶ added in v0.11.0
func (ag AnnotationsGroup) Merge(other AnnotationsGroup) AnnotationsGroup
func (AnnotationsGroup) Platform ¶ added in v0.11.0
func (ag AnnotationsGroup) Platform(p *ocispecs.Platform) *Annotations
type ImageCommitOpts ¶ added in v0.11.0
type ImageCommitOpts struct { ImageName string RefCfg cacheconfig.RefConfig OCITypes bool BuildInfo bool BuildInfoAttrs bool Annotations AnnotationsGroup Epoch *time.Time }
func (*ImageCommitOpts) EnableForceCompression ¶ added in v0.11.0
func (c *ImageCommitOpts) EnableForceCompression(reason string)
func (*ImageCommitOpts) EnableOCITypes ¶ added in v0.11.0
func (c *ImageCommitOpts) EnableOCITypes(reason string)
type ImageWriter ¶
type ImageWriter struct {
// contains filtered or unexported fields
}
func NewImageWriter ¶
func NewImageWriter(opt WriterOpt) (*ImageWriter, error)
func (*ImageWriter) Applier ¶ added in v0.5.0
func (ic *ImageWriter) Applier() diff.Applier
func (*ImageWriter) Commit ¶
func (ic *ImageWriter) Commit(ctx context.Context, inp *exporter.Source, sessionID string, opts *ImageCommitOpts) (*ocispecs.Descriptor, error)
func (*ImageWriter) ContentStore ¶
func (ic *ImageWriter) ContentStore() content.Store
func (*ImageWriter) Snapshotter ¶ added in v0.5.0
func (ic *ImageWriter) Snapshotter() snapshot.Snapshotter
Source Files ¶
Click to show internal directories.
Click to hide internal directories.