awslib

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSessions

func BuildSessions(regions []string) (map[string]*session.Session, error)

BuildSessions returns a map of sessions for each region using Default Credential Chain

func BuildSessionsWithCredentials

func BuildSessionsWithCredentials(regions []string, creds *credentials.Credentials) (map[string]*session.Session, error)

BuildSessionsWithCredentials returns a map of sessions for each region using supplied credentials

func GetAllALBAndNLB added in v0.2.0

func GetAllALBAndNLB(sess *session.Session) ([]*elbv2.LoadBalancer, error)

GetAllALBAndNLB resturns a complete list of Application & Network Load Balancers for a given session

func GetAllCLB added in v0.2.0

func GetAllCLB(sess *session.Session) ([]*elb.LoadBalancerDescription, error)

GetAllCLB resturns a complete list of Classic Load Balancers for a given session

func GetAllChinaRegions

func GetAllChinaRegions() []string

GetAllChinaRegions returns all regions for the AWS China Partition

func GetAllDBInstances

func GetAllDBInstances(sess *session.Session) ([]*rds.DBInstance, error)

GetAllDBInstances resturns a complete list of DBInstances for a given session

func GetAllHostedZones added in v0.1.2

func GetAllHostedZones(sess *session.Session) ([]*route53.HostedZone, error)

GetAllInstances returns a complete list of instances for a given session

func GetAllInstances

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

GetAllInstances returns a complete list of instances for a given session

func GetAllRegions

func GetAllRegions() []string

GetAllRegions returns all regions for AWS except US-Gov and China

func GetHostedZoneRecords added in v0.1.2

func GetHostedZoneRecords(sess *session.Session, hostedZoneId string) ([]*route53.ResourceRecordSet, error)

GetHostedZoneRecords returns the hostedzonesRecords for a particular hostedZoneId

Types

This section is empty.

Jump to

Keyboard shortcuts

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