s3

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package s3 provides an opener for S3 resources declared in the format s3://<bucket-name>/<object-key>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(client ClientAPI, o *porteiro.Opener) (*porteiro.Opener, error)

Open returns an opener that is able of loading files from S3 via the "s3" scheme.

The s3 client might be set to nil, in which case a new client will be created using the default credential provider chain (see https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html#credentials-default for more details).

Types

type ClientAPI added in v0.5.0

type ClientAPI interface {
	GetObject(context.Context, *s3.GetObjectInput, ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}

Jump to

Keyboard shortcuts

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