storeresults

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log Logger for this package
	Log = newLogger()
	// Cfg Config for this package
	Cfg *config.Config
)

Functions

func DeleteCheckResultsByResourceId

func DeleteCheckResultsByResourceId(resourceId string) error

DeleteCheckResultsByResourceId deletes all the stored compliance check results associated with the passed resource.

func DeleteCheckResultsByResourceIdAndResultsList

func DeleteCheckResultsByResourceIdAndResultsList(resourceId string, resultlist []config.CompliantCheckResult)

DeleteExpiredCheckResults deletes all the stored compliance check results associated with the passed resource if contained in the passed list. Typically used to delete expired results

func GetCheckResultsByActionAndPolicyName

func GetCheckResultsByActionAndPolicyName(actionName, policyName string) (*[]config.CompliantCheckResult, error)
 	GetCheckResultsByActionAndPolicyName returns the list (possibly empty) of stored compliance check results,
	fetching them either from the dynamodb or the file system repos.

func GetResourceCheckResults

func GetResourceCheckResults(resourceId string) *[]config.CompliantCheckResult
 	GetResourceCheckResults, given a security group ID, checks whether there is any CompliantCheckResult object
	stored (in a JSON-encoded file). If so, then it parses the data and return the array of objects that it encodes;
	otherwise, returns nil.

func InitVars

func InitVars(log *logrus.Logger, cfg *config.Config)

func StoreResourceCheckResults

func StoreResourceCheckResults(resourceId string, results []config.CompliantCheckResult) error

StoreResourceCheckResults stores a merged array of current and stored CompliantCheckResults objs associated with a resource into either a local folder, or s3 bucket, or both. The stored objects must be: non duplicated (FILO), non compliant

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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