blobstore

package
v0.0.0-...-fb7d9fd Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Setup optional env JSON value:

goboot_blobstore={
  "name": "",
}

Index

Constants

This section is empty.

Variables

View Source
var (
	Config     aws.Config
	Session    *session.Session
	S3         *s3.S3
	BucketName string
)

Functions

func Delete

func Delete(key string) (r *s3.DeleteObjectOutput, err error)

func Get

func Get(key string) (r *s3.GetObjectOutput, err error)

func List

func List() (files []string)

func Put

func Put(blob io.ReadSeeker, key string, contentType string) (r *s3.PutObjectOutput, err error)

func SignV2

func SignV2(request *request.Request)

SignV2 is a v2 HTTP authentication scheme that is compatible with the AWS Go SDK.

func Upload

func Upload(blob io.Reader, key string, contentType string) (r *s3manager.UploadOutput, err error)

Types

type BlobstoreEnv

type BlobstoreEnv struct {
	Name string `env:"goboot_blobstore.name"`
}

Jump to

Keyboard shortcuts

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