gcs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCS

type GCS struct {
	// GCS Blob Storage client
	Client *storage.Client
	Config config.GCSConfig
}

Implements Storage interface using Google Cloud Storage

func New

func New(config config.GCSConfig) *GCS

New creates a new Google Cloud Storage client

func (*GCS) Delete

func (a *GCS) Delete(key string) error

func (*GCS) Get

func (a *GCS) Get(key string) ([]byte, error)

func (*GCS) List

func (a *GCS) List(prefix string) ([]string, error)

func (*GCS) Set

func (a *GCS) Set(key string, data []byte, ttl int) error

Jump to

Keyboard shortcuts

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