sg

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCIDRReport added in v1.8.0

func GenerateCIDRReport(c *cli.Context) error

GenerateCIDRReport will generate a report of CIDR block exposure from Security Groups.

func GenerateExternalAWSIPReport added in v1.10.0

func GenerateExternalAWSIPReport() error

GenerateExternalAWSIPReport

func GenerateMappedEC2Report added in v1.11.0

func GenerateMappedEC2Report() error

func GeneratePortReport added in v1.9.0

func GeneratePortReport(c *cli.Context) error

GeneratePortReport will generate a report of PORT exposure from Security Groups.

func ListAttachedSecurityGroups

func ListAttachedSecurityGroups() error

ListAttachedSecurityGroups generates a report listing out all Security Groups that are attached to a Network Interface

func ListDetachedSecurityGroups

func ListDetachedSecurityGroups() error

ListDetachedSecurityGroups generates a report listing out all Security Groups that are NOT attached to a Network Interface

Types

type AWSIPRanges added in v1.10.0

type AWSIPRanges struct {
	SyncToken    string        `json:"syncToken"`
	CreateDate   string        `json:"createDate"`
	Prefixes     []*Prefix     `json:"prefixes"`
	IPv6Prefixes []*IPv6Prefix `json:"ipv6_prefixes"`
}

type AWSIPs added in v1.10.0

type AWSIPs struct {
	// contains filtered or unexported fields
}

type IPv6Prefix added in v1.10.0

type IPv6Prefix struct {
	IPv6Prefix         string `json:"ipv6_prefix"`
	Region             string `json:"region"`
	NetworkBorderGroup string `json:"network_border_group"`
	Service            string `json:"service"`
}

func (*IPv6Prefix) GetCIDR added in v1.10.0

func (p *IPv6Prefix) GetCIDR() (*net.IPNet, error)

type Prefix added in v1.10.0

type Prefix struct {
	IPPrefix           string `json:"ip_prefix"`
	Region             string `json:"region"`
	NetworkBorderGroup string `json:"network_border_group"`
	Service            string `json:"service"`
}

func (*Prefix) GetCIDR added in v1.10.0

func (p *Prefix) GetCIDR() (*net.IPNet, error)

func (*Prefix) GetService added in v1.10.0

func (p *Prefix) GetService() string

Jump to

Keyboard shortcuts

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