Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleGenerator ¶ added in v0.3.1
type BundleGenerator struct {
// contains filtered or unexported fields
}
BundleGenerator generates tar bundles containing imgcd binary and image data
func NewBundleGenerator ¶ added in v0.3.1
func NewBundleGenerator(version string) *BundleGenerator
NewBundleGenerator creates a new bundle generator
func (*BundleGenerator) GenerateBundle ¶ added in v0.3.1
func (bg *BundleGenerator) GenerateBundle(imageTarGzPath, outputPath, targetPlatform, imageName string) error
GenerateBundle creates a tar bundle containing imgcd binary and image data
type BundleLoader ¶ added in v0.6.2
type BundleLoader struct {
// contains filtered or unexported fields
}
BundleLoader handles loading bundles and reconstructing Docker images
func NewBundleLoader ¶ added in v0.6.2
func NewBundleLoader(rt runtime.Runtime) *BundleLoader
NewBundleLoader creates a new bundle loader
func (*BundleLoader) LoadBundle ¶ added in v0.6.2
func (bl *BundleLoader) LoadBundle(ctx context.Context, bundlePath string) error
LoadBundle loads a bundle and imports it into the container runtime Supports both v1.0 (imgcd-meta.json + image.tar) and v2 (metadata.json + blobs) formats
type ExportOptions ¶ added in v0.3.1
type ExportOptions struct {
TargetPlatform string
ForceLocal bool // Force using local runtime instead of remote mode
UseCache bool // Enable layer caching (default: true)
}
ExportOptions contains options for exporting images
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter exports container images to tar.gz archives or self-extracting bundles
func NewExporter ¶
NewExporter creates a new image exporter
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
Importer imports container images from tar.gz archives
type LayerProcessor ¶ added in v0.6.0
type LayerProcessor struct {
// contains filtered or unexported fields
}
LayerProcessor handles parallel processing of image layers
func NewLayerProcessor ¶ added in v0.6.0
func NewLayerProcessor(layerCache *cache.LayerCache, imageRef string, totalLayers int) *LayerProcessor
NewLayerProcessor creates a new layer processor
func (*LayerProcessor) ProcessLayers ¶ added in v0.6.0
func (lp *LayerProcessor) ProcessLayers(ctx context.Context, layers []v1.Layer) <-chan *PreparedLayer
ProcessLayers processes all layers in parallel and returns a channel for ordered output
type PreparedLayer ¶ added in v0.6.0
type PreparedLayer struct {
Index int
DiffID string
Digest string
Data *bytes.Buffer
Size int64
Err error
}
PreparedLayer represents a layer that has been downloaded and prepared for tar writing
type RemoteExporter ¶ added in v0.5.1
type RemoteExporter struct {
// contains filtered or unexported fields
}
RemoteExporter handles exporting images using blob-based caching This stores compressed blobs directly without decompression, significantly improving performance
func NewRemoteExporter ¶ added in v0.5.1
func NewRemoteExporter(version string, useCache bool) (*RemoteExporter, error)
NewRemoteExporter creates a new remote exporter
func (*RemoteExporter) ExportFromRegistry ¶ added in v0.5.1
func (re *RemoteExporter) ExportFromRegistry(ctx context.Context, newRef, sinceRef, outDir string, opts ExportOptions) (string, error)
ExportFromRegistry exports an image directly from registry using blob caching