aws

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateS3Client

func CreateS3Client(ctx context.Context, cfg S3ClientConfig) (*s3.Client, error)

CreateS3Client creates an S3 client with consistent logging integration and configuration

Types

type S3ClientConfig

type S3ClientConfig struct {
	AccessKey string
	SecretKey string
	Endpoint  string
	Region    string
	Logger    *slog.Logger
}

S3ClientConfig contains configuration for creating an S3 client

type SlogAWSAdapter

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

SlogAWSAdapter wraps slog.Logger to implement smithy-go's logging.Logger interface

func NewSlogAWSAdapter

func NewSlogAWSAdapter(logger *slog.Logger) *SlogAWSAdapter

NewSlogAWSAdapter creates a new SlogAWSAdapter that implements the smithy-go Logger interface

func (*SlogAWSAdapter) Logf

func (a *SlogAWSAdapter) Logf(classification logging.Classification, format string, v ...interface{})

Logf implements the smithy-go logging.Logger interface

Jump to

Keyboard shortcuts

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