gstorage

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrObjectNotExist = storage.ErrObjectNotExist
)

Functions

This section is empty.

Types

type GStorage

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

func NewGStorage

func NewGStorage(credentialsFilePath, bucket, objectsPrefix string) (*GStorage, error)

func (*GStorage) DownloadFile

func (gs *GStorage) DownloadFile(object string, destFileName string) error

DownloadFile downloads an object to a file.

func (*GStorage) UploadFile

func (gs *GStorage) UploadFile(filePath string) error

UploadFile uploads an object.

Jump to

Keyboard shortcuts

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