gcpstorage

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 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(connection, endpoint 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(project string, req *model.CreateFileRequest) error

CreateDir creates a directory in GCPStorage

func (*GCPStorage) CreateFile

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

CreateFile creates a file in GCPStorage

func (*GCPStorage) DeleteDir

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

DeleteDir deletes a directory in GCPStorage

func (*GCPStorage) DeleteFile

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

DeleteFile deletes a file from GCPStorage

func (*GCPStorage) GetStoreType

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

GetStoreType returns the file store type

func (*GCPStorage) ListDir

func (g *GCPStorage) ListDir(project string, req *model.ListFilesRequest) ([]*model.ListFilesResponse, error)

ListDir lists a directory in GCPStorage

func (*GCPStorage) ReadFile

func (g *GCPStorage) ReadFile(project, 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