gcs

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const RandomKey = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Key    interface{}
	Bucket string
	Prefix string
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func Configure

func Configure(e Endpoint) (Provider, error)

func (Provider) Download

func (p Provider) Download(path string) (provider.Downloader, error)

func (Provider) Expunge

func (p Provider) Expunge(path string) error

func (Provider) Upload

func (p Provider) Upload(hint string) (provider.Uploader, error)

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

func (*Uploader) Cancel

func (out *Uploader) Cancel() error

func (*Uploader) Close

func (out *Uploader) Close() error

func (*Uploader) Path

func (out *Uploader) Path() string

func (*Uploader) Write

func (out *Uploader) Write(b []byte) (int, error)

func (*Uploader) WroteCompressed

func (out *Uploader) WroteCompressed() int64

func (*Uploader) WroteUncompressed

func (out *Uploader) WroteUncompressed() int64

Jump to

Keyboard shortcuts

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