Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + func New(opt Opt) (exporter.Exporter, error) + func NewDescriptorReference(desc ocispecs.Descriptor, release func(context.Context) error) exporter.DescriptorReference + func RemoveInternalLayerAnnotations(in map[string]string, oci bool) map[string]string + type Annotations struct + Index map[string]string + IndexDescriptor map[string]string + Manifest map[string]string + ManifestDescriptor map[string]string + type AnnotationsGroup map[string]*Annotations + func ParseAnnotations(data map[string][]byte) (AnnotationsGroup, map[string][]byte, error) + func (ag AnnotationsGroup) Merge(other AnnotationsGroup) AnnotationsGroup + func (ag AnnotationsGroup) Platform(p *ocispecs.Platform) *Annotations + type ImageCommitOpts struct + Annotations AnnotationsGroup + Epoch *time.Time + ForceInlineAttestations bool + ImageName string + OCITypes bool + RefCfg cacheconfig.RefConfig + RewriteTimestamp bool + func (c *ImageCommitOpts) EnableForceCompression(ctx context.Context, reason string) + func (c *ImageCommitOpts) EnableOCITypes(ctx context.Context, reason string) + func (c *ImageCommitOpts) Load(ctx context.Context, opt map[string]string) (map[string]string, error) + type ImageWriter struct + func NewImageWriter(opt WriterOpt) (*ImageWriter, error) + func (ic *ImageWriter) Applier() diff.Applier + func (ic *ImageWriter) Commit(ctx context.Context, inp *exporter.Source, sessionID string, ...) (*ocispecs.Descriptor, error) + func (ic *ImageWriter) ContentStore() content.Store + func (ic *ImageWriter) Snapshotter() snapshot.Snapshotter + type Opt struct + ImageWriter *ImageWriter + Images images.Store + LeaseManager leases.Manager + RegistryHosts docker.RegistryHosts + SessionManager *session.Manager + type WriterOpt struct + Applier diff.Applier + ContentStore content.Store + Differ diff.Comparer + Snapshotter snapshot.Snapshotter