gcs

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.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 Storage

type Storage struct {
	Bucket                string `mapstructure:"bucket"`
	CredentialsJsonString string `mapstructure:"credentials_json"`
	Client                *storage.Client
}

func NewStorage

func NewStorage(c map[string]any) (*Storage, error)

func (*Storage) Delete

func (s *Storage) Delete(path string) error

func (*Storage) Download

func (s *Storage) Download(path string, w *os.File) error

func (*Storage) Upload

func (s *Storage) Upload(path string, r io.Reader) error

Jump to

Keyboard shortcuts

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