Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LayerBuilds ¶
type LayerBuilds struct {
// Workers is how many of one export's layers build at once; 0 or 1
// builds them one at a time, in chain order.
Workers int
// Gate, when set, bounds the builds of every export that shares it, one
// unit per build. It is held only while a blob is built, not while a
// layer's blob is reused or its export lock is awaited.
Gate *semaphore.Weighted
}
LayerBuilds bounds building an export's missing layer blobs: diffing each layer against its parent, compressing and writing the diff.
type RefConfig ¶
type RefConfig struct {
Compression compression.Config
PreferNonDistributable bool
// Builds bounds how an export builds the blobs its layers lack. The zero
// value builds them one at a time.
Builds LayerBuilds
}
Click to show internal directories.
Click to hide internal directories.