Documentation ¶
Index ¶
- func Contains(ss []string, s string) bool
- func ContainsKey(sm []map[string]string, key string) string
- func ProcessReport(sess *session.Session, report Report, outputType string, commentsFile string, ...) error
- type Comments
- type ConfigReport
- type HealthReport
- type ImageScanFindings
- type ImageScanReportFlags
- type ImageScanReports
- type InspectorHelper
- type InspectorReports
- type ReflectFlags
- type ReflectReport
- type Report
- type TrustedAdvisorReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsKey ¶
ContainsKey returns value if key present in slice of map[string]string
Types ¶
type Comments ¶
type Comments struct { AccountID string `yaml:"accountid"` TAFindings []map[string]string `yaml:"ta-findings"` ConfigFindings []map[string]string `yaml:"config-findings"` InspectorReportFindings []map[string]string `yaml:"inspector-findings"` HealthReportFindings []map[string]string `yaml:"health-findings"` ImageScanFindings []map[string]string `yaml:"ecr-findings"` ReflectIAMFindings []map[string]string `yaml:"reflect-iam-findings"` }
Comments is a Collection of user comments mapped to yaml structure
type ConfigReport ¶
type ConfigReport struct { Findings []configFinding `json:"findings"` // contains filtered or unexported fields }
ConfigReport is a struct that contains an array of aws config compliance findings
type HealthReport ¶
type HealthReport struct { Findings []healthReportFinding `json:"findings"` Flags healthReportFlags `json:"-"` // hide in json output // contains filtered or unexported fields }
HealthReport is a struct that contains an array of healthReport
type ImageScanFindings ¶
type ImageScanFindings struct { AccountID string `json:"accountId"` ImageDigest string `json:"imageDigest"` ImageTag string `json:"imageTag"` RepositoryName string `json:"repositoryName"` ImageFindingsCount map[string]int64 `json:"imageFindingsCount"` Comments string `json:"comments"` Region string `json:"region"` }
ImageScanFindings struct specify the scan finding reports format
type ImageScanReportFlags ¶
type ImageScanReportFlags struct { Tag string `json:"tag,omitempty"` Region string `json:"region"` }
ImageScanReportFlags struct specify the format of passed in flags
type ImageScanReports ¶
type ImageScanReports struct { Findings []ImageScanFindings `json:"findings"` Flags ImageScanReportFlags `json:"-"` // hide in json output // contains filtered or unexported fields }
ImageScanReports struct specify the format of scan reports
type InspectorHelper ¶
type InspectorHelper struct{}
InspectorHelper is a struct that implements the reportDownloader interface inorder to fake downloading a report for testing scenarios
type InspectorReports ¶
type InspectorReports struct { Reports []inspectorReport `json:"reports"` Helper reportDownloader `json:"-"` // contains filtered or unexported fields }
InspectorReports is a struct that contains an array of inspectorReport
type ReflectFlags ¶
type ReflectFlags struct {
// contains filtered or unexported fields
}
ReflectFlags provides a collection of different flags for various stages of handling requests
func NewReflectFlags ¶
func NewReflectFlags(region string, roles []string, roleTags map[string]string, usageReport, errorReport, includeIdentity bool, absTime string, relTime int) ReflectFlags
NewReflectFlags returns a new instance Reflectflag
type ReflectReport ¶
type ReflectReport struct { Findings []reflectFinding `json:"findings"` Flags ReflectFlags `json:"-"` // hide in json output // contains filtered or unexported fields }
ReflectReport is struct that contains a slice of Reflect findings
type Report ¶
type Report interface { GetReport(client awslocal.APIs, comments []Comments) error // contains filtered or unexported methods }
Report is an interface that all types of reports will implement
type TrustedAdvisorReport ¶
type TrustedAdvisorReport struct { Findings []trustedAdvisorFinding `json:"findings"` // contains filtered or unexported fields }
TrustedAdvisorReport is struct that contains an array of Trusted Advisor findings