runner

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LivenessCheckService  = "liveness"
	ReadinessCheckService = "readiness"
)

Variables

This section is empty.

Functions

func NewEndpointPoolFromOptions

func NewEndpointPoolFromOptions(
	namespace string,
	name string,
	endpointSelector string,
	endpointTargetPorts []int,
) (*datalayer.EndpointPool, error)

NewEndpointPoolFromOptions constructs an EndpointPool from standalone options. This is shared between the production runner and standalone integration tests.

Types

type RunnableGroup

type RunnableGroup interface {
	Add(name string, fn func(ctx context.Context) error)
	Run(ctx context.Context) error
}

RunnableGroup collects named goroutines and starts them together under a shared context. The first non-nil error cancels the group; Run returns that error wrapped with the runnable name.

type Runner

type Runner struct {
	PluginHandle fwkplugin.Handle
	// contains filtered or unexported fields
}

Runner is used to run epp with its plugins

func NewRunner

func NewRunner() *Runner

NewRunner initializes a new EPP Runner and returns its pointer.

func NewTestRunnerSetup

func NewTestRunnerSetup(ctx context.Context, cfg *rest.Config, opts *runserver.Options, mockDataSource fwkdl.DataSource) (*Runner, ctrl.Manager, datastore.Datastore, error)

NewTestRunnerSetup creates a setup runner dedicated for integration tests. When mockDataSource is non-nil, its plugin type is registered as a factory that returns the provided instance, so the YAML config can reference it by type name and the runner wires it into the endpoint factory automatically.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

func (*Runner) WithCustomCollectors

func (r *Runner) WithCustomCollectors(collectors ...prometheus.Collector) *Runner

func (*Runner) WithExecutableName

func (r *Runner) WithExecutableName(exeName string) *Runner

WithExecutableName sets the name of the executable containing the runner. The name is used in the version log upon startup and is otherwise opaque.

func (*Runner) WithRequestControlConfig

func (r *Runner) WithRequestControlConfig(requestControlConfig *requestcontrol.Config) *Runner

func (*Runner) WithSchedulerConfig

func (r *Runner) WithSchedulerConfig(schedulerConfig *scheduling.SchedulerConfig) *Runner

Jump to

Keyboard shortcuts

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