repo

package
v0.0.0-...-7aaaf19 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPGShareToken

func NewPGShareToken(ctx context.Context, db *sql.DB) (*pgShareToken, error)

Types

type MinioAdapter

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

represent blob storage

func NewMinioBlob

func NewMinioBlob(cli *minio.Client) *MinioAdapter

func (*MinioAdapter) CreateBucket

func (s *MinioAdapter) CreateBucket(ctx context.Context, bucketName string) (any, error)

func (*MinioAdapter) Delete

func (s *MinioAdapter) Delete(ctx context.Context, bucketName, key string) error

func (*MinioAdapter) Get

func (s *MinioAdapter) Get(ctx context.Context, bucketName, filename string) (*blob.Object, error)

func (*MinioAdapter) GetShareUrl

func (s *MinioAdapter) GetShareUrl(bucket, key string) blob.ShareFunc

func (*MinioAdapter) GetUsage

func (s *MinioAdapter) GetUsage(ctx context.Context, bucket string) (int64, error)

func (*MinioAdapter) Info

func (s *MinioAdapter) Info(ctx context.Context, bucketName, fileName string) (*blob.Info, error)

func (*MinioAdapter) ObjectIterator

func (s *MinioAdapter) ObjectIterator(ctx context.Context, bucketName string, limit int, lastFilename string) *blob.Iterator

func (*MinioAdapter) Put

func (s *MinioAdapter) Put(ctx context.Context, bucketName, key string, file io.ReadCloser, size int64, contentType string) (*blob.Info, error)

Jump to

Keyboard shortcuts

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