s3

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObject

func GetObject(path Path) []byte

GetObject download a file on S3

func PutObject

func PutObject(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

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