awsclient

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DescribeInstanceTypes(context.Context, *ec2.DescribeInstanceTypesInput) (*ec2.DescribeInstanceTypesOutput, error)
}

Client is a minimal AWS client interface for EC2 instance type queries

func NewValidatedClient

func NewValidatedClient(ctx context.Context, region, credentialsFile string, regionCache RegionCache) (Client, error)

NewValidatedClient creates an AWS client with region validation. If credentialsFile is provided, it will be used for authentication. Otherwise, falls back to IRSA or default AWS credential chain.

type DescribeRegionsData

type DescribeRegionsData struct {
	// contains filtered or unexported fields
}

DescribeRegionsData holds output of DescribeRegions API call and the time when it was last updated.

type RegionCache

type RegionCache interface {
	GetCachedDescribeRegions(ctx context.Context, cfg aws.Config) (*ec2.DescribeRegionsOutput, error)
}

RegionCache caches successful DescribeRegions API calls.

func NewRegionCache

func NewRegionCache() RegionCache

NewRegionCache creates a new empty DescribeRegionsData cache with lock.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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