Documentation
¶
Index ¶
Constants ¶
View Source
const ( ArtifactTypeOverlaybd = "application/vnd.containerd.overlaybd.native.v1+json" ArtifactTypeTurboOCI = "application/vnd.containerd.overlaybd.turbo.v1+json" )
Variables ¶
This section is empty.
Functions ¶
func NewOverlayBDBuilderEngine ¶
func NewOverlayBDBuilderEngine(base *builderEngineBase) builderEngine
func NewTurboOCIBuilderEngine ¶ added in v1.0.0
func NewTurboOCIBuilderEngine(base *builderEngineBase) builderEngine
Types ¶
type BuilderEngineType ¶
type BuilderEngineType int
const ( Overlaybd BuilderEngineType = iota TurboOCI )
func (BuilderEngineType) ArtifactType ¶ added in v1.2.0
func (engine BuilderEngineType) ArtifactType() string
type BuilderOptions ¶
type BuilderOptions struct {
Ref string
TargetRef string
Auth string
PlainHTTP bool
WorkDir string
OCI bool
FsType string
Mkfs bool
Vsize int
DB database.ConversionDatabase
Engine BuilderEngineType
CertOption
Reserve bool
NoUpload bool
DumpManifest bool
// ConcurrencyLimit limits the number of manifests that can be built at once
// 0 means no limit
ConcurrencyLimit int
// disable sparse file when converting overlaybd
DisableSparse bool
// Push manifests with subject
Referrer bool
}
type CertOption ¶ added in v1.0.1
-------------------- certification --------------------
type Deduplicateable ¶ added in v1.0.3
type Deduplicateable interface {
// deduplication functions
// finds already converted layer in db and validates presence in registry
CheckForConvertedLayer(ctx context.Context, idx int) (specs.Descriptor, error)
// downloads the already converted layer
DownloadConvertedLayer(ctx context.Context, idx int, desc specs.Descriptor) error
// store chainID -> converted layer mapping for layer deduplication
StoreConvertedLayerDetails(ctx context.Context, idx int) error
// store manifest digest -> converted manifest to avoid re-conversion
CheckForConvertedManifest(ctx context.Context) (specs.Descriptor, error)
// tag a converted manifest -> converted manifest to avoid re-conversion
TagPreviouslyConvertedManifest(ctx context.Context, desc specs.Descriptor) error
// store manifest digest -> converted manifest to avoid re-conversion
StoreConvertedManifestDetails(ctx context.Context) error
}
Deduplicateable provides a number of functions to avoid duplicating work when converting images It is used by the builderEngine to avoid re-converting layers and manifests
Click to show internal directories.
Click to hide internal directories.