types

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppVersion = "v0.2.1"

	DefaultMaxSequences = 32

	DefaultAttributeTTL int = 3600 * 24 // 1 day
)

Variables

View Source
var (
	ErrNoPolicyResult        = goerr.New("no policy result")
	ErrActionInvalidArgument = goerr.New("invalid action argument", goerr.T(ErrTagAction))
)
View Source
var (
	// ErrTagConfig is a tag for configuration and startup option error.
	ErrTagConfig = goerr.NewTag("config")

	// ErrTagPolicy is a tag for policy error. It is used for failure of policy evaluation or invalid policy result.
	ErrTagPolicy = goerr.NewTag("policy")

	// ErrTagAction is a tag for action error. It is used for failure of action execution or invalid action argument.
	ErrTagAction = goerr.NewTag("action")

	// ErrTagBadRequest is a tag for bad request to AlertChain server or runtime.
	ErrTagBadRequest = goerr.NewTag("bad_request")

	// ErrTagSystem is a tag for unexpected system behavior. E.g. I/O error, system call failure, database error, error from integrated system, connection error, etc.
	ErrTagSystem = goerr.NewTag("system")
)

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

func (x AlertID) String() string

type AttrID

type AttrID string

func NewAttrID

func NewAttrID() AttrID

func (AttrID) String

func (x AttrID) String() string

type AttrKey

type AttrKey string

func (AttrKey) String

func (x AttrKey) String() string

type AttrTTL

type AttrTTL int64

type AttrType

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

type AttrValue

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 Namespace

type Namespace string

type RawData

type RawData any

type RequestID added in v0.2.1

type RequestID string

func NewRequestID added in v0.2.1

func NewRequestID() RequestID

func (RequestID) String added in v0.2.1

func (x RequestID) String() string

type ScenarioID

type ScenarioID string

type ScenarioTitle

type ScenarioTitle string

type Schema

type Schema string

type WorkflowID

type WorkflowID string

func NewWorkflowID

func NewWorkflowID() WorkflowID

func (WorkflowID) String

func (x WorkflowID) String() string

Jump to

Keyboard shortcuts

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