services

package
v0.0.0-...-a2883fb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 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 AwsService

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

func NewAwsService

func NewAwsService(cfg *config.AwsConfig) *AwsService

func (*AwsService) Client

func (s *AwsService) Client() (*s3.Client, error)

func (*AwsService) DeleteFile

func (s *AwsService) DeleteFile(fullPath string) error

func (*AwsService) GetObjects

func (s *AwsService) GetObjects(ctx context.Context) error

func (*AwsService) GetPathDefault

func (s *AwsService) GetPathDefault(fullPath string) string

func (*AwsService) ReadFile

func (s *AwsService) ReadFile(fullPath string) (*s3.GetObjectOutput, error)

func (*AwsService) UploadFile

func (s *AwsService) UploadFile(ctx context.Context, payload *entities.File) (string, error)

type BucketResponse

type BucketResponse struct {
	PathUrl string
}

Jump to

Keyboard shortcuts

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