Help us shape the future of Go! Take the 2026 Go Developer Survey

context

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CelFuncs []cel.EnvOption
View Source
var DefaultContext dutyCtx.Context

Functions

This section is empty.

Types

type Context

type Context struct {
	Namespace   string
	Canary      v1.Canary
	Environment map[string]interface{}

	Outputs      map[string]*pkg.CheckResult
	HARCollector *har.Collector
	dutyCtx.Context
	// contains filtered or unexported fields
}

func New

func New(ctx dutyCtx.Context, canary v1.Canary) *Context

func (*Context) CanTemplate added in v1.0.88

func (ctx *Context) CanTemplate() bool

func (*Context) Debugf added in v0.38.277

func (ctx *Context) Debugf(format string, args ...interface{})

func (Context) GetAuthValues added in v0.38.343

func (ctx Context) GetAuthValues(auth types.Authentication) (types.Authentication, error)

func (*Context) GetConnection added in v0.38.343

func (ctx *Context) GetConnection(conn v1.Connection) (*models.Connection, error)

func (*Context) GetConnectionTemplate added in v1.0.260

func (ctx *Context) GetConnectionTemplate(conn v1.Connection) (*models.Connection, map[string]any, error)

func (*Context) GetContextualFunctions added in v1.0.88

func (ctx *Context) GetContextualFunctions() map[string]any

func (*Context) GetOutputs added in v1.2.0

func (ctx *Context) GetOutputs() map[string]any

func (*Context) HydrateConnectionByURL added in v0.38.276

func (ctx *Context) HydrateConnectionByURL(connectionName string) (*models.Connection, error)

func (*Context) IsDebug added in v0.38.11

func (ctx *Context) IsDebug() bool

func (*Context) IsTrace added in v0.38.11

func (ctx *Context) IsTrace() bool

func (*Context) New

func (ctx *Context) New(name string, environment map[string]interface{}) *Context

func (*Context) SetOutput added in v1.2.0

func (ctx *Context) SetOutput(name string, result *pkg.CheckResult)

func (*Context) String added in v0.38.17

func (ctx *Context) String() string

func (*Context) Template added in v1.0.82

func (ctx *Context) Template(check external.Check, template string) (string, error)

func (Context) TemplateStruct added in v1.0.88

func (ctx Context) TemplateStruct(o interface{}) error

func (*Context) Tracef added in v0.38.277

func (ctx *Context) Tracef(format string, args ...interface{})

func (*Context) WithCheck added in v1.0.82

func (ctx *Context) WithCheck(check external.Check) *Context

func (*Context) WithCheckResult added in v1.0.82

func (ctx *Context) WithCheckResult(result *pkg.CheckResult) *Context

func (*Context) WithDutyContext added in v1.0.251

func (ctx *Context) WithDutyContext(c dutyCtx.Context) *Context

func (*Context) WithEnvValues added in v1.0.107

func (ctx *Context) WithEnvValues(environment map[string]interface{}) *Context

func (*Context) WithKubernetesConnection added in v1.1.1

func (ctx *Context) WithKubernetesConnection(conn connection.KubernetesConnection) Context

Jump to

Keyboard shortcuts

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