Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct { Platform platforms.Matcher SnapshotterKey string Snapshotter snapshots.Snapshotter SnapshotOpts []snapshots.Opt Applier diff.Applier ApplyOpts []diff.ApplyOpt }
Platform represents a platform-specific unpack configuration which includes the platform matcher as well as snapshotter and applier.
type Result ¶
type Result struct {
Unpacks int
}
Result returns information about the unpacks which were completed.
type Unpacker ¶
type Unpacker struct {
// contains filtered or unexported fields
}
Unpacker unpacks images by hooking into the image handler process. Unpacks happen in the backgrounds and waited on to complete.
func NewUnpacker ¶
NewUnpacker creates a new instance of the unpacker which can be used to wrap an image handler and unpack in parallel to handling. The unpacker will handle calling the block handlers when they are needed by the unpack process.
type UnpackerOpt ¶
type UnpackerOpt func(*unpackerConfig) error
func WithDuplicationSuppressor ¶
func WithDuplicationSuppressor(d kmutex.KeyedLocker) UnpackerOpt
func WithLimiter ¶
func WithLimiter(l *semaphore.Weighted) UnpackerOpt
func WithUnpackPlatform ¶
func WithUnpackPlatform(u Platform) UnpackerOpt
Click to show internal directories.
Click to hide internal directories.