context

package
v1.0.259 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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{}

	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 connection.Authentication) (connection.Authentication, error)

func (*Context) GetConnection added in v0.38.343

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

func (*Context) GetContextualFunctions added in v1.0.88

func (ctx *Context) GetContextualFunctions() 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) 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

Jump to

Keyboard shortcuts

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