collector

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func CollectEC2PerSession(sess *session.Session) ([]*ec2.Instance, error)

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

Jump to

Keyboard shortcuts

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