storage_s3

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(accessKey string, secretKey string, config *Configuration, settings *storage.Settings) (storage.Provider, error)

New instantiates Provider with S3 IAM API authentication.

Types

type Configuration

type Configuration struct {
	Bucket               *string
	ACL                  *string
	StorageClass         *string
	ServerSideEncryption *string
}

Configuration holds the S3-specific storage settings.

type Provider

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

Provider implements storage.Provider for Amazon S3.

func (*Provider) DeleteObject

func (provider *Provider) DeleteObject(obj *object.Object) error

func (*Provider) ExistsObject

func (provider *Provider) ExistsObject(obj *object.Object) (bool, error)

func (*Provider) GetObject

func (provider *Provider) GetObject(obj *object.Object) (*object.Object, error)

func (*Provider) ListObjects

func (provider *Provider) ListObjects() ([]*object.Object, error)

func (*Provider) NewObject

func (provider *Provider) NewObject(obj *object.Object) (*object.Object, error)

func (*Provider) Settings added in v0.0.17

func (provider *Provider) Settings() *storage.Settings

Jump to

Keyboard shortcuts

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