mocks

package
v1.3.1-0...-2eb6d4b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 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 DBClient

type DBClient struct {
	mock.Mock
}

DBClient is an autogenerated mock type for the DBClient type

func NewDBClient

func NewDBClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DBClient

NewDBClient creates a new instance of DBClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DBClient) AddDevice

func (_m *DBClient) AddDevice(d models.Device) (models.Device, errors.EdgeX)

AddDevice provides a mock function with given fields: d

func (*DBClient) AddDeviceProfile

func (_m *DBClient) AddDeviceProfile(e models.DeviceProfile) (models.DeviceProfile, errors.EdgeX)

AddDeviceProfile provides a mock function with given fields: e

func (*DBClient) AddDeviceService

func (_m *DBClient) AddDeviceService(ds models.DeviceService) (models.DeviceService, errors.EdgeX)

AddDeviceService provides a mock function with given fields: ds

func (*DBClient) AddProvisionWatcher

func (_m *DBClient) AddProvisionWatcher(pw models.ProvisionWatcher) (models.ProvisionWatcher, errors.EdgeX)

AddProvisionWatcher provides a mock function with given fields: pw

func (*DBClient) AllDeviceProfiles

func (_m *DBClient) AllDeviceProfiles(offset int, limit int, labels []string) ([]models.DeviceProfile, errors.EdgeX)

AllDeviceProfiles provides a mock function with given fields: offset, limit, labels

func (*DBClient) AllDeviceServices

func (_m *DBClient) AllDeviceServices(offset int, limit int, labels []string) ([]models.DeviceService, errors.EdgeX)

AllDeviceServices provides a mock function with given fields: offset, limit, labels

func (*DBClient) AllDevices

func (_m *DBClient) AllDevices(offset int, limit int, labels []string) ([]models.Device, errors.EdgeX)

AllDevices provides a mock function with given fields: offset, limit, labels

func (*DBClient) AllProvisionWatchers

func (_m *DBClient) AllProvisionWatchers(offset int, limit int, labels []string) ([]models.ProvisionWatcher, errors.EdgeX)

AllProvisionWatchers provides a mock function with given fields: offset, limit, labels

func (*DBClient) CloseSession

func (_m *DBClient) CloseSession()

CloseSession provides a mock function with given fields:

func (*DBClient) DeleteDeviceById

func (_m *DBClient) DeleteDeviceById(id string) errors.EdgeX

DeleteDeviceById provides a mock function with given fields: id

func (*DBClient) DeleteDeviceByName

func (_m *DBClient) DeleteDeviceByName(name string) errors.EdgeX

DeleteDeviceByName provides a mock function with given fields: name

func (*DBClient) DeleteDeviceProfileById

func (_m *DBClient) DeleteDeviceProfileById(id string) errors.EdgeX

DeleteDeviceProfileById provides a mock function with given fields: id

func (*DBClient) DeleteDeviceProfileByName

func (_m *DBClient) DeleteDeviceProfileByName(name string) errors.EdgeX

DeleteDeviceProfileByName provides a mock function with given fields: name

func (*DBClient) DeleteDeviceServiceById

func (_m *DBClient) DeleteDeviceServiceById(id string) errors.EdgeX

DeleteDeviceServiceById provides a mock function with given fields: id

func (*DBClient) DeleteDeviceServiceByName

func (_m *DBClient) DeleteDeviceServiceByName(name string) errors.EdgeX

DeleteDeviceServiceByName provides a mock function with given fields: name

func (*DBClient) DeleteProvisionWatcherByName

func (_m *DBClient) DeleteProvisionWatcherByName(name string) errors.EdgeX

DeleteProvisionWatcherByName provides a mock function with given fields: name

func (*DBClient) DeviceById

func (_m *DBClient) DeviceById(id string) (models.Device, errors.EdgeX)

DeviceById provides a mock function with given fields: id

func (*DBClient) DeviceByName

func (_m *DBClient) DeviceByName(name string) (models.Device, errors.EdgeX)

DeviceByName provides a mock function with given fields: name

func (*DBClient) DeviceCountByLabels

func (_m *DBClient) DeviceCountByLabels(labels []string) (uint32, errors.EdgeX)

DeviceCountByLabels provides a mock function with given fields: labels

func (*DBClient) DeviceCountByProfileName

func (_m *DBClient) DeviceCountByProfileName(profileName string) (uint32, errors.EdgeX)

DeviceCountByProfileName provides a mock function with given fields: profileName

func (*DBClient) DeviceCountByServiceName

func (_m *DBClient) DeviceCountByServiceName(serviceName string) (uint32, errors.EdgeX)

DeviceCountByServiceName provides a mock function with given fields: serviceName

func (*DBClient) DeviceIdExists

func (_m *DBClient) DeviceIdExists(id string) (bool, errors.EdgeX)

DeviceIdExists provides a mock function with given fields: id

func (*DBClient) DeviceNameExists

func (_m *DBClient) DeviceNameExists(name string) (bool, errors.EdgeX)

DeviceNameExists provides a mock function with given fields: name

func (*DBClient) DeviceProfileById

func (_m *DBClient) DeviceProfileById(id string) (models.DeviceProfile, errors.EdgeX)

DeviceProfileById provides a mock function with given fields: id

func (*DBClient) DeviceProfileByName

func (_m *DBClient) DeviceProfileByName(name string) (models.DeviceProfile, errors.EdgeX)

DeviceProfileByName provides a mock function with given fields: name

func (*DBClient) DeviceProfileCountByLabels

func (_m *DBClient) DeviceProfileCountByLabels(labels []string) (uint32, errors.EdgeX)

DeviceProfileCountByLabels provides a mock function with given fields: labels

func (*DBClient) DeviceProfileCountByManufacturer

func (_m *DBClient) DeviceProfileCountByManufacturer(manufacturer string) (uint32, errors.EdgeX)

DeviceProfileCountByManufacturer provides a mock function with given fields: manufacturer

func (*DBClient) DeviceProfileCountByManufacturerAndModel

func (_m *DBClient) DeviceProfileCountByManufacturerAndModel(manufacturer string, model string) (uint32, errors.EdgeX)

DeviceProfileCountByManufacturerAndModel provides a mock function with given fields: manufacturer, model

func (*DBClient) DeviceProfileCountByModel

func (_m *DBClient) DeviceProfileCountByModel(model string) (uint32, errors.EdgeX)

DeviceProfileCountByModel provides a mock function with given fields: model

func (*DBClient) DeviceProfileNameExists

func (_m *DBClient) DeviceProfileNameExists(name string) (bool, errors.EdgeX)

DeviceProfileNameExists provides a mock function with given fields: name

func (*DBClient) DeviceProfilesByManufacturer

func (_m *DBClient) DeviceProfilesByManufacturer(offset int, limit int, manufacturer string) ([]models.DeviceProfile, errors.EdgeX)

DeviceProfilesByManufacturer provides a mock function with given fields: offset, limit, manufacturer

func (*DBClient) DeviceProfilesByManufacturerAndModel

func (_m *DBClient) DeviceProfilesByManufacturerAndModel(offset int, limit int, manufacturer string, model string) ([]models.DeviceProfile, errors.EdgeX)

DeviceProfilesByManufacturerAndModel provides a mock function with given fields: offset, limit, manufacturer, model

func (*DBClient) DeviceProfilesByModel

func (_m *DBClient) DeviceProfilesByModel(offset int, limit int, model string) ([]models.DeviceProfile, errors.EdgeX)

DeviceProfilesByModel provides a mock function with given fields: offset, limit, model

func (*DBClient) DeviceServiceById

func (_m *DBClient) DeviceServiceById(id string) (models.DeviceService, errors.EdgeX)

DeviceServiceById provides a mock function with given fields: id

func (*DBClient) DeviceServiceByName

func (_m *DBClient) DeviceServiceByName(name string) (models.DeviceService, errors.EdgeX)

DeviceServiceByName provides a mock function with given fields: name

func (*DBClient) DeviceServiceCountByLabels

func (_m *DBClient) DeviceServiceCountByLabels(labels []string) (uint32, errors.EdgeX)

DeviceServiceCountByLabels provides a mock function with given fields: labels

func (*DBClient) DeviceServiceNameExists

func (_m *DBClient) DeviceServiceNameExists(name string) (bool, errors.EdgeX)

DeviceServiceNameExists provides a mock function with given fields: name

func (*DBClient) DevicesByProfileName

func (_m *DBClient) DevicesByProfileName(offset int, limit int, profileName string) ([]models.Device, errors.EdgeX)

DevicesByProfileName provides a mock function with given fields: offset, limit, profileName

func (*DBClient) DevicesByServiceName

func (_m *DBClient) DevicesByServiceName(offset int, limit int, name string) ([]models.Device, errors.EdgeX)

DevicesByServiceName provides a mock function with given fields: offset, limit, name

func (*DBClient) ProvisionWatcherById

func (_m *DBClient) ProvisionWatcherById(id string) (models.ProvisionWatcher, errors.EdgeX)

ProvisionWatcherById provides a mock function with given fields: id

func (*DBClient) ProvisionWatcherByName

func (_m *DBClient) ProvisionWatcherByName(name string) (models.ProvisionWatcher, errors.EdgeX)

ProvisionWatcherByName provides a mock function with given fields: name

func (*DBClient) ProvisionWatcherCountByLabels

func (_m *DBClient) ProvisionWatcherCountByLabels(labels []string) (uint32, errors.EdgeX)

ProvisionWatcherCountByLabels provides a mock function with given fields: labels

func (*DBClient) ProvisionWatcherCountByProfileName

func (_m *DBClient) ProvisionWatcherCountByProfileName(name string) (uint32, errors.EdgeX)

ProvisionWatcherCountByProfileName provides a mock function with given fields: name

func (*DBClient) ProvisionWatcherCountByServiceName

func (_m *DBClient) ProvisionWatcherCountByServiceName(name string) (uint32, errors.EdgeX)

ProvisionWatcherCountByServiceName provides a mock function with given fields: name

func (*DBClient) ProvisionWatchersByProfileName

func (_m *DBClient) ProvisionWatchersByProfileName(offset int, limit int, name string) ([]models.ProvisionWatcher, errors.EdgeX)

ProvisionWatchersByProfileName provides a mock function with given fields: offset, limit, name

func (*DBClient) ProvisionWatchersByServiceName

func (_m *DBClient) ProvisionWatchersByServiceName(offset int, limit int, name string) ([]models.ProvisionWatcher, errors.EdgeX)

ProvisionWatchersByServiceName provides a mock function with given fields: offset, limit, name

func (*DBClient) UpdateDevice

func (_m *DBClient) UpdateDevice(d models.Device) errors.EdgeX

UpdateDevice provides a mock function with given fields: d

func (*DBClient) UpdateDeviceProfile

func (_m *DBClient) UpdateDeviceProfile(e models.DeviceProfile) errors.EdgeX

UpdateDeviceProfile provides a mock function with given fields: e

func (*DBClient) UpdateDeviceService

func (_m *DBClient) UpdateDeviceService(ds models.DeviceService) errors.EdgeX

UpdateDeviceService provides a mock function with given fields: ds

func (*DBClient) UpdateProvisionWatcher

func (_m *DBClient) UpdateProvisionWatcher(pw models.ProvisionWatcher) errors.EdgeX

UpdateProvisionWatcher provides a mock function with given fields: pw

type UnitsOfMeasure

type UnitsOfMeasure struct {
	mock.Mock
}

UnitsOfMeasure is an autogenerated mock type for the UnitsOfMeasure type

func (*UnitsOfMeasure) Validate

func (_m *UnitsOfMeasure) Validate(_a0 string) bool

Validate provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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