claws

package
v0.10.10 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package claws provides the official AWS SDK (v2)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DynamoEndpointDecorator added in v0.7.4

func DynamoEndpointDecorator(epurl string) func(c aws.Config) aws.Config

DynamoEndpointDecorator will change the resolvers to set the dynamodb endpoint since this AWS supports a local version of Dynamo.

func New

New initialize an AWS config to be used to create clients for individual aws services. We would like run this during fx lifecycle phase to provide it with a context because it can block. But too many dependencies would have to wait for it.

func Prod

func Prod() fx.Option

Prod configures the DI for providng database connectivity.

Types

type Config

type Config struct {
	// LoadConfigTimeout bounds the time given to config loading
	LoadConfigTimeout time.Duration `env:"LOAD_CONFIG_TIMEOUT" envDefault:"100ms"`
	// OverwriteAccessKeyID can be set to overwrite regular credentials loading chain and just a static key/secret
	OverwriteAccessKeyID string `env:"OVERWRITE_ACCESS_KEY_ID"`
	// If OverwriteAccessKeyID this wil be used as the secret
	OverwriteSecretAccessKey string `env:"OVERWRITE_SECRET_ACCESS_KEY"`
	// If OverwriteAccessKeyID this wil be used as the session token
	OverwriteSessionToken string `env:"OVERWRITE_SESSION_TOKEN"`
}

Config configures this package.

Jump to

Keyboard shortcuts

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