Documentation ¶
Index ¶
- func DBSnapshots() ([]*rds.DBSnapshot, error)
- func DefaultSession() *session.Session
- func DescribeDBLogFiles(dbInstanceIdentifier string) ([]*rds.DescribeDBLogFilesDetails, error)
- func EC2Client(client *ec2.EC2)
- func GetBucketReplication(bucket *s3.Bucket) (*s3.GetBucketReplicationOutput, error)
- func GetRDSLogDownloadURL(dbInstanceIdentifier string, fileName string) (*http.Request, error)
- func IAMAccessKeyLastUsed(accessKeyID string) (*iam.GetAccessKeyLastUsedOutput, error)
- func IAMAccessKeysMeatadata(username string) ([]*iam.AccessKeyMetadata, error)
- func IAMClient(client *iam.IAM)
- func IAMUsers() ([]*iam.User, error)
- func Init(s *session.Session)
- func Instances(IDs []string) (instances []*ec2.Instance, err error)
- func ListBuckets() ([]*s3.Bucket, error)
- func NetworkInterfaces() ([]*ec2.NetworkInterface, error)
- func RDSClient(client *rds.RDS)
- func ReservedDBInstances() ([]*rds.ReservedDBInstance, error)
- func ReservedInstances() ([]*ec2.ReservedInstances, error)
- func RunningDBInstances() ([]*rds.DBInstance, error)
- func RunningInstances(opts RunningInstancesOpts) []*ec2.Instance
- func S3Client(client *s3.S3)
- func SecurityGroups() ([]*ec2.SecurityGroup, error)
- func SpotInstanceRequests(requestIDs []string) (reqs []*ec2.SpotInstanceRequest, err error)
- func Subnets() ([]*ec2.Subnet, error)
- func VPCs() ([]*ec2.Vpc, error)
- type RunningInstancesOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBSnapshots ¶
func DBSnapshots() ([]*rds.DBSnapshot, error)
DBSnapshots returns a slice of RDS Snapshots.
func DefaultSession ¶
DefaultSession creates and initializes the underlying default session for working with models.
func DescribeDBLogFiles ¶
func DescribeDBLogFiles(dbInstanceIdentifier string) ([]*rds.DescribeDBLogFilesDetails, error)
DescribeDBLogFiles returns details about the log files for a given DB Instance identifier
func GetBucketReplication ¶
func GetBucketReplication(bucket *s3.Bucket) (*s3.GetBucketReplicationOutput, error)
GetBucketReplication returns the Replication status of the bucket
func GetRDSLogDownloadURL ¶
GetRDSLogDownloadURL returns a signed request for the given DB Instance identifier and filename
func IAMAccessKeyLastUsed ¶
func IAMAccessKeyLastUsed(accessKeyID string) (*iam.GetAccessKeyLastUsedOutput, error)
func IAMAccessKeysMeatadata ¶
func IAMAccessKeysMeatadata(username string) ([]*iam.AccessKeyMetadata, error)
IAMAccessKeysMetadata returns all AccessKeyMetadata
func Instances ¶
Instances retrieves a list of instances by their instance IDs and returns an error if one occured.
func NetworkInterfaces ¶
func NetworkInterfaces() ([]*ec2.NetworkInterface, error)
NetworkInterfaces returns all of the network interfaces or an error if one occured.
func ReservedDBInstances ¶
func ReservedDBInstances() ([]*rds.ReservedDBInstance, error)
ReservedDBInstances returns a slice of active reserved db instances. We have to do client side filtering since the API doesn't support filters at this time.
func ReservedInstances ¶
func ReservedInstances() ([]*ec2.ReservedInstances, error)
ReservedInstances returns a slice of reserved instances.
func RunningDBInstances ¶
func RunningDBInstances() ([]*rds.DBInstance, error)
RunningDBInstances returns a slice of running db instances.
func RunningInstances ¶
func RunningInstances(opts RunningInstancesOpts) []*ec2.Instance
RunningInstances returns a slice of running instances
func SecurityGroups ¶
func SecurityGroups() ([]*ec2.SecurityGroup, error)
SecurityGroups returns all of the security groups or an error if one occured.
func SpotInstanceRequests ¶
func SpotInstanceRequests(requestIDs []string) (reqs []*ec2.SpotInstanceRequest, err error)
SpotInstanceRequests returns a slice of spot instance requests by their IDs and an error if one occurs.
Types ¶
type RunningInstancesOpts ¶
type RunningInstancesOpts struct {
IncludeSpot bool
}
RunningInstancesOpts are options that can be passed to the running instances call.