containermanager

package
v0.0.0-...-d09e14d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL