Documentation ¶
Overview ¶
Package vpc provides the data structures and logic necessary to enumerate and integrate AWS VPC resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
The Instance struct contains the VPC data that was enumerated, wrapping the AWS values
type Report ¶
type Report struct { AccountID string `json:"account_id" yaml:"account_id"` VPCs []Instance `json:"vpcs" yaml:"vpcs"` Errors []string `json:"errors" yaml:"errors"` }
The Report struct contains the account ID that the VPCs were discovered in, the resources themselves, and any non-fatal errors that occurred during the execution of the `methodaws vpc enumerate` subcommand.
func EnumerateVPC ¶
EnumerateVPC lists the VPCs available to the caller and returns a Report struct. The Report contains all non-fatal errors that occurred during the execution of the `methodaws vpc enumerate` subcommand. EnumerateVPC will return an error if the account ID cannot be retrieved.