gcloud

package
v0.0.0-...-63fa78c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBucketPath

func IsBucketPath(s string) bool

Types

type BucketManager

type BucketManager struct {
	Bucket string
	// contains filtered or unexported fields
}

func GetBucketManager

func GetBucketManager(bn string) (*BucketManager, error)

func (*BucketManager) BucketDownload

func (bm *BucketManager) BucketDownload(src *BucketPath) ([]byte, error)

func (*BucketManager) BucketDownloadFile

func (bm *BucketManager) BucketDownloadFile(dst string, src *BucketPath) error

func (*BucketManager) BucketUpload

func (bm *BucketManager) BucketUpload(dst *BucketPath, data []byte) error

func (*BucketManager) BucketUploadFile

func (bm *BucketManager) BucketUploadFile(dst *BucketPath, src string) error

func (*BucketManager) GetBucketIterator

func (bm *BucketManager) GetBucketIterator(prefix string) (*storage.ObjectIterator, error)

type BucketPath

type BucketPath struct {
	Bucket  string
	Subpath string
	// contains filtered or unexported fields
}

func NewBucketPath

func NewBucketPath(s string) (*BucketPath, error)

Jump to

Keyboard shortcuts

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