mocks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 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 DeviceClient

type DeviceClient struct {
	mock.Mock
}

DeviceClient is an autogenerated mock type for the DeviceClient type

func (*DeviceClient) Add

func (_m *DeviceClient) Add(dev *models.Device, ctx context.Context) (string, error)

Add provides a mock function with given fields: dev, ctx

func (*DeviceClient) CheckForDevice

func (_m *DeviceClient) CheckForDevice(token string, ctx context.Context) (models.Device, error)

CheckForDevice provides a mock function with given fields: token, ctx

func (*DeviceClient) Delete

func (_m *DeviceClient) Delete(id string, ctx context.Context) error

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

func (*DeviceClient) DeleteByName

func (_m *DeviceClient) DeleteByName(name string, ctx context.Context) error

DeleteByName provides a mock function with given fields: name, ctx

func (*DeviceClient) Device

func (_m *DeviceClient) Device(id string, ctx context.Context) (models.Device, error)

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

func (*DeviceClient) DeviceForName

func (_m *DeviceClient) DeviceForName(name string, ctx context.Context) (models.Device, error)

DeviceForName provides a mock function with given fields: name, ctx

func (*DeviceClient) Devices

func (_m *DeviceClient) Devices(ctx context.Context) ([]models.Device, error)

Devices provides a mock function with given fields: ctx

func (*DeviceClient) DevicesByLabel

func (_m *DeviceClient) DevicesByLabel(label string, ctx context.Context) ([]models.Device, error)

DevicesByLabel provides a mock function with given fields: label, ctx

func (*DeviceClient) DevicesForAddressable

func (_m *DeviceClient) DevicesForAddressable(addressableid string, ctx context.Context) ([]models.Device, error)

DevicesForAddressable provides a mock function with given fields: addressableid, ctx

func (*DeviceClient) DevicesForAddressableByName

func (_m *DeviceClient) DevicesForAddressableByName(addressableName string, ctx context.Context) ([]models.Device, error)

DevicesForAddressableByName provides a mock function with given fields: addressableName, ctx

func (*DeviceClient) DevicesForProfile

func (_m *DeviceClient) DevicesForProfile(profileid string, ctx context.Context) ([]models.Device, error)

DevicesForProfile provides a mock function with given fields: profileid, ctx

func (*DeviceClient) DevicesForProfileByName

func (_m *DeviceClient) DevicesForProfileByName(profileName string, ctx context.Context) ([]models.Device, error)

DevicesForProfileByName provides a mock function with given fields: profileName, ctx

func (*DeviceClient) DevicesForService

func (_m *DeviceClient) DevicesForService(serviceid string, ctx context.Context) ([]models.Device, error)

DevicesForService provides a mock function with given fields: serviceid, ctx

func (*DeviceClient) DevicesForServiceByName

func (_m *DeviceClient) DevicesForServiceByName(serviceName string, ctx context.Context) ([]models.Device, error)

DevicesForServiceByName provides a mock function with given fields: serviceName, ctx

func (*DeviceClient) Update

func (_m *DeviceClient) Update(dev models.Device, ctx context.Context) error

Update provides a mock function with given fields: dev, ctx

func (*DeviceClient) UpdateAdminState

func (_m *DeviceClient) UpdateAdminState(id string, adminState string, ctx context.Context) error

UpdateAdminState provides a mock function with given fields: id, adminState, ctx

func (*DeviceClient) UpdateAdminStateByName

func (_m *DeviceClient) UpdateAdminStateByName(name string, adminState string, ctx context.Context) error

UpdateAdminStateByName provides a mock function with given fields: name, adminState, ctx

func (*DeviceClient) UpdateLastConnected

func (_m *DeviceClient) UpdateLastConnected(id string, time int64, ctx context.Context) error

UpdateLastConnected provides a mock function with given fields: id, time, ctx

func (*DeviceClient) UpdateLastConnectedByName

func (_m *DeviceClient) UpdateLastConnectedByName(name string, time int64, ctx context.Context) error

UpdateLastConnectedByName provides a mock function with given fields: name, time, ctx

func (*DeviceClient) UpdateLastReported

func (_m *DeviceClient) UpdateLastReported(id string, time int64, ctx context.Context) error

UpdateLastReported provides a mock function with given fields: id, time, ctx

func (*DeviceClient) UpdateLastReportedByName

func (_m *DeviceClient) UpdateLastReportedByName(name string, time int64, ctx context.Context) error

UpdateLastReportedByName provides a mock function with given fields: name, time, ctx

func (*DeviceClient) UpdateOpState

func (_m *DeviceClient) UpdateOpState(id string, opState string, ctx context.Context) error

UpdateOpState provides a mock function with given fields: id, opState, ctx

func (*DeviceClient) UpdateOpStateByName

func (_m *DeviceClient) UpdateOpStateByName(name string, opState string, ctx context.Context) error

UpdateOpStateByName provides a mock function with given fields: name, opState, ctx

Jump to

Keyboard shortcuts

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