aws

package
v0.0.0-...-f003305 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseAWSConfig

func BaseAWSConfig(ctx context.Context, logger *zerolog.Logger) (aws.Config, error)

BaseAWSConfig return an aws.Config with region and logger. Default region is us-west-2.

Types

type Client

type Client struct {
	S3GetObjectAPI
}

Client defines the aws client.

func NewClient

func NewClient(cfg aws.Config) (*Client, error)

NewClient creates a new aws client instance.

type S3GetObjectAPI

type S3GetObjectAPI interface {
	GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}

S3GetObjectAPI - interface to allow for a GetObject mock

Directories

Path Synopsis
Package mockaws is a generated GoMock package.
Package mockaws is a generated GoMock package.

Jump to

Keyboard shortcuts

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