helper

package
v0.0.0-...-3b0daf1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsDescribeRegionsApi

type AwsDescribeRegionsApi interface {
	DescribeRegions(
		ctx context.Context,
		params *ec2.DescribeRegionsInput,
		optFns ...func(*ec2.Options),
	) (*ec2.DescribeRegionsOutput, error)
}

type AwsHelperAuth

type AwsHelperAuth struct {
	Profile string
	Client  AwsDescribeRegionsApi
}

func NewAwsHelperAuth

func NewAwsHelperAuth(profile string) (AwsHelperAuth, error)

func (AwsHelperAuth) AwsRegions

func (auth AwsHelperAuth) AwsRegions(includeDisabled bool) ([]string, error)

AwsRegions returns a list of AWS regions. Set includeDisabled to true to include disabled regions (Get all regions).

Jump to

Keyboard shortcuts

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