gcp

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

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

func Lookup

func Lookup(gsurl string) (ap *AccessPoint, loc Location, 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 {
	Bucket      string
	Prefix      string
	Credentials *google.Credentials
	// contains filtered or unexported fields
}

func (*AccessPoint) Service

func (ap *AccessPoint) Service() (svc *storage.Service, err error)

type Location

type Location struct {
	Bucket string
	Key    string
}

Jump to

Keyboard shortcuts

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