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.
Click to show internal directories.
Click to hide internal directories.