s3p

package
v0.0.0-...-20a8322 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(url string, wr io.WriterAt) (err error)

func Register

func Register(ep string, ap AccessPoint)

func Upload

func Upload(url string, rd io.Reader, metadata map[string]string) (err error)

Types

type AccessPoint

type AccessPoint struct {
	Endpoint    string
	Region      string
	Bucket      string
	Prefix      string
	Credentials *credentials.Credentials
	// contains filtered or unexported fields
}

func DecodeUrl

func DecodeUrl(u *url.URL) (ap *AccessPoint, err error)

func Lookup

func Lookup(ep string) (ap *AccessPoint, ok bool)

func (*AccessPoint) Session

func (ap *AccessPoint) Session() (ssn *session.Session, err error)

type Location

type Location struct {
	Bucket *string
	Key    *string
}

func ResolveUrl

func ResolveUrl(s3url string) (ssn *session.Session, loc Location, err error)

Jump to

Keyboard shortcuts

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