mocks

package
v0.0.71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	mock.Mock
}

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) Close

func (_m *Bucket) Close() error

Close provides a mock function with given fields:

func (*Bucket) Delete

func (_m *Bucket) Delete(objectName string) error

Delete provides a mock function with given fields: objectName

func (*Bucket) Download

func (_m *Bucket) Download(objectName string, localPath string) error

Download provides a mock function with given fields: objectName, localPath

func (*Bucket) Exists

func (_m *Bucket) Exists(objectName string) (bool, error)

Exists provides a mock function with given fields: objectName

func (*Bucket) Name

func (_m *Bucket) Name() string

Name provides a mock function with given fields:

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) Read

func (_m *Bucket) Read(objectName string) ([]byte, error)

Read provides a mock function with given fields: objectName

func (*Bucket) Update

func (_m *Bucket) Update(objectName string, attrs ...object.AttrSetter) error

Update provides a mock function with given fields: objectName, attrs

func (*Bucket) Upload

func (_m *Bucket) Upload(localPath string, objectName string, attrs ...object.AttrSetter) error

Upload provides a mock function with given fields: localPath, objectName, attrs

func (*Bucket) Write

func (_m *Bucket) Write(objectName string, content []byte, attrs ...object.AttrSetter) error

Write provides a mock function with given fields: objectName, content, attrs

type Locker

type Locker struct {
	mock.Mock
}

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) Lock

func (_m *Locker) Lock() (int64, error)

Lock provides a mock function with given fields:

func (*Locker) ObjectName

func (_m *Locker) ObjectName() string

ObjectName provides a mock function with given fields:

func (*Locker) Unlock

func (_m *Locker) Unlock(lockId int64) error

Unlock provides a mock function with given fields: lockId

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL