plugincontainer

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRunner

type DefaultRunner struct {
	ProcessRunner ProcessRunner
	DockerPath    string
}

func (DefaultRunner) Run

func (r DefaultRunner) Run(ctx context.Context, request Request) (pluginexec.Result, error)

type ProcessRequest

type ProcessRequest struct {
	Path    string
	Args    []string
	Dir     string
	Env     []string
	Timeout time.Duration
	Stdin   io.Reader
	Stdout  io.Writer
	Stderr  io.Writer
}

type ProcessRunner

type ProcessRunner interface {
	Run(ctx context.Context, request ProcessRequest) error
}

type Request

type Request struct {
	SourceDir         string
	RepositoryDir     string
	SourceRelPath     string
	PluginName        string
	PolicyFingerprint string
	Config            pluginpolicy.ContainerConfig
	Offline           bool
	ForbiddenRoots    []string
	CacheRoot         string
	EnvLookup         func(string) (string, bool)
	ExtraEnv          []string
	SensitiveValues   []string
}

type Runner

type Runner interface {
	Run(ctx context.Context, request Request) (pluginexec.Result, error)
}

Jump to

Keyboard shortcuts

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