gcs

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 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 Config

type Config struct {
	AuthJsonPath string
	ProjectId    string
	Host         string
	Bucket       []string
}

type GoogleCloudStorage

type GoogleCloudStorage struct {
	Cfg Config
}

type GoogleCloudStorageAdapter

type GoogleCloudStorageAdapter struct {
	Storage *GoogleCloudStorage
}

func (*GoogleCloudStorageAdapter) Download

func (ga *GoogleCloudStorageAdapter) Download(ctx context.Context, b string, path string) (io.Reader, error)

func (*GoogleCloudStorageAdapter) Init

func (ga *GoogleCloudStorageAdapter) Init() error

func (*GoogleCloudStorageAdapter) Upload

func (ga *GoogleCloudStorageAdapter) Upload(ctx context.Context, b string, path string, object io.Reader) error

Jump to

Keyboard shortcuts

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