Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectEC2PerSession ¶
CollectEC2PerSession returns an EC2 inventory for a given session
func CollectRDSPerSession ¶
func CollectRDSPerSession(sess *session.Session) ([]*rds.DBInstance, error)
CollectRDSPerSession returns an RDS inventory for a given session
Types ¶
type AWSCollector ¶
type AWSCollector struct {
// contains filtered or unexported fields
}
AWSCollector is a concurrent inventory collection struct for Amazon Web Services
func NewAWSCollector ¶
func NewAWSCollector(partition string, creds *credentials.Credentials) (AWSCollector, error)
NewAWSCollector returns an AWSCollector with initialized sessions. Uses supplied credentials, Standard Environment variables if creds not specified
func (AWSCollector) CheckCredentials ¶
func (col AWSCollector) CheckCredentials() bool
CheckCredentials tests the proper availability of AWS Credentials in the environment
func (AWSCollector) CollectEC2 ¶
func (col AWSCollector) CollectEC2() (map[string][]*ec2.Instance, error)
CollectEC2 returns a concurrently collected EC2 inventory for all the regions
func (AWSCollector) CollectRDS ¶
func (col AWSCollector) CollectRDS() (map[string][]*rds.DBInstance, error)
CollectRDS returns a concurrently collected RDS inventory for all the regions
Click to show internal directories.
Click to hide internal directories.