Documentation
¶
Index ¶
- Constants
- type AWSClient
- func (ac *AWSClient) AbortMultipartUpload(request *UploadRequest) error
- func (ac *AWSClient) CompleteMultipartUpload(request *UploadRequest, parts []*types.PartInfo, checksum string) error
- func (ac *AWSClient) CreateMultipartUpload(bucket, remotePath, fileType, storageClass string) (*UploadRequest, error)
- func (ac *AWSClient) GetObject(ctx context.Context, bucket, remotePath string, writer io.Writer) (int64, error)
- func (ac *AWSClient) HeadObject(bucket, remotePath string) (*types.ISOInfo, error)
- func (ac *AWSClient) ListMultipartUploads(bucket string) ([]*UploadRequest, error)
- func (ac *AWSClient) PutObject(bucket, remotePath, checksum, fileType, storageClass string, ...) error
- func (ac *AWSClient) Upload(partNo, length int64, request *UploadRequest, reader io.ReadSeeker, ...) (string, error)
- type UploadRequest
Constants ¶
View Source
const ( S3 = 1 Minio = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
func NewAWSClient ¶
func (*AWSClient) AbortMultipartUpload ¶
func (ac *AWSClient) AbortMultipartUpload(request *UploadRequest) error
func (*AWSClient) CompleteMultipartUpload ¶
func (*AWSClient) CreateMultipartUpload ¶
func (ac *AWSClient) CreateMultipartUpload(bucket, remotePath, fileType, storageClass string) (*UploadRequest, error)
func (*AWSClient) HeadObject ¶
func (*AWSClient) ListMultipartUploads ¶
func (ac *AWSClient) ListMultipartUploads(bucket string) ([]*UploadRequest, error)
func (*AWSClient) PutObject ¶
func (ac *AWSClient) PutObject(bucket, remotePath, checksum, fileType, storageClass string, reader io.ReadSeeker) error
func (*AWSClient) Upload ¶
func (ac *AWSClient) Upload(partNo, length int64, request *UploadRequest, reader io.ReadSeeker, checksum string) (string, error)
Click to show internal directories.
Click to hide internal directories.