types

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AppVersion = "v0.0.12"

	DefaultMaxSequences = 32

	DefaultAttributeTTL int = 3600 * 24 // 1 day
)

Variables

View Source
var (
	ErrInvalidOption = AsConfigErr(goerr.New("invalid option"))
	ErrNoPolicyData  = AsConfigErr(goerr.New("no policy data"))

	ErrActionInvalidArgument = AsPolicyErr(goerr.New("invalid action argument"))
	ErrActionNotFound        = AsPolicyErr(goerr.New("action not found"))
	ErrActionFailed          = AsPolicyErr(goerr.New("action failed"))

	ErrInvalidScenario = goerr.New("invalid play scenario")

	ErrInvalidHTTPRequest   = AsBadRequestErr(goerr.New("invalid HTTP request"))
	ErrInvalidLambdaRequest = AsBadRequestErr(goerr.New("invalid Lambda request"))

	ErrNoPolicyResult = goerr.New("no policy result")
)

Functions

func AsActionErr added in v0.0.16

func AsActionErr(err *goerr.Error) *goerr.Error

func AsBadRequestErr added in v0.0.16

func AsBadRequestErr(err *goerr.Error) *goerr.Error

func AsConfigErr added in v0.0.16

func AsConfigErr(err *goerr.Error) *goerr.Error

func AsPolicyErr added in v0.0.16

func AsPolicyErr(err *goerr.Error) *goerr.Error

func AsRuntimeErr added in v0.0.16

func AsRuntimeErr(err *goerr.Error) *goerr.Error

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 ErrorType added in v0.0.16

type ErrorType int
const (
	ErrTypeUnknown ErrorType = iota
	ErrTypeConfig
	ErrTypePolicy
	ErrTypeAction
	ErrTypeRuntime
	ErrTypeBadRequest
)

func GetErrorType added in v0.0.16

func GetErrorType(err error) ErrorType

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