Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutor ¶
func NewExecutor(containerExecutor ContainerExecutor, conf *ExecutorConfig) (*executor, error)
NewExecutor returns a new executor.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct {
Name string
Image string
Executable string
Cmd []string
EnvVars []string
VolumeBindings []string
Platform *ocispec.Platform
}
ContainerConfig stripped down configuration that we need to run simple containers.
type ContainerExecutor ¶
type ContainerExecutor interface {
RunAndWait(ctx context.Context, conf ContainerConfig) error
}
ContainerExecutor can be implemented to execute containers with different backends.
type ExecutorConfig ¶
type ExecutorConfig struct {
CleanUpFindingsDB bool
InstanceIDGenerator InstanceIDGenerator
TmpFolderProvisioner
}
ExecutorConfig allows to customise the executor behaviour.
type InstanceIDGenerator ¶
Click to show internal directories.
Click to hide internal directories.