mocks

package
v0.0.0-...-8220f0d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) QueryObjectByVersionID

func (_m *Service) QueryObjectByVersionID(versionid []byte) ([]byte, error)

QueryObjectByVersionID provides a mock function with given fields: versionid

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) AddTransaction

func (_m *Store) AddTransaction(txkey []byte, value []byte) error

AddTransaction provides a mock function with given fields: txkey, value

func (*Store) Close

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) CommitTransaction

func (_m *Store) CommitTransaction(txnkey []byte, inobjkeys [][]byte, objs []*sbac.Object) error

CommitTransaction provides a mock function with given fields: txnkey, inobjkeys, objs

func (*Store) CreateObject

func (_m *Store) CreateObject(vid []byte, value []byte) (*sbac.Object, error)

CreateObject provides a mock function with given fields: vid, value

func (*Store) CreateObjects

func (_m *Store) CreateObjects(objs []*sbac.Object) error

CreateObjects provides a mock function with given fields: objs

func (*Store) DeactivateObjects

func (_m *Store) DeactivateObjects(keys [][]byte) error

DeactivateObjects provides a mock function with given fields: keys

func (*Store) DeleteObjects

func (_m *Store) DeleteObjects(objkeys [][]byte) error

DeleteObjects provides a mock function with given fields: objkeys

func (*Store) FinishTransaction

func (_m *Store) FinishTransaction(txnkey []byte) error

FinishTransaction provides a mock function with given fields: txnkey

func (*Store) GetObjects

func (_m *Store) GetObjects(vids [][]byte) ([]*sbac.Object, error)

GetObjects provides a mock function with given fields: vids

func (*Store) GetTransaction

func (_m *Store) GetTransaction(txkey []byte) ([]byte, bool, error)

GetTransaction provides a mock function with given fields: txkey

func (*Store) LockObjects

func (_m *Store) LockObjects(objkeys [][]byte) error

LockObjects provides a mock function with given fields: objkeys

func (*Store) TxnFinished

func (_m *Store) TxnFinished(txnkey []byte) (bool, error)

TxnFinished provides a mock function with given fields: txnkey

func (*Store) UnlockObjects

func (_m *Store) UnlockObjects(objkeys [][]byte) error

UnlockObjects provides a mock function with given fields: objkeys

Jump to

Keyboard shortcuts

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