s3

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package s3 provides S3 (and compatible) storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Endpoint, defaults to "https://s3.amazonaws.com".
	Endpoint string `mapstructure:"endpoint"`

	// Bucket to store in. Defaults to "storage".
	Bucket string `mapstructure:"bucket"`

	// Region is the AWS region. Defaults to the default US region.
	Region string `mapstructure:"region"`

	// Access key.
	Access string `mapstructure:"access"`

	// Secret key.
	Secret string `mapstructure:"secret"`

	// Timeout for read operations.
	Timeout time.Duration `mapstructure:"timeout"`
}

Config for S3 storage.

func (*Config) Open

func (config *Config) Open() (storage.Storage, error)

Open S3 (compatible) storage.

Jump to

Keyboard shortcuts

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