s3

package
v0.0.0-...-9b2646f Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStore

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

func New

func New() (*BlobStore, error)

func (*BlobStore) DownloadFile

func (s *BlobStore) DownloadFile(ctx context.Context, fileName string) (*Image, error)

func (*BlobStore) UploadFile

func (s *BlobStore) UploadFile(ctx context.Context, image *Image) error

func (*BlobStore) UploadFileIfNotExists

func (s *BlobStore) UploadFileIfNotExists(ctx context.Context, image *Image) error

type Image

type Image struct {
	FileName    string
	ContentType string
	Body        []byte
}

Jump to

Keyboard shortcuts

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