minio

package
v0.0.0-...-066287a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Minio

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

func NewMinio

func NewMinio(core *minio.Core) *Minio

func (*Minio) CreateSlicingUpload

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

CreateSlicingUpload creates a new multipart upload

func (*Minio) GetObjectHash

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

GetObjectHash returns the hash of an object

func (*Minio) ListSlicingFileParts

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

ListSlicingFileParts lists the parts of a multipart upload

func (*Minio) MergeSlices

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

MergeSlices merges the parts of a multipart upload

func (*Minio) PreSignGetUrl

func (r *Minio) PreSignGetUrl(ctx context.Context, bucketName, objectName, fileName string, expire time.Duration) (string, error)

PreSignGetUrl returns a pre-signed URL for downloading an object

func (*Minio) PreSignPutUrl

func (r *Minio) PreSignPutUrl(ctx context.Context, bucketName, objectName string, expire time.Duration) (string, error)

PreSignPutUrl returns a pre-signed URL for uploading an object

func (*Minio) PreSignSlicingPutUrl

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

PreSignSlicingPutUrl returns a pre-signed URL for uploading a part of a multipart upload

Jump to

Keyboard shortcuts

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