blobs

package
v0.0.0-...-51b8a26 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PrefixPhotos = "photos/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Photos

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

func NewPhotos

func NewPhotos(s3Client *s3.Client, bucket string) *Photos

func (*Photos) GetPhoto

func (p *Photos) GetPhoto(ctx context.Context, name string) (*s3.GetObjectOutput, error)

GetPhoto returns an object from the photos bucket.

func (*Photos) UploadFile

func (p *Photos) UploadFile(ctx context.Context, filePath string) (string, error)

UploadFile uploads a file to the photos bucket.

Jump to

Keyboard shortcuts

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