mocks

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBAdapter

type DBAdapter struct {
	mock.Mock
}

DBAdapter is an autogenerated mock type for the DBAdapter type

func (*DBAdapter) CreateVolume

func (_m *DBAdapter) CreateVolume(ctx context.Context, volume *model.Volume) (*model.Volume, error)

CreateVolume provides a mock function with given fields: ctx, volume

func (*DBAdapter) DeleteVolume

func (_m *DBAdapter) DeleteVolume(ctx context.Context, id string) error

DeleteVolume provides a mock function with given fields: ctx, id

func (*DBAdapter) GetVolume

func (_m *DBAdapter) GetVolume(ctx context.Context, id string) (*model.Volume, error)

GetVolume provides a mock function with given fields: ctx, id

func (*DBAdapter) ListVolume

func (_m *DBAdapter) ListVolume(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Volume, error)

ListVolume provides a mock function with given fields: ctx, limit, offset, query

func (*DBAdapter) UpdateVolume

func (_m *DBAdapter) UpdateVolume(ctx context.Context, volume *model.Volume) (*model.Volume, error)

UpdateVolume provides a mock function with given fields: ctx, volume

Jump to

Keyboard shortcuts

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