message

package module
v0.0.0-...-e41efbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: MIT Imports: 2 Imported by: 5

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

Jump to

Keyboard shortcuts

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