filesystem

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: 16 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

func DeleteCheckResultsByResourceIdAndResultsList

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

func GetCheckResultsByActionAndPolicyName

func GetCheckResultsByActionAndPolicyName(action string, policyName string) (*[]config.CompliantCheckResult, error)
 	GetCheckResultsByActionAndPolicyName returns the list of CompliantCheckResult objects that fire at least one of
	the (passed) actions triggered by the current trigger considered, by searching into the folder where result states
	are stored

func GetCheckResultsByResourceId

func GetCheckResultsByResourceId(resourceId string) (*[]config.CompliantCheckResult, error)

func GetState

func GetState(groupId string) (ec2.SecurityGroup, error)

func NewStateDataFromByte

func NewStateDataFromByte(byteData []byte, s *ec2.SecurityGroup) (*ec2.SecurityGroup, error)

func StoreCheckResults

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

func StoreState

func StoreState(state ec2.SecurityGroup) error

Types

type FileFetcher

type FileFetcher interface {
	GetObject(*s3.GetObjectInput) (*s3.GetObjectOutput, error)
	PutObject(*s3.PutObjectInput) (*s3.PutObjectOutput, error)
}

func NewFileFetcher

func NewFileFetcher() FileFetcher

func NewS3FileFetcher

func NewS3FileFetcher() FileFetcher

type MockBody

type MockBody struct {
	// contains filtered or unexported fields
}

func NewMockBody

func NewMockBody(jsonBody []byte) *MockBody

func (MockBody) Close

func (m MockBody) Close() error

func (MockBody) Read

func (m MockBody) Read(p []byte) (n int, err error)

func (MockBody) Write

func (m MockBody) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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