storage

package
v0.0.0-...-43a9cef Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAWSS3Client

func CreateAWSS3Client(endpoint, accessKey, secretKey, bucketName string) *s3.S3

Types

type StorageAgent

type StorageAgent interface {
	UploadFile(ctx context.Context, file []byte, filename string) error
	DownloadFile(ctx context.Context, filename string) ([]byte, error)
}

type StorageAgentFactory

type StorageAgentFactory interface {
	NewStorageAgent() StorageAgent
}

func NewStorageAgentFactory

func NewStorageAgentFactory(isMock bool, client *s3.S3, bucketName string) StorageAgentFactory

Jump to

Keyboard shortcuts

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