aws

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient struct {
	PricingClient IPricingAPI
	// contains filtered or unexported fields
}

func NewAwsClient

func NewAwsClient(region string) (*AwsClient, error)

func (*AwsClient) GetComputeCost added in v0.2.0

func (c *AwsClient) GetComputeCost(ctx context.Context, instanceType, region string) (*[]ultron.ComputeCost, error)

type IAwsClient

type IAwsClient interface {
	GetComputeCost(ctx context.Context, instanceType, region string) (*[]ultron.ComputeCost, error)
}

type IPricingAPI added in v0.2.0

type IPricingAPI interface {
	GetProducts(ctx context.Context, params *pricing.GetProductsInput, optFns ...func(*pricing.Options)) (*pricing.GetProductsOutput, error)
}

Jump to

Keyboard shortcuts

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