 Documentation
      ¶
      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 ¶
func NewDescriptorReference(desc ocispecs.Descriptor, release func(context.Context) error) exporter.DescriptorReference
Types ¶
type Annotations ¶
type AnnotationsGroup ¶
type AnnotationsGroup map[string]*Annotations
AnnotationsGroup is a map of annotations keyed by the reference key
func ParseAnnotations ¶
func (AnnotationsGroup) Merge ¶
func (ag AnnotationsGroup) Merge(other AnnotationsGroup) AnnotationsGroup
func (AnnotationsGroup) Platform ¶
func (ag AnnotationsGroup) Platform(p *ocispecs.Platform) *Annotations
type ImageCommitOpts ¶
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 ¶
func (c *ImageCommitOpts) EnableForceCompression(ctx context.Context, reason string)
func (*ImageCommitOpts) EnableOCITypes ¶
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 ¶
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 ¶
func (ic *ImageWriter) Snapshotter() snapshot.Snapshotter
 Click to show internal directories. 
   Click to hide internal directories.