Documentation ¶
Index ¶
- func CollectApplicationNetworkLoadBalancerPerSession(sess *session.Session) ([]*elbv2.LoadBalancer, error)
- func CollectClassicLoadBalancerPerSession(sess *session.Session) ([]*elb.LoadBalancerDescription, error)
- func CollectEC2PerSession(sess *session.Session) ([]*ec2.Instance, error)
- func CollectHostedZonePerSession(sess *session.Session) ([]*route53.HostedZone, error)
- func CollectRDSPerSession(sess *session.Session) ([]*rds.DBInstance, error)
- type AWSCollector
- func (col AWSCollector) CheckCredentials() bool
- func (col AWSCollector) CollectApplicationAndNetworkLoadBalancers() (map[string][]*elbv2.LoadBalancer, error)
- func (col AWSCollector) CollectClassicLoadBalancers() (map[string][]*elb.LoadBalancerDescription, error)
- func (col AWSCollector) CollectEC2() (map[string][]*ec2.Instance, error)
- func (col AWSCollector) CollectRDS() (map[string][]*rds.DBInstance, error)
- func (col AWSCollector) CollectZones() ([]*route53.HostedZone, error)
- func (col AWSCollector) GetHostedZoneRecords(hostedZoneId string) ([]*route53.ResourceRecordSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectApplicationNetworkLoadBalancerPerSession ¶ added in v0.2.0
func CollectApplicationNetworkLoadBalancerPerSession(sess *session.Session) ([]*elbv2.LoadBalancer, error)
CollectApplicationNetworkLoadBalancerPerSession returns an LoadBalancer inventory for a given session
func CollectClassicLoadBalancerPerSession ¶ added in v0.2.0
func CollectClassicLoadBalancerPerSession(sess *session.Session) ([]*elb.LoadBalancerDescription, error)
CollectClassicLoadBalancerPerSession returns an LoadBalancer inventory for a given session
func CollectEC2PerSession ¶
CollectEC2PerSession returns an EC2 inventory for a given session
func CollectHostedZonePerSession ¶ added in v0.1.2
func CollectHostedZonePerSession(sess *session.Session) ([]*route53.HostedZone, error)
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) CollectApplicationAndNetworkLoadBalancers ¶ added in v0.2.0
func (col AWSCollector) CollectApplicationAndNetworkLoadBalancers() (map[string][]*elbv2.LoadBalancer, error)
CollectApplicationAndNetworkLoadBalancers returns a concurrently collected LoadBalancers inventory for all the regions
func (AWSCollector) CollectClassicLoadBalancers ¶ added in v0.2.0
func (col AWSCollector) CollectClassicLoadBalancers() (map[string][]*elb.LoadBalancerDescription, error)
CollectClassicLoadBalancers returns a concurrently collected LoadBalancers inventory for all the regions
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
func (AWSCollector) CollectZones ¶ added in v0.1.2
func (col AWSCollector) CollectZones() ([]*route53.HostedZone, error)
CollectZones returns a hostedZones
func (AWSCollector) GetHostedZoneRecords ¶ added in v0.1.2
func (col AWSCollector) GetHostedZoneRecords(hostedZoneId string) ([]*route53.ResourceRecordSet, error)
GetHostedZoneRecords returns the hostedzonesRecords for a particular hostedZoneId