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 NewBucket ¶ added in v0.0.58
func NewBucket(t mockConstructorTestingTNewBucket) *Bucket
NewBucket creates a new instance of Bucket. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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
type Locker ¶
Locker is an autogenerated mock type for the Locker type
func NewLocker ¶ added in v0.0.58
func NewLocker(t mockConstructorTestingTNewLocker) *Locker
NewLocker creates a new instance of Locker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Locker) ObjectName ¶
ObjectName provides a mock function with given fields: