Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageService ¶
StorageService encapsulates the Google Cloud Storage client and related operations.
func NewStorageService ¶
func NewStorageService(ctx context.Context, bucketName string) (*StorageService, error)
NewStorageService initializes a new storage service with the provided Google Cloud Storage bucket.
func (*StorageService) ListImages ¶
func (s *StorageService) ListImages(ctx context.Context) ([]string, error)
ListImages retrieves a list of image URLs from the cloud storage.
func (*StorageService) UploadImage ¶
func (s *StorageService) UploadImage(ctx context.Context, fileName string, imageData io.Reader) (string, error)
UploadImage uploads an image to the cloud storage and returns its URL.
Click to show internal directories.
Click to hide internal directories.