package containerimage
import "github.com/moby/buildkit/exporter/containerimage"
Index ¶
- func New(opt Opt) (exporter.Exporter, error)
- type ImageWriter
- func NewImageWriter(opt WriterOpt) (*ImageWriter, error)
- func (ic *ImageWriter) Applier() diff.Applier
- func (ic *ImageWriter) Commit(ctx context.Context, inp exporter.Source, oci bool, compression blobs.CompressionType) (*ocispec.Descriptor, error)
- func (ic *ImageWriter) ContentStore() content.Store
- func (ic *ImageWriter) Snapshotter() snapshot.Snapshotter
- type Opt
- type WriterOpt
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.
Types ¶
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, oci bool, compression blobs.CompressionType) (*ocispec.Descriptor, error)
func (*ImageWriter) ContentStore ¶
func (ic *ImageWriter) ContentStore() content.Store
func (*ImageWriter) Snapshotter ¶
func (ic *ImageWriter) Snapshotter() snapshot.Snapshotter
type Opt ¶
type Opt struct { SessionManager *session.Manager ImageWriter *ImageWriter Images images.Store RegistryHosts docker.RegistryHosts LeaseManager leases.Manager }
type WriterOpt ¶
type WriterOpt struct { Snapshotter snapshot.Snapshotter ContentStore content.Store Applier diff.Applier Differ diff.Comparer }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
exporter/containerimage/exptypes |
- Version
- v0.7.2
- Published
- Jul 27, 2020
- Platform
- js/wasm
- Imports
- 32 packages
- Last checked
- 10 seconds ago –
Tools for package owners.