filestorage

package
v0.0.0-...-c477d60 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const AclPublicRead = "public-read"

Variables

View Source
var ErrStorageServiceNotAvailable = errors.New("Error uploading token image, please try again later")

Functions

func GetStorage

func GetStorage(awsKey, awsSecret string) datatype.FileStorage

Types

type Acl

type Acl string

type Storage

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

func (*Storage) Put

func (s *Storage) Put(
	path string,
	contentType string,
	content []byte,
	acl string,
) error

Jump to

Keyboard shortcuts

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