worker

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressesCount

func GetAddressesCount(addresses []*ec2.Address) (count int)

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

func GetVolumesPrice(volumes []*ec2.Volume) float64

GetVolumesPrice sums the final price for all the volumes

func Handle

func Handle() check.Result

Handle function

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

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

func Print

func Print(res check.Result)

Print prints the report in a pretty table output

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

MockDMSClient mocks DMS API client for unit testing purposes

type MockEC2Client

type MockEC2Client struct {
	ec2iface.EC2API
}

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

Jump to

Keyboard shortcuts

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