runner

package
v3.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSample

func RunSample(ctx context.Context, sample *config.SampleConfig) (context.Context, []*metrics.Metric, []*report.Report, error)

RunSample runs a sample.

func RunWithVariables

func RunWithVariables(ctx context.Context, variables map[string]string, sample *config.SampleConfig) (context.Context, []*metrics.Metric, *report.Report, error)

RunWithVariables runs the step with variables.

Types

type StepParamTemplate

type StepParamTemplate struct {
	Env       map[string]string
	Date      time.Time
	Context   context.Context
	Variables map[string]string
}

StepParamTemplate represents a step parameter template.

func (*StepParamTemplate) GetContext

func (s *StepParamTemplate) GetContext(key string) string

GetContext return context value by key

func (*StepParamTemplate) Replace

func (s *StepParamTemplate) Replace(m map[string]string) (map[string]string, error)

Replace replaces the template.

Jump to

Keyboard shortcuts

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