Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GuardDutyDataSource is the specific data_source label for guard-duty GuardDutyDataSource = "aws:guard-duty" // AccessAnalyzerDataSource is the specific data_source label for access-analyzer AccessAnalyzerDataSource = "aws:access-analyzer" // AdminCheckerDataSource is the specific data_source label for admin-checker AdminCheckerDataSource = "aws:admin-checker" // CloudsploitDataSource is the specific data_source label for cloudsploit CloudsploitDataSource = "aws:cloudsploit" // PortscanDataSource is the specific data_source label for portscan PortscanDataSource = "aws:portscan" // ActivityDatasource is the specific data_source label for activity ActivityDatasource = "aws:activity" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSQueueMessage ¶
type AWSQueueMessage struct { AWSID uint32 `json:"aws_id"` AWSDataSourceID uint32 `json:"aws_data_source_id"` DataSource string `json:"data_source"` ProjectID uint32 `json:"project_id"` AccountID string `json:"account_id"` AssumeRoleArn string `json:"assume_role_arn"` ExternalID string `json:"external_id"` ScanOnly bool `json:"scan_only,string"` }
AWSQueueMessage is the message for SQS queue
func ParseMessage ¶
func ParseMessage(msg string) (*AWSQueueMessage, error)
ParseMessage parse message & validation
func (*AWSQueueMessage) Validate ¶
func (g *AWSQueueMessage) Validate() error
Validate is the validation to GuardDutyMessage
Click to show internal directories.
Click to hide internal directories.