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 PluginRuntimeHandler ¶
type PluginRuntimeHandler 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
}
PluginRuntimeHandler ensures lifecycle and execution consistency across plugin runtime implementations.
Click to show internal directories.
Click to hide internal directories.