Documentation ¶
Index ¶
- Constants
- type Client
- func (client *Client) AnalyzeEBSVolumeWaste(ctx context.Context, region string) ([]util.AWSWastedResource, error)
- func (client *Client) AnalyzeElasticIPAddressWaste(ctx context.Context, region string) ([]util.AWSWastedResource, error)
- func (client *Client) AnalyzeNATGatewayWaste(ctx context.Context, region string) ([]util.AWSWastedResource, error)
- func (client *Client) GetEBSVolumePricing(ctx context.Context, region string) (EBSVolumePricing, error)
- func (client *Client) GetElasticIPAddressPricing(ctx context.Context, region string) (*util.Price, error)
- func (client *Client) GetNATGatewayPricing(ctx context.Context, region string) (*NATGatewayPricing, error)
- func (client *Client) GetUnusedEBSVolumes(ctx context.Context) ([]util.AWSResourceObject, error)
- func (client *Client) GetUnusedElasticIPAddresses(ctx context.Context) ([]util.AWSResourceObject, error)
- func (client *Client) GetUnusedNATGateways(ctx context.Context) ([]util.AWSResourceObject, error)
- type EBSVolume
- type EBSVolumePricing
- type EBSVolumeType
- type ElasticIPAddress
- type ElasticIPAddressPricing
- type NATGatewayPricing
- type NatGateway
Constants ¶
View Source
const (
UsageTypeNatGatewayHours = "NatGateway-Hours"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Logger *zap.SugaredLogger EC2 ec2iface.EC2API Pricing pricingiface.PricingAPI }
func (*Client) AnalyzeEBSVolumeWaste ¶
func (*Client) AnalyzeElasticIPAddressWaste ¶
func (*Client) AnalyzeNATGatewayWaste ¶
func (*Client) GetEBSVolumePricing ¶
func (*Client) GetElasticIPAddressPricing ¶
func (*Client) GetNATGatewayPricing ¶
func (*Client) GetUnusedEBSVolumes ¶
func (*Client) GetUnusedElasticIPAddresses ¶
func (*Client) GetUnusedNATGateways ¶
type EBSVolume ¶
type EBSVolume struct {
// contains filtered or unexported fields
}
func (EBSVolume) VolumeSizeinGb ¶
func (EBSVolume) VolumeType ¶
func (r EBSVolume) VolumeType() EBSVolumeType
type EBSVolumePricing ¶
type EBSVolumePricing map[EBSVolumeType]*util.AWSPriceItem
type EBSVolumeType ¶
type EBSVolumeType string
type ElasticIPAddress ¶
type ElasticIPAddress struct {
// contains filtered or unexported fields
}
func (ElasticIPAddress) ID ¶
func (a ElasticIPAddress) ID() string
func (ElasticIPAddress) Type ¶
func (a ElasticIPAddress) Type() string
type ElasticIPAddressPricing ¶
type NATGatewayPricing ¶
type NatGateway ¶
type NatGateway struct {
// contains filtered or unexported fields
}
func (NatGateway) ID ¶
func (r NatGateway) ID() string
func (NatGateway) Type ¶
func (r NatGateway) Type() string
Click to show internal directories.
Click to hide internal directories.