types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AppVersion = "unknown"

	DefaultMaxStackDepth = 32
)

Variables

View Source
var (
	ErrConfigConflictActionID = newError("conflict action ID")
	ErrConfigConflictProbeID  = newError("conflict probe ID")
	ErrConfigNoPolicyPath     = newError("no policy path")

	ErrActionInvalidArgument = newError("invalid action argument")

	ErrNoSuchActionName = newError("no such action name")
	ErrNoSuchActionID   = newError("no such action ID")

	ErrInvalidScenario = newError("invalid play scenario")

	ErrInvalidHTTPRequest = newError("invalid HTTP request")

	ErrPolicyClientFailed = newError("policy client failed")
	ErrNoPolicyData       = newError("no policy data")
	ErrNoPolicyResult     = newError("no policy result")

	// runtime errors
	ErrMaxStackDepth  = newError("max stack depth")
	ErrActionNotFound = newError("action not found")
)

Functions

This section is empty.

Types

type ActionID

type ActionID string

func NewActionID

func NewActionID() ActionID

type ActionName

type ActionName string

type ActionSecret

type ActionSecret any

type AlertID

type AlertID string

func NewAlertID

func NewAlertID() AlertID

type EnvVarName

type EnvVarName string

type EnvVarValue

type EnvVarValue string

type EnvVars

type EnvVars map[EnvVarName]EnvVarValue

EnvVars is a set of environment variables

type Error

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

func (*Error) Error

func (x *Error) Error() string

func (*Error) Is

func (x *Error) Is(err error) bool

type ParamID

type ParamID string

func NewParamID

func NewParamID() ParamID

type ParamName

type ParamName string

type ParamValue

type ParamValue any

type ParameterType

type ParameterType string
const (
	IPAddr     ParameterType = "ipaddr"
	DomainName ParameterType = "domain"
	FileSha256 ParameterType = "file.sha256"
	FileSha512 ParameterType = "file.sha512"
	MarkDown   ParameterType = "markdown"
)

type ScenarioID

type ScenarioID string

type ScenarioTitle

type ScenarioTitle string

type Schema

type Schema string

Jump to

Keyboard shortcuts

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