Documentation ¶
Index ¶
- Variables
- type Context
- func (ctx *Context) CanTemplate() bool
- func (ctx *Context) Debugf(format string, args ...interface{})
- func (ctx Context) GetAuthValues(auth connection.Authentication) (connection.Authentication, error)
- func (ctx *Context) GetConnection(conn v1.Connection) (*models.Connection, error)
- func (ctx *Context) GetContextualFunctions() map[string]func() any
- func (ctx *Context) HydrateConnectionByURL(connectionName string) (*models.Connection, error)
- func (ctx *Context) IsDebug() bool
- func (ctx *Context) IsTrace() bool
- func (ctx *Context) New(name string, environment map[string]interface{}) *Context
- func (ctx *Context) String() string
- func (ctx *Context) Template(check external.Check, template string) (string, error)
- func (ctx Context) TemplateStruct(o interface{}) error
- func (ctx *Context) Tracef(format string, args ...interface{})
- func (ctx *Context) WithCheck(check external.Check) *Context
- func (ctx *Context) WithCheckResult(result *pkg.CheckResult) *Context
- func (ctx *Context) WithEnvValues(environment map[string]interface{}) *Context
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 (*Context) CanTemplate ¶ added in v1.0.88
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 (*Context) HydrateConnectionByURL ¶ added in v0.38.276
func (ctx *Context) HydrateConnectionByURL(connectionName string) (*models.Connection, error)
func (Context) TemplateStruct ¶ added in v1.0.88
func (*Context) WithCheckResult ¶ added in v1.0.82
func (ctx *Context) WithCheckResult(result *pkg.CheckResult) *Context
func (*Context) WithEnvValues ¶ added in v1.0.107
Click to show internal directories.
Click to hide internal directories.