Documentation ¶
Index ¶
- 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
- type AnnotationsGroup
- type ImageCommitOpts
- type ImageWriter
- type Opt
- type WriterOpt
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 NewDescriptorReference ¶ added in v0.11.0
func NewDescriptorReference(desc ocispecs.Descriptor, release func(context.Context) error) exporter.DescriptorReference
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 Annotations AnnotationsGroup Epoch *time.Time ForceInlineAttestations bool // force inline attestations to be attached RewriteTimestamp bool // rewrite timestamps in layers to match the epoch }
func (*ImageCommitOpts) EnableForceCompression ¶ added in v0.11.0
func (c *ImageCommitOpts) EnableForceCompression(ctx context.Context, reason string)
func (*ImageCommitOpts) EnableOCITypes ¶ added in v0.11.0
func (c *ImageCommitOpts) EnableOCITypes(ctx context.Context, 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, inlineCache exptypes.InlineCache, 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.