impl

package module
v0.0.0-...-5f06b7d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	S3Client s3.Client
}

S3 is a structure to provide an S3Fetcher used by the S3Fetch wrap in lambdawrap. It is a very simplistic implementation. Clients must provide an initialised AWS S3 client.

cfg, err := config.LoadDefaultConfig(ctx)
if err != nil ...

client := s3.NewFromConfig(cfg)

s3 := S3{S3Client: client}

func (*S3) Fetch

func (s *S3) Fetch(ctx context.Context, e events.S3Entity) (io.ReadCloser, error)

Fetch is to be passed into the S3Fetch wrap, it will fetch the exact version of the object located in the bucket from the S3Entity.

Jump to

Keyboard shortcuts

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