Documentation ¶
Index ¶
- Variables
- type BlockStorageWrapper
- type CompletedPart
- type Object
- func (o *Object) Bucket() string
- func (o *Object) Key() string
- func (o *Object) Metadata() map[string]*string
- func (o *Object) MultipartUploadURLs(timeout time.Duration) (urls []string, uploadID string, err error)
- func (o *Object) Parts() int
- func (o *Object) ReplaceMetadata(m map[string]*string) *Object
- func (o *Object) SetMetadata(key, value string) *Object
- func (o *Object) SetValidTill(t int64) *Object
- func (o *Object) StillValid() bool
- func (o *Object) UploadURL(timeout time.Duration) (string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongInvocation = errors.New("wrong invocation").Critical()
Functions ¶
This section is empty.
Types ¶
type BlockStorageWrapper ¶
type BlockStorageWrapper interface { Name() string PreSignPutObjectURL(o *Object, timeout time.Duration) (string, error) PreSignMultipartObjectURL(o *Object, timeout time.Duration) (urls []string, uploadID string, err error) CompleteMultipartUpload(o *Object, uploadID string, parts []CompletedPart) error PreSignGetObjectURL(o *Object, timeout time.Duration) (string, error) }
type CompletedPart ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) MultipartUploadURLs ¶
func (o *Object) MultipartUploadURLs(timeout time.Duration) (urls []string, uploadID string, err error)
MultipartUploadURLs returns presigned URLs for PUT object request by parts. When all parts uploaded, call CompleteMultipartUpload to merge parts into a single file.
func (*Object) SetMetadata ¶
func (*Object) SetValidTill ¶
func (*Object) StillValid ¶
Click to show internal directories.
Click to hide internal directories.