gcpstorage

package
v0.15.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPStorage

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

GCPStorage holds the GCPStorage client

func Init

func Init(bucket string) (*GCPStorage, error)

Init initializes a GCPStorage client

func (*GCPStorage) Close

func (g *GCPStorage) Close() error

Gracefully close the GCPStorage module

func (*GCPStorage) CreateDir

func (g *GCPStorage) CreateDir(req *model.CreateFileRequest) error

CreateDir creates a directory in GCPStorage

func (*GCPStorage) CreateFile

func (g *GCPStorage) CreateFile(req *model.CreateFileRequest, file io.Reader) error

CreateFile creates a file in GCPStorage

func (*GCPStorage) DeleteDir

func (g *GCPStorage) DeleteDir(path string) error

DeleteDir deletes a directory in GCPStorage

func (*GCPStorage) DeleteFile

func (g *GCPStorage) DeleteFile(path string) error

DeleteFile deletes a file from GCPStorage

func (*GCPStorage) DoesExists added in v0.15.0

func (g *GCPStorage) DoesExists(path string) error

func (*GCPStorage) GetStoreType

func (g *GCPStorage) GetStoreType() utils.FileStoreType

GetStoreType returns the file store type

func (*GCPStorage) ListDir

ListDir lists a directory in GCPStorage

func (*GCPStorage) ReadFile

func (g *GCPStorage) ReadFile(path string) (*model.File, error)

ReadFile reads a file from GCPStorage

Jump to

Keyboard shortcuts

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