audit

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDetails

type EventDetails struct {
	Source      string
	Destination string
	Reason      EventReason
	Error       error
	Args        []interface{}
}

EventDetails are event details, which EventProvider accepts

func NewEventDetails

func NewEventDetails(event *fsm.Event, reason EventReason) *EventDetails

NewEventDetails is instantiating EventDetails

type EventProvider

type EventProvider interface {
	InsertEvent(event *EventDetails) error
}

EventProvider is an interface for providers to register system events

type EventReason

type EventReason string

EventReason is the reason for the events

const (
	// EventReasonTransition is for events related to transition of rules from one
	// state to another
	EventReasonTransition EventReason = "Transition"
	// EventReasonRuleProcessing is for events related to processing of rules
	EventReasonRuleProcessing EventReason = "RuleProcessing"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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