s3

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutObject

func PutObject(svc s3iface.S3API, path Path, object Object)

PutObject upload a file to S3

Types

type Object added in v0.0.11

type Object struct {
	Body        []byte
	ContentType string
}

Object has object body and metadata

func GetObject

func GetObject(svc s3iface.S3API, path Path) Object

GetObject download a file on S3

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