gcs

package
v0.2.47 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new GCS storage backend

Types

type Storage

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

Storage implements ImageStorage for Google Cloud Storage

func (*Storage) Delete

func (s *Storage) Delete(ctx context.Context, url string) error

Delete removes an image from GCS

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, url string) ([]byte, error)

Get retrieves image data from GCS

func (*Storage) Name

func (s *Storage) Name() string

Name returns the storage backend name

func (*Storage) Store

Store saves an image to GCS and returns an accessible URL

Jump to

Keyboard shortcuts

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