gcs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSClient

type GCSClient struct {
	*storage.Storage
}

GCSClient is client for Google Cloud Storage.

func New

func New() (GCSClient, error)

func (GCSClient) CheckBucket

func (c GCSClient) CheckBucket(bucketName string) error

CheckBucket checks bucket existence.

func (GCSClient) IsExists

func (c GCSClient) IsExists(opt provider.FileOption) (isExist bool, err error)

IsExists checks file existence from GCS Bucket.

func (GCSClient) UploadFromLocalFile

func (c GCSClient) UploadFromLocalFile(opt provider.FileOption) error

UploadFromLocalFile uploads from local file to GCS Bucket.

Jump to

Keyboard shortcuts

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