miniorepo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistRepository

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

func New

func New() *PersistRepository

func (*PersistRepository) CreateSlicingUpload

func (r *PersistRepository) CreateSlicingUpload(ctx context.Context, bucketName, objectName string, options minio.PutObjectOptions) (uploadId string, err error)

func (*PersistRepository) GetObjectHash

func (r *PersistRepository) GetObjectHash(ctx context.Context, bucketName, objectName string) (string, error)

func (*PersistRepository) ListSlicingFileParts

func (r *PersistRepository) ListSlicingFileParts(ctx context.Context, bucketName, objectName, uploadId string, partsNum int64) (minio.ListObjectPartsResult, error)

func (*PersistRepository) MergeSlices

func (r *PersistRepository) MergeSlices(ctx context.Context, bucketName, objectName, uploadId string, parts []minio.CompletePart) error

func (*PersistRepository) PreSignGetUrl

func (r *PersistRepository) PreSignGetUrl(ctx context.Context, bucketName, objectName, fileName string, expireSeconds int64) (string, error)

func (*PersistRepository) PreSignPutUrl

func (r *PersistRepository) PreSignPutUrl(ctx context.Context, bucketName, objectName string, expireSeconds int64) (string, error)

func (*PersistRepository) PreSignSlicingPutUrl

func (r *PersistRepository) PreSignSlicingPutUrl(ctx context.Context, bucketName, objectName, uploadId string, parts int64) (string, error)

Jump to

Keyboard shortcuts

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