platform_aws

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCacheExpiration      = 5 * time.Minute
	DefaultCacheCleanUpInterval = 10 * time.Minute
)

Variables

This section is empty.

Functions

func CreateAwsConfig

func CreateAwsConfig(ctx context.Context, loc provider.Location, creds aws.CredentialsProvider) (aws.Config, error)

func GetClientForLocation

func GetClientForLocation[C any, O any](ctx context.Context, clientFunc ClientCreateFunc[C, O], ch *cache.Cache, loc provider.Location, creds aws.CredentialsProvider) (C, error)

Types

type BasePlatformAws

type BasePlatformAws struct {
	Ec2Cache *cache.Cache
	Creds    *credentials.StaticCredentialsProvider
}

Base struct with common functions for AWS clients TODO: this might be kinda pointless

type ClientCreateFunc

type ClientCreateFunc[C any, O any] func(aws.Config, ...func(O)) C

Jump to

Keyboard shortcuts

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