Documentation ¶
Index ¶
- type Minio
- func (r *Minio) CreateSlicingUpload(ctx context.Context, bucketName, objectName string, ...) (uploadId string, err error)
- func (r *Minio) GetObjectHash(ctx context.Context, bucketName, objectName string) (string, error)
- func (r *Minio) ListSlicingFileParts(ctx context.Context, bucketName, objectName, uploadId string, partsNum int64) (minio.ListObjectPartsResult, error)
- func (r *Minio) MergeSlices(ctx context.Context, bucketName, objectName, uploadId string, ...) error
- func (r *Minio) PreSignGetUrl(ctx context.Context, bucketName, objectName, fileName string, ...) (string, error)
- func (r *Minio) PreSignPutUrl(ctx context.Context, bucketName, objectName string, expire time.Duration) (string, error)
- func (r *Minio) PreSignSlicingPutUrl(ctx context.Context, bucketName, objectName, uploadId string, parts int64) (string, error)
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 (*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 ¶
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
Click to show internal directories.
Click to hide internal directories.