files

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFiles

type IFiles interface {
	List(ctx context.Context, bucket string) ([]s3.ListItem, error)
	Download(ctx context.Context, bucket, filePath string) ([]byte, error)
	Upload(ctx context.Context, bucket, fileName string, content []byte) (string, error)
	UploadStream(ctx context.Context, bucketName, filePath string, reader io.Reader) (string, error)
	Delete(ctx context.Context, bucket string, filePaths []string) error
	Exists(ctx context.Context, bucketName, filePath string) (bool, error)
	ListBuckets(ctx context.Context) ([]types.Bucket, error)
	CreateBucket(ctx context.Context, name string) error
	BucketExists(ctx context.Context, bucket string) (bool, error)
	DeleteBucket(ctx context.Context, bucket string) error
}

IFiles files interface

func New

func New(ctx context.Context, l logger.Logger, cfg *config.Config) (IFiles, error)

Jump to

Keyboard shortcuts

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