gcs

package
v0.0.0-...-245a412 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

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
}

func NewStorage

func NewStorage(ctx context.Context, bucketName string) (*Storage, error)

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) Delete

func (s *Storage) Delete(filename string) error

func (*Storage) ListObjects

func (s *Storage) ListObjects() ([]string, error)

func (*Storage) Read

func (s *Storage) Read(filename string) (io.Reader, error)

func (*Storage) UploadImage

func (s *Storage) UploadImage(
	filename string,
	img goimg.Image,
	wg *sync.WaitGroup,
	semaphore semaphore.Semaphore,
	targetFormat image.ImageFormat,
)

Jump to

Keyboard shortcuts

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