storage

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

TODO: Add interface, abstract out Gstorage

func NewClient

func NewClient(bucketName string) (*Client, error)

NewClient inits a new Client accessing to GCP

func NewInitClient

func NewInitClient() *Client

NewInitClient returns nil of client is not initialized

func (*Client) LoadFile

func (c *Client) LoadFile(name string) (data []byte, err error)

Loadfile loads file from GCP

func (*Client) SaveFile

func (c *Client) SaveFile(name string, srcFile string) (err error)

Savefile save srcFile to GCP

Jump to

Keyboard shortcuts

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