types

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppVersion = "v0.0.12"

	DefaultMaxSequences = 32

	DefaultAttributeTTL int = 3600 * 24 // 1 day
)

Variables

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

	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")
	ErrInvalidLambdaRequest = newError("invalid Lambda 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")
	ErrActionFailed   = newError("action failed")
)

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

func (AlertID) String added in v0.0.15

func (x AlertID) String() string

type AttrID added in v0.0.4

type AttrID string

func NewAttrID added in v0.0.4

func NewAttrID() AttrID

func (AttrID) String added in v0.0.15

func (x AttrID) String() string

type AttrKey added in v0.0.5

type AttrKey string

func (AttrKey) String added in v0.0.15

func (x AttrKey) String() string

type AttrTTL added in v0.0.7

type AttrTTL int64

type AttrType added in v0.0.7

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

type AttrValue added in v0.0.4

type AttrValue any

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 Namespace added in v0.0.7

type Namespace string

type RawData added in v0.0.15

type RawData any

type ScenarioID

type ScenarioID string

type ScenarioTitle

type ScenarioTitle string

type Schema

type Schema string

type WorkflowID added in v0.0.15

type WorkflowID string

func NewWorkflowID added in v0.0.15

func NewWorkflowID() WorkflowID

func (WorkflowID) String added in v0.0.15

func (x WorkflowID) String() string

Jump to

Keyboard shortcuts

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