awsservicemap

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsServiceMap

type AwsServiceMap struct {
	JsonFileSource JsonFileSource
}

func NewServiceMap

func NewServiceMap() *AwsServiceMap

Function that uses the constructor pattern. You can use this or instantiate your struct without it.

func (*AwsServiceMap) GetAllRegions

func (m *AwsServiceMap) GetAllRegions() ([]string, error)

Returns a slice of strings that represent all observed regions

func (*AwsServiceMap) GetAllServices

func (m *AwsServiceMap) GetAllServices() ([]string, error)

func (*AwsServiceMap) GetRegionsForService

func (m *AwsServiceMap) GetRegionsForService(reqService string) ([]string, error)

Returns a slice of strings that represent all regions that support the specific service

func (*AwsServiceMap) GetServicesForRegion

func (m *AwsServiceMap) GetServicesForRegion(reqRegion string) ([]string, error)

Returns a slice of strings that represent all service supported in a specific region

func (*AwsServiceMap) IsServiceInRegion

func (m *AwsServiceMap) IsServiceInRegion(reqService string, reqRegion string) (bool, error)

Is a specific service supported in a specific region. Retruns true/false

type JsonFileSource added in v0.0.6

type JsonFileSource string
const (
	JsonFileSourceEmbedded JsonFileSource = "EMBEDDED_IN_PACKAGE"
	JsonFileSourceDownload JsonFileSource = "DOWNLOAD_FROM_AWS"
)

Enum values for JsonFileSource

func (JsonFileSource) Values added in v0.0.6

func (JsonFileSource) Values() []JsonFileSource

Jump to

Keyboard shortcuts

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