bucketrepo

package
v0.0.0-...-a9081ec Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package bucketrepo holds the repository logic associated with the bucket domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	S3Client *s3.S3
}

Repository is data/repository implementation of service layer TokenRepository

func New

func New(s3Client *s3.S3) *Repository

New is a factory for initializing Token Repositories

func (*Repository) UploadFile

func (r *Repository) UploadFile(ctx context.Context, bucketName, objName string, imageFile multipart.File) (string, error)

UploadFile upload a new file in S3 bucket

Jump to

Keyboard shortcuts

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