Documentation ¶
Index ¶
- Constants
- Variables
- func GetMandatoryArrayValue(jsonMap *map[string]interface{}, key string) (*[]interface{}, error)
- func GetMandatoryMapValue(jsonMap *map[string]interface{}, key string) (*map[string]interface{}, error)
- func GetMandatoryStringValue(jsonMap *map[string]interface{}, key string) (string, error)
- func GetOptionalStringValue(jsonMap *map[string]interface{}, key string, defaultValue *string) *string
- type AccountContext
- type Action
- type CriteriaPart
- type Operator
- type OrganizationContext
- type ProcessingRun
- type Resource
- type ResourceCategory
- type ResourceState
- type Rule
- type RuleApplyResult
- type SecurityFinding
- type SecurityFindingAlertState
- type SecurityFindingCategory
- type SecurityFindingReportRow
- type SecurityFindingState
- type StateChange
- type Version
- type Vulnerability
Constants ¶
View Source
const ( SecurityFindingTypeConsoleSignin string = "Console Signin" SecurityFindingTypeConsoleSigninNoMfa string = "Console Signin No MFA" SecurityFindingTypeRootLogin string = "Root Login" SecurityFindingTypeCloudTrailConfigurationChanges string = "Cloud Trail Configuration Changes" SecurityFindingFailedAuthentication string = "Failed Authentication" SecurityFindingDisableOrDeleteCMK string = "Disable or Delete CMK" SecurityFindingS3BucketPolicyChanges string = "S3 Bucket Policy Changes" SecurityFindingAWSConfigChanges string = "AWS Config Changes" SecurityFindingSecurityGroupChanges string = "Security Group Changes" SecurityFindingIAMChanges string = "IAM Changes" SecurityFindingNACLChanges string = "NACL Changes" SecurityFindingNetworkGWChanges string = "Network GW Changes" SecurityFindingRouteTableChanges string = "Route Table Changes" SecurityFindingVPCChanges string = "VPC Changes" )
Variables ¶
View Source
var CombiningLogicalOperators = []Operator{OperatorAnd, OperatorOr}
Functions ¶
func GetMandatoryArrayValue ¶
func GetMandatoryMapValue ¶
func GetMandatoryStringValue ¶
Types ¶
type AccountContext ¶
type CriteriaPart ¶
type CriteriaPart struct { Path *string Operator *Operator Value *string Criteria []*CriteriaPart }
type OrganizationContext ¶
type OrganizationContext struct { MasterAccountContext *AccountContext LogAccountContext *AccountContext AccountContexts []*AccountContext }
type ProcessingRun ¶
type Resource ¶
type Resource struct { Id string `json:"id"` ParentId *string `json:"parent_id"` Key string `json:"key"` Category ResourceCategory `json:"category"` Type string `json:"type"` SpaceId string `json:"spaceId"` AccountId string `json:"accountId"` AccountName string `json:"accountName"` Region string `json:"region"` Team string `json:"team"` EnvironmentType string `json:"environmentType"` Labels *map[string]interface{} `json:"labels"` Metadata *map[string]interface{} `json:"metadata"` VulnerabilityKeys []string `json:"vulnerabilityKeys" pg:",array"` State ResourceState `json:"state"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` LastObserved time.Time `json:"lastObserved"` FirstObserved time.Time `json:"firstObserved"` ParentKey *string `pg:"-"` // contains filtered or unexported fields }
type ResourceCategory ¶
type ResourceCategory string
const ( ResourceCategoryAccount ResourceCategory = "account" ResourceCategoryRegion ResourceCategory = "region" ResourceCategoryDomainName ResourceCategory = "domain-name" ResourceCategoryIp ResourceCategory = "ip" ResourceCategoryPort ResourceCategory = "port" ResourceCategoryAwsConfigResource ResourceCategory = "aws-config-resource" )
type ResourceState ¶
type ResourceState string
const ( ResourceStateActive ResourceState = "active" ResourceStateArchived ResourceState = "archived" )
type RuleApplyResult ¶
type SecurityFinding ¶
type SecurityFinding struct { Id string `json:"id"` SpaceId string `json:"spaceId"` AccountId string `json:"accountId"` AccountName string `json:"accountName"` Region string `json:"region"` Team string `json:"team"` EnvironmentType string `json:"environmentType"` ResourceType *string `json:"resourceType"` ResourceId *string `json:"resourceId"` Category SecurityFindingCategory `json:"category"` Type string `json:"type"` Key string `json:"key"` SourceType string `json:"sourceType"` SourceId string `json:"sourceId"` Title string `json:"title"` Description string `json:"description" pg:",use_zero"` Labels *map[string]interface{} `json:"labels"` Metadata *map[string]interface{} `json:"metadata"` JiraIssueKey *string `json:"jiraIssueKey"` Priority int `pg:",use_zero" json:"priority"` OriginalPriority int `pg:",use_zero" json:"originalPriority"` SourcePriority int `pg:",use_zero" json:"sourcePriority"` RulePriority *int `pg:",use_zero" json:"rulePriority"` ManualPriority *int `pg:",use_zero" json:"manualPriority"` State SecurityFindingState `json:"state"` AlertState SecurityFindingAlertState `json:"alertState"` LastComment string `json:"lastComment"` LastAuthor string `json:"lastAuthor"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` LastObserved time.Time `json:"lastObserved"` FirstObserved time.Time `json:"firstObserved"` // contains filtered or unexported fields }
type SecurityFindingAlertState ¶
type SecurityFindingAlertState string
const ( AlertStateInactive SecurityFindingAlertState = "inactive" AlertStateActive SecurityFindingAlertState = "active" )
type SecurityFindingCategory ¶
type SecurityFindingCategory string
const ( CategoryCompliance SecurityFindingCategory = "compliance" CategoryAnomaly SecurityFindingCategory = "anomaly" CategoryVulnerability SecurityFindingCategory = "vulnerability" CategoryWarning SecurityFindingCategory = "warning" CategoryNotification SecurityFindingCategory = "notification" )
type SecurityFindingReportRow ¶
type SecurityFindingReportRow struct { Id string `json:"id"` SpaceId string `json:"spaceId"` Key string `json:"key"` AccountId string `json:"accountId"` AccountName string `json:"accountName"` Region string `json:"region"` Team string `json:"team"` EnvironmentType string `json:"environmentType"` SourceType string `json:"sourceType"` Category SecurityFindingCategory `json:"category"` Type string `json:"type"` Priority int `pg:",use_zero" json:"priority"` FindingCount int `pg:",use_zero" json:"findingCount"` RowDate time.Time `json:"rowDate"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` // contains filtered or unexported fields }
type SecurityFindingState ¶
type SecurityFindingState string
const ( StateActive SecurityFindingState = "active" StateArchived SecurityFindingState = "archived" )
type StateChange ¶
type Vulnerability ¶
type Vulnerability struct { Id string `json:"id"` Key string `json:"key"` Source string `json:"source"` Summary string `json:"summary"` Severity int `json:"severity"` Score float64 `json:"score"` Metadata *map[string]interface{} `json:"metadata"` References []string `json:"references" pg:",array"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` // contains filtered or unexported fields }
Source Files ¶
- account_context.go
- json_map.go
- organization_context.go
- processing_run.go
- resource.go
- resource_category.go
- resource_state.go
- rule.go
- rule_apply_result.go
- security_finding.go
- security_finding_alert_state.go
- security_finding_category.go
- security_finding_report_row.go
- security_finding_state.go
- security_finding_type.go
- state_change.go
- version.go
- vulnerability.go
Click to show internal directories.
Click to hide internal directories.