claws

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 15 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 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 Provide added in v0.17.0

func Provide() fx.Option

Provide 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"`

	// enable logging of SDK retries
	LogRetries bool `env:"LOG_RETRIES" envDefault:"false"`
	// enable logging of SDK request
	LogRequest bool `env:"LOG_REQUEST" envDefault:"false"`
	// enable logging of SDK responses
	LogResponse bool `env:"LOG_RESPONSE" envDefault:"false"`
}

Config configures this package.

type Logger added in v0.30.17

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

logger implements AWS logging.Logger using zap.

func NewLogger added in v0.30.17

func NewLogger(logs *zap.Logger) *Logger

NewLogger creates a new logger for AWS SDK.

func (Logger) Logf added in v0.30.17

func (l Logger) Logf(classification logging.Classification, format string, v ...interface{})

Logf implements logging.Logger interface.

Directories

Path Synopsis
Package clalbauthn functionality for dealing with requests that passed trough AWS ALB authentication action.
Package clalbauthn functionality for dealing with requests that passed trough AWS ALB authentication action.
Package clecsmeta provides metadata information about the ECS instance the code is running on.
Package clecsmeta provides metadata information about the ECS instance the code is running on.

Jump to

Keyboard shortcuts

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