Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIsolatedCommand ¶
NewIsolatedCommand runs a Command in isolation using BubbleWrap.
Types ¶
type MountPoint ¶
MountPoint defines how a directory should be mounted.
type WithTimeout ¶
type WithTimeout struct {
// contains filtered or unexported fields
}
WithTimeout is a helper Command that wraps a Command and adds an execution timeout.
func NewWithTimeout ¶
func NewWithTimeout(command Command, timeout time.Duration) WithTimeout
NewWithTimeout creates a new WithTimeout.
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
WorkerPool is a pool of worker for executing commands limiting the maximum number of concurrent commands.
func NewWorkerPool ¶
func NewWorkerPool(maxSlots int, maxWaitQueueDepth int) *WorkerPool
NewWorkerPool creates a new WorkerPool. When workers are not available, the Spawn method wait until one is available: - maxSlots controls the maximum number of concurrent workers. - maxWaitQueueDepth controls how many commands can wait for a worker to be available.
Click to show internal directories.
Click to hide internal directories.