region

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvCache

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

type EnvProvider

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

func NewEnvProvider

func NewEnvProvider(serviceName string) *EnvProvider

func (*EnvProvider) GetRegion

func (p *EnvProvider) GetRegion(regionId string) *Region

type IRegionProvider

type IRegionProvider interface {
	GetRegion(regionId string) *Region
}

type ProfileCache

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

type ProfileProvider

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

func NewProfileProvider

func NewProfileProvider(serviceName string) *ProfileProvider

func (*ProfileProvider) GetRegion

func (p *ProfileProvider) GetRegion(regionId string) *Region

type ProviderChain

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

func DefaultProviderChain

func DefaultProviderChain(serviceName string) *ProviderChain

func NewProviderChain

func NewProviderChain(serviceName string, providers []IRegionProvider) *ProviderChain

func (*ProviderChain) GetRegion

func (p *ProviderChain) GetRegion(regionId string) *Region

type Region

type Region struct {
	Id        string
	Endpoints []string
}

func NewRegion

func NewRegion(id string, endpoints ...string) *Region

func (*Region) WithEndpointOverride deprecated

func (r *Region) WithEndpointOverride(endpoint string) *Region

Deprecated: As of 0.1.27, because of the support of the multi-endpoint feature, use WithEndpointsOverride instead

func (*Region) WithEndpointsOverride

func (r *Region) WithEndpointsOverride(endpoints []string) *Region

Jump to

Keyboard shortcuts

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