src

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFile

func FetchFile(ctx context.Context, uid, auth string) (*model.File, error)

FetchFile ...

func GetS3Object

func GetS3Object(c GetS3ObjectConfig) (*s3.GetObjectOutput, error)

GetS3Object ...

func SaveFile

func SaveFile(ctx context.Context, f model.File, auth string, data map[string]interface{}) (model.File, error)

SaveFile ...

func UploadToS3

func UploadToS3(c UploadToS3Config) error

UploadToS3 ...

Types

type GetS3ObjectConfig

type GetS3ObjectConfig struct {
	Bucket string
	Key    string
}

GetS3ObjectConfig ...

type UploadToS3Config

type UploadToS3Config struct {
	Bucket      string
	Key         string
	Body        io.ReadSeeker
	Size        int64
	ContentType string //http.DetectContentType(buffer)
}

UploadToS3Config ...

Jump to

Keyboard shortcuts

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