s3

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObject

func GetObject(svc s3iface.S3API, path Path) []byte

GetObject download a file on S3

func PutObject

func PutObject(svc s3iface.S3API, path Path, body string)

PutObject upload a file to S3

Types

type Path

type Path struct {
	Bucket string
	Key    string
}

A Path have S3 bucket and key

func ParsePath

func ParsePath(path string) (Path, error)

ParsePath parse a file path of S3, and return Path struct

Jump to

Keyboard shortcuts

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