ec2offered

package
v0.0.0-...-a99bcb5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: OSL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ec2offered restores GetValidResourceTypes on the provider EC2 client. The provider module dropped the method as unused on its side (go repo 7f024a6) while the RI exchange reshape paths still need the region's offered instance types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ec2svc.Client
	// contains filtered or unexported fields
}

Client is the provider EC2 client plus the offered-instance-type listing.

func New

func New(cfg aws.Config) *Client

New builds the client for the region in cfg.

func (*Client) GetValidResourceTypes

func (c *Client) GetValidResourceTypes(ctx context.Context) ([]string, error)

GetValidResourceTypes lists the instance types offered in the region, sorted. It fails loudly past maxPages instead of returning a truncated catalog.

Jump to

Keyboard shortcuts

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