action

package
v0.0.0-...-c5563bb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cfg *config.Config
	Log = newLogger()
)

Functions

func HandleAction

func HandleAction(result config.CompliantCheckResult, isEventDrivenCheck bool) error

func SetActionTrigger

func SetActionTrigger(cp config.CompliancePolicy)
 		ACTION_TRIGGER IMPLEMENTATION: overview
	*******************************************************************************
	- Create a new ticker T based for each action_trigger AT definition provided in the configuration file.
	- Configure T using the cron-like definition provided in the configuration file
   	- Every time the ticker T of AT fires, a function reads all the stored states files,
		- looking for non-compliant checks NCC that are associated with the same actions triggered by AT
		- append such NCC objects to a slice S_NCC
		- once scanned through all the non-compliant checks, then it runs all the NCC into S_NCC

Types

This section is empty.

Jump to

Keyboard shortcuts

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