Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyedLocker ¶ added in v2.2.0
KeyedLocker is an interface for managing job duplication by locking on a given key.
type Limiter ¶ added in v2.2.0
Limiter interface is used to restrict the number of concurrent operations by requiring operations to first acquire from the limiter and release when complete.
type Platform ¶
type Platform struct {
Platform platforms.Matcher
SnapshotterKey string
Snapshotter snapshots.Snapshotter
SnapshotOpts []snapshots.Opt
SnapshotterExports map[string]string
SnapshotterCapabilities []string
Applier diff.Applier
ApplyOpts []diff.ApplyOpt
// ConfigType is the supported config type to be considered for unpacking
// Defaults to OCI image config
ConfigType string
// LayerTypes are the supported types to be considered layers
// Defaults to OCI image layers
LayerTypes []string
}
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 KeyedLocker) UnpackerOpt
func WithLimiter ¶
func WithLimiter(l Limiter) UnpackerOpt
func WithUnpackLimiter ¶ added in v2.2.0
func WithUnpackLimiter(l Limiter) UnpackerOpt
func WithUnpackPlatform ¶
func WithUnpackPlatform(u Platform) UnpackerOpt