gcs

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package gcs implements a storage backend saving files in GCS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage implements the storage.Storage interface for GCS storage

func New

func New(bucketURI string) (*Storage, error)

New returns a new GCS storage backend

func (Storage) GetFile

func (s Storage) GetFile(ctx context.Context, cachePath string) (io.ReadSeekCloser, error)

GetFile implements the storage.Storage GetFile method

func (Storage) LoadMeta

func (s Storage) LoadMeta(ctx context.Context, cachePath string) (*storage.Meta, error)

LoadMeta implements the storage.Storage LoadMeta method

func (Storage) StoreFile

func (s Storage) StoreFile(ctx context.Context, cachePath string, metadata *storage.Meta, data io.Reader) error

StoreFile implements the storage.Storage StoreFile method

Jump to

Keyboard shortcuts

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