Documentation ¶
Index ¶
- type Bucket
- func (_m *Bucket) Attrs(objectName string) (*storage.ObjectAttrs, error)
- func (_m *Bucket) Close() error
- func (_m *Bucket) Delete(objectName string) error
- func (_m *Bucket) Download(objectName string, localPath string) error
- func (_m *Bucket) Exists(objectName string) (bool, error)
- func (_m *Bucket) Name() string
- func (_m *Bucket) NewLocker(objectName string, maxWait time.Duration, options ...bucket.LockerOption) bucket.Locker
- func (_m *Bucket) Read(objectName string) ([]byte, error)
- func (_m *Bucket) Update(objectName string, attrs ...object.AttrSetter) error
- func (_m *Bucket) Upload(localPath string, objectName string, attrs ...object.AttrSetter) error
- func (_m *Bucket) Write(objectName string, content []byte, attrs ...object.AttrSetter) error
- type Locker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
Bucket is an autogenerated mock type for the Bucket type
func (*Bucket) Attrs ¶
func (_m *Bucket) Attrs(objectName string) (*storage.ObjectAttrs, error)
Attrs provides a mock function with given fields: objectName
func (*Bucket) Download ¶
Download provides a mock function with given fields: objectName, localPath
func (*Bucket) NewLocker ¶
func (_m *Bucket) NewLocker(objectName string, maxWait time.Duration, options ...bucket.LockerOption) bucket.Locker
NewLocker provides a mock function with given fields: objectName, maxWait, options
func (*Bucket) Update ¶
func (_m *Bucket) Update(objectName string, attrs ...object.AttrSetter) error
Update provides a mock function with given fields: objectName, attrs
Click to show internal directories.
Click to hide internal directories.