Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg imgstorage.GCSConfig) (imgstorage.ImageStorage, error)
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) Store ¶
func (s *Storage) Store(ctx context.Context, image *interfaces.GeneratedImage, metadata imgstorage.StorageMetadata) (string, error)
Store saves an image to GCS and returns an accessible URL
Click to show internal directories.
Click to hide internal directories.