Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CSVHeader with columns CSVHeader = strings.Join([]string{"Level", "Instance Count", "Group ID", "Port Range", "Protocol", "IP CIDR", "Description"}, ",") )
Functions ¶
This section is empty.
Types ¶
type AWS ¶
type AWS struct {
// contains filtered or unexported fields
}
AWS Related Services
func (*AWS) DescribeInstances ¶
DescribeInstances to call DescribeInstances API
func (*AWS) DescribeSecurityGroups ¶
func (a *AWS) DescribeSecurityGroups() ([]*ec2.SecurityGroup, error)
DescribeSecurityGroups to call DescribeSecurityGroups API
type Result ¶
type Result struct { SecurityGroupID string Permissions *ec2.IpPermission IPRange *ec2.IpRange IPv6Range *ec2.Ipv6Range SeverityLevel SeverityLevel InstanceCount int Color *color.Color PortRange string }
Result type to structure the log output
func (*Result) Print ¶
func (r *Result) Print(format ResultFormat)
Print for printing out the logs in color form.
func (*Result) String ¶
func (r *Result) String(rf ResultFormat) string
type ResultFormat ¶
type ResultFormat int
ResultFormat for formatting result type
const ( // ResultFormatCSV for CSV Formatted String ResultFormatCSV ResultFormat = iota // ResultFormatLog for Log Formatted String ResultFormatLog // ResultFormatLogColor for Log Formatted String with Color ResultFormatLogColor )
type SeverityLevel ¶
type SeverityLevel int
SeverityLevel type
const ( // SeverityLevelNone is the initial level SeverityLevelNone SeverityLevel = iota // SeverityLevelChecked can be ignored as it has already been checked SeverityLevelChecked // SeverityLevelSkip can be skipped SeverityLevelSkip // SeverityLevelWarning can be ok SeverityLevelWarning // SeverityLevelCritical can be disasterous SeverityLevelCritical )
Click to show internal directories.
Click to hide internal directories.