Documentation ¶
Index ¶
- Variables
- func DeleteCheckResultsByResourceId(resourceId string) error
- func DeleteCheckResultsByResourceIdAndResultsList(resourceId string, resultsToDelete []config.CompliantCheckResult)
- func GetCheckResultsByActionAndPolicyName(action string, policyName string) (*[]config.CompliantCheckResult, error)
- func GetCheckResultsByResourceId(resourceId string) (*[]config.CompliantCheckResult, error)
- func GetState(groupId string) (ec2.SecurityGroup, error)
- func NewStateDataFromByte(byteData []byte, s *ec2.SecurityGroup) (*ec2.SecurityGroup, error)
- func StoreCheckResults(resourceId string, results []config.CompliantCheckResult) error
- func StoreState(state ec2.SecurityGroup) error
- type FileFetcher
- type MockBody
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 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 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 ¶
Click to show internal directories.
Click to hide internal directories.