Documentation ¶
Index ¶
- func GetAddressesCount(addresses []*ec2.Address) (count int)
- func GetDmsCount(instances []*databasemigrationservice.ReplicationInstance) (count int)
- func GetNatGatewaysCount(natgateways []*ec2.NatGateway) (count int)
- func GetS3VpcEndpointsCount(endpoints []*ec2.VpcEndpoint) int
- func GetVolumesPrice(volumes []*ec2.Volume) float64
- func Handle() check.Result
- func Handler(message check.Event) *checkcompleted.Event
- func NewCEClient(auth checkreport.AwsAuth) *costexplorer.CostExplorer
- func NewDMSClient(auth checkreport.AwsAuth, region string) *databasemigrationservice.DatabaseMigrationService
- func NewEC2Client(auth checkreport.AwsAuth, region string) *ec2.EC2
- func NewELBClient(auth checkreport.AwsAuth, region string) *elb.ELBV2
- func NewSupportClient(auth checkreport.AwsAuth) *support.Support
- func Print(res check.Result)
- type CostExplorerMockClient
- type InstanceAtribute
- type MockDMSClient
- type MockEC2Client
- type Parameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressesCount ¶
GetAddressesCount return a count unassociated EIPs
func GetDmsCount ¶
func GetDmsCount(instances []*databasemigrationservice.ReplicationInstance) (count int)
GetDmsCount return a count of DMS Replication Instances
func GetNatGatewaysCount ¶
func GetNatGatewaysCount(natgateways []*ec2.NatGateway) (count int)
GetNatGatewaysCount return a count of NAT Gateways
func GetS3VpcEndpointsCount ¶
func GetS3VpcEndpointsCount(endpoints []*ec2.VpcEndpoint) int
GetS3VpcEndpointsCount return a count of S3 VPC Endpoints
func GetVolumesPrice ¶
GetVolumesPrice sums the final price for all the volumes
func Handler ¶
func Handler(message check.Event) *checkcompleted.Event
Handler handles the one incoming check and returns the result
func NewCEClient ¶
func NewCEClient(auth checkreport.AwsAuth) *costexplorer.CostExplorer
NewCEClient constructs a new costexplorer client with credentials and session
func NewDMSClient ¶
func NewDMSClient(auth checkreport.AwsAuth, region string) *databasemigrationservice.DatabaseMigrationService
NewDMSClient constructs a new dms client with credentials and session
func NewEC2Client ¶
func NewEC2Client(auth checkreport.AwsAuth, region string) *ec2.EC2
NewEC2Client constructs a new ec2 client with credentials and session
func NewELBClient ¶
func NewELBClient(auth checkreport.AwsAuth, region string) *elb.ELBV2
NewELBClient constructs a new elb v2 client with credentials and session
func NewSupportClient ¶
func NewSupportClient(auth checkreport.AwsAuth) *support.Support
NewSupportClient constructs a new support client with credentials and session
Types ¶
type CostExplorerMockClient ¶
type CostExplorerMockClient struct {
costexploreriface.CostExplorerAPI
}
CostExplorerMockClient mocks CostExplorer API client for unit testing purposes
type InstanceAtribute ¶
type InstanceAtribute struct { InstanceID string `json:"instanceId"` EbsOptimized bool `json:"ebsOptimized"` }
InstanceAtribute struct
type MockDMSClient ¶
type MockDMSClient struct {
databasemigrationserviceiface.DatabaseMigrationServiceAPI
}
MockDMSClient mocks DMS API client for unit testing purposes
type MockEC2Client ¶
MockEC2Client mocks EC2 API client for unit testing purposes
type Parameters ¶
type Parameters struct {
// contains filtered or unexported fields
}
Parameters for AWS session used for dependency injection