Documentation ¶
Index ¶
- Constants
- func MinIOExtractToDir(c context.Context, minioClient *Client, sourceBucket string, ...) error
- type BlockUpload
- type Client
- func (store *Client) CreateEmptyDir(ctx context.Context, filePath string) error
- func (store *Client) DownloadAOSObject(ctx context.Context, remotePath, localPath string) (err error)
- func (store *Client) GetAOSObjURL(ctx context.Context, filePath string, expires time.Duration) (u *url.URL, err error)
- func (store *Client) GetAOSObject(ctx context.Context, filePath string) (obj *minio.Object, err error)
- func (store *Client) GetObjectTags(ctx context.Context, objectName string) (map[string]string, error)
- func (store *Client) ListBuckets(ctx context.Context) ([]minio.BucketInfo, error)
- func (store *Client) ListObjects(ctx context.Context, prefix string) (<-chan minio.ObjectInfo, error)
- func (store *Client) PutObjectTags(ctx context.Context, objectName string, tagMap map[string]string) error
- func (store *Client) RemoveObject(ctx context.Context, objectName string) error
- func (store *Client) RenameObject(ctx context.Context, objectName, newBucket, newObjectName string) (minio.UploadInfo, error)
- func (store *Client) SetBucket(bucket string) *Client
- func (store *Client) StatObject(ctx context.Context, filePath string) (objInfo minio.ObjectInfo, err error)
- func (store *Client) Upload(ctx context.Context, objectName, filePath, contentType string, ...) (minio.UploadInfo, error)
- func (store *Client) UploadStream(ctx context.Context, objectName string, r io.Reader, objectSize int64, ...) (minio.UploadInfo, error)
- type MultipartUpload
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockUpload ¶
type BlockUpload struct {
// contains filtered or unexported fields
}
分块上传 (partSize>=5M)
func NewBlockUpload ¶
func NewBlockUpload(client *Client, tmpBucketName string) (*BlockUpload, error)
func (*BlockUpload) ComposeObject ¶
func (*BlockUpload) RemoveTmpBlock ¶
func (b *BlockUpload) RemoveTmpBlock(ctx context.Context)
type Client ¶
type Client struct { Host string // "ip + port" AccessKey string // 访问用户 Secret string // 访问密钥 Bucket string // 桶名称 }
func (*Client) CreateEmptyDir ¶
func (*Client) DownloadAOSObject ¶
func (*Client) GetAOSObjURL ¶
func (*Client) GetAOSObject ¶
func (*Client) GetObjectTags ¶
func (*Client) ListBuckets ¶
func (*Client) ListObjects ¶
func (*Client) PutObjectTags ¶
func (*Client) RemoveObject ¶
func (*Client) RenameObject ¶
func (*Client) StatObject ¶
type MultipartUpload ¶
type MultipartUpload struct {
// contains filtered or unexported fields
}
多部分上传 (partSize>=5M)
func NewMultipartUpload ¶
func NewMultipartUpload(client *Client, objectName string) (*MultipartUpload, error)
func (*MultipartUpload) Complate ¶
func (mpu *MultipartUpload) Complate(ctx context.Context, contentType string) (minio.ObjectInfo, error)
func (*MultipartUpload) UploadPart ¶
Click to show internal directories.
Click to hide internal directories.