Documentation ¶
Index ¶
- type DataStore
- func (_m *DataStore) AllocateSession(ctx context.Context, sess *model.Session) error
- func (_m *DataStore) Close() error
- func (_m *DataStore) DeleteDevice(ctx context.Context, tenantID string, deviceID string) error
- func (_m *DataStore) DeleteSession(ctx context.Context, sessionID string) (*model.Session, error)
- func (_m *DataStore) GetDevice(ctx context.Context, tenantID string, deviceID string) (*model.Device, error)
- func (_m *DataStore) GetSession(ctx context.Context, sessionID string) (*model.Session, error)
- func (_m *DataStore) InsertControlRecording(ctx context.Context, sessionID string, sessionBytes []byte) error
- func (_m *DataStore) InsertSessionRecording(ctx context.Context, sessionID string, sessionBytes []byte) error
- func (_m *DataStore) Ping(ctx context.Context) error
- func (_m *DataStore) ProvisionDevice(ctx context.Context, tenantID string, deviceID string) error
- func (_m *DataStore) UpsertDeviceStatus(ctx context.Context, tenantID string, deviceID string, status string) error
- func (_m *DataStore) WriteSessionRecords(ctx context.Context, sessionID string, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
DataStore is an autogenerated mock type for the DataStore type
func (*DataStore) AllocateSession ¶
AllocateSession provides a mock function with given fields: ctx, sess
func (*DataStore) DeleteDevice ¶
DeleteDevice provides a mock function with given fields: ctx, tenantID, deviceID
func (*DataStore) DeleteSession ¶
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 ¶
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) ProvisionDevice ¶
ProvisionDevice provides a mock function with given fields: ctx, tenantID, deviceID