mocks

package
v0.0.0-...-1a0b003 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	mock.Mock
}

DataStore is an autogenerated mock type for the DataStore type

func (*DataStore) AllocateSession

func (_m *DataStore) AllocateSession(ctx context.Context, sess *model.Session) error

AllocateSession provides a mock function with given fields: ctx, sess

func (*DataStore) Close

func (_m *DataStore) Close() error

Close provides a mock function with given fields:

func (*DataStore) DeleteDevice

func (_m *DataStore) DeleteDevice(ctx context.Context, tenantID string, deviceID string) error

DeleteDevice provides a mock function with given fields: ctx, tenantID, deviceID

func (*DataStore) DeleteSession

func (_m *DataStore) DeleteSession(ctx context.Context, sessionID string) (*model.Session, error)

DeleteSession provides a mock function with given fields: ctx, sessionID

func (*DataStore) GetDevice

func (_m *DataStore) GetDevice(ctx context.Context, tenantID string, deviceID string) (*model.Device, error)

GetDevice provides a mock function with given fields: ctx, tenantID, deviceID

func (*DataStore) GetSession

func (_m *DataStore) GetSession(ctx context.Context, sessionID string) (*model.Session, error)

GetSession provides a mock function with given fields: ctx, sessionID

func (*DataStore) InsertControlRecording

func (_m *DataStore) InsertControlRecording(ctx context.Context, sessionID string, sessionBytes []byte) error

InsertControlRecording provides a mock function with given fields: ctx, sessionID, sessionBytes

func (*DataStore) InsertSessionRecording

func (_m *DataStore) InsertSessionRecording(ctx context.Context, sessionID string, sessionBytes []byte) error

InsertSessionRecording provides a mock function with given fields: ctx, sessionID, sessionBytes

func (*DataStore) Ping

func (_m *DataStore) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*DataStore) ProvisionDevice

func (_m *DataStore) ProvisionDevice(ctx context.Context, tenantID string, deviceID string) error

ProvisionDevice provides a mock function with given fields: ctx, tenantID, deviceID

func (*DataStore) UpsertDeviceStatus

func (_m *DataStore) UpsertDeviceStatus(ctx context.Context, tenantID string, deviceID string, status string) error

UpsertDeviceStatus provides a mock function with given fields: ctx, tenantID, deviceID, status

func (*DataStore) WriteSessionRecords

func (_m *DataStore) WriteSessionRecords(ctx context.Context, sessionID string, w io.Writer) error

GetSessionRecording provides a mock function with given fields: ctx, sessionID, w

Jump to

Keyboard shortcuts

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