runner

package
v0.0.0-...-71cd2e8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 25 Imported by: 1

Documentation

Overview

Functions for the last mile of a fiddle, i.e. formatting the draw.cpp and then compiling and executing the code by dispatching a request to a fiddler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateOptions

func ValidateOptions(opts types.Options) error

ValidateOptions validates that the options make sense.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(local bool, sourceDir, k8sNamespace string) (*Runner, error)

func (*Runner) Metrics

func (r *Runner) Metrics()

Metrics captures metrics on the state of all the fiddler pods.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, local bool, req *types.FiddleContext) (*types.Result, error)

Run executes fiddle_run and then parses the JSON output into types.Results.

local - Boolean, true if we are running locally.

func (*Runner) Start

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

Start loads the fiddler IPs and then starts a goroutine to update the IPs in the background.

func (*Runner) Version

func (r *Runner) Version() string

Jump to

Keyboard shortcuts

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