awsbootstrap

package
v1.5.27 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTerraformOutputFile

func FromTerraformOutputFile(ctx context.Context, outputFile string) (*DynamoDBFactory, Names, error)

func KeybaseDecode

func KeybaseDecode(b64Secret string) (string, error)

func ParseJSONTerraformOutput

func ParseJSONTerraformOutput(ctx context.Context, jsonOutput []byte, decoder SecretAccessKeyDecoder) (*StaticConfig, Names, error)

Types

type ConfigFactory

type ConfigFactory interface {
	NewConfig(ctx context.Context) (aws.Config, error)
}

type DynamoDBFactory

type DynamoDBFactory struct {
	ConfigFactory
}

func (*DynamoDBFactory) GetDynamoDBClient

func (d *DynamoDBFactory) GetDynamoDBClient(ctx context.Context) (*dynamodb.Client, error)

type Names

type Names interface {
	DynamoDBMainTable() string
}

type SecretAccessKeyDecoder

type SecretAccessKeyDecoder func(encodedValue string) (string, error)

type StaticConfig

type StaticConfig struct {
	Region          string
	AccessKeyID     string
	SecretAccessKey string
	Token           string
	Endpoint        string
}

func (*StaticConfig) NewConfig

func (j *StaticConfig) NewConfig(ctx context.Context) (aws.Config, error)

Jump to

Keyboard shortcuts

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