aws

package
Version: v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderScheme = "s3"

Variables

This section is empty.

Functions

func NewService

func NewService(config *Config) storage.Service

deprecated - use s3 package

func NewServiceWithCredential

func NewServiceWithCredential(credentials string) (storage.Service, error)

deprecated - use s3 package

func SetDefaultProvider added in v0.8.1

func SetDefaultProvider()

SetProvider set s3 provider with dynamic credentials

func SetProvider added in v0.8.1

func SetProvider(config *Config)

SetProvider set s3 provider with supplied config

Types

type Config

type Config struct {
	Region string
	Key    string
	Secret string
	Token  string
}

Config represents storage

func NewConfig

func NewConfig(URL string) (*Config, error)

NewConfig creates a new config from URL

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL