Documentation ¶
Index ¶
Constants ¶
View Source
const ( RemoteScanInputDirOverride = "/input" // path in container where the input dir will be mounted RemoteScanResultFileOverride = "/tmp/result.json" // path in container where the output result file should be saved by scanner )
Variables ¶
This section is empty.
Functions ¶
func WithOverrides ¶
func WithOverrides(c plugintypes.Config) plugintypes.Config
WithOverrides should be used in runner.Start to use valid paths in plugin container due to differences in fs mappings.
Types ¶
type PluginContainerManager ¶
type PluginContainerManager interface { Start(ctx context.Context) error Ready() (bool, error) GetPluginServerEndpoint(ctx context.Context) (string, error) Logs(ctx context.Context) (io.ReadCloser, error) Result(ctx context.Context) (io.ReadCloser, error) Remove(ctx context.Context) error }
PluginContainerManager provides low-level container operations that hosts plugin server. Use to ensure lifecycle and execution consistency.
Click to show internal directories.
Click to hide internal directories.