mocks

package
v1.2.2-dev.27 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 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 DeviceProfileAdder

type DeviceProfileAdder struct {
	mock.Mock
}

DeviceProfileAdder is an autogenerated mock type for the DeviceProfileAdder type

func (*DeviceProfileAdder) AddDeviceProfile

func (_m *DeviceProfileAdder) AddDeviceProfile(d models.DeviceProfile) (string, error)

AddDeviceProfile provides a mock function with given fields: d

type DeviceProfileDeleter

type DeviceProfileDeleter struct {
	mock.Mock
}

DeviceProfileDeleter is an autogenerated mock type for the DeviceProfileDeleter type

func (*DeviceProfileDeleter) DeleteDeviceProfileById

func (_m *DeviceProfileDeleter) DeleteDeviceProfileById(id string) error

DeleteDeviceProfileById provides a mock function with given fields: id

func (*DeviceProfileDeleter) GetAllDeviceProfiles

func (_m *DeviceProfileDeleter) GetAllDeviceProfiles() ([]models.DeviceProfile, error)

GetAllDeviceProfiles provides a mock function with given fields:

func (*DeviceProfileDeleter) GetAllDevices

func (_m *DeviceProfileDeleter) GetAllDevices() ([]models.Device, error)

GetAllDevices provides a mock function with given fields:

func (*DeviceProfileDeleter) GetDeviceProfileById

func (_m *DeviceProfileDeleter) GetDeviceProfileById(id string) (models.DeviceProfile, error)

GetDeviceProfileById provides a mock function with given fields: id

func (*DeviceProfileDeleter) GetDeviceProfileByName

func (_m *DeviceProfileDeleter) GetDeviceProfileByName(n string) (models.DeviceProfile, error)

GetDeviceProfileByName provides a mock function with given fields: n

func (*DeviceProfileDeleter) GetDeviceProfilesByManufacturer

func (_m *DeviceProfileDeleter) GetDeviceProfilesByManufacturer(man string) ([]models.DeviceProfile, error)

GetDeviceProfilesByManufacturer provides a mock function with given fields: man

func (*DeviceProfileDeleter) GetDeviceProfilesByManufacturerModel

func (_m *DeviceProfileDeleter) GetDeviceProfilesByManufacturerModel(man string, mod string) ([]models.DeviceProfile, error)

GetDeviceProfilesByManufacturerModel provides a mock function with given fields: man, mod

func (*DeviceProfileDeleter) GetDeviceProfilesByModel

func (_m *DeviceProfileDeleter) GetDeviceProfilesByModel(m string) ([]models.DeviceProfile, error)

GetDeviceProfilesByModel provides a mock function with given fields: m

func (*DeviceProfileDeleter) GetDeviceProfilesWithLabel

func (_m *DeviceProfileDeleter) GetDeviceProfilesWithLabel(l string) ([]models.DeviceProfile, error)

GetDeviceProfilesWithLabel provides a mock function with given fields: l

func (*DeviceProfileDeleter) GetDevicesByProfileId

func (_m *DeviceProfileDeleter) GetDevicesByProfileId(pid string) ([]models.Device, error)

GetDevicesByProfileId provides a mock function with given fields: pid

func (*DeviceProfileDeleter) GetProvisionWatchersByProfileId

func (_m *DeviceProfileDeleter) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)

GetProvisionWatchersByProfileId provides a mock function with given fields: id

type DeviceProfileLoader

type DeviceProfileLoader struct {
	mock.Mock
}

DeviceProfileLoader is an autogenerated mock type for the DeviceProfileLoader type

func (*DeviceProfileLoader) GetAllDeviceProfiles

func (_m *DeviceProfileLoader) GetAllDeviceProfiles() ([]models.DeviceProfile, error)

GetAllDeviceProfiles provides a mock function with given fields:

func (*DeviceProfileLoader) GetDeviceProfileById

func (_m *DeviceProfileLoader) GetDeviceProfileById(id string) (models.DeviceProfile, error)

GetDeviceProfileById provides a mock function with given fields: id

func (*DeviceProfileLoader) GetDeviceProfileByName

func (_m *DeviceProfileLoader) GetDeviceProfileByName(n string) (models.DeviceProfile, error)

GetDeviceProfileByName provides a mock function with given fields: n

func (*DeviceProfileLoader) GetDeviceProfilesByManufacturer

func (_m *DeviceProfileLoader) GetDeviceProfilesByManufacturer(man string) ([]models.DeviceProfile, error)

GetDeviceProfilesByManufacturer provides a mock function with given fields: man

func (*DeviceProfileLoader) GetDeviceProfilesByManufacturerModel

func (_m *DeviceProfileLoader) GetDeviceProfilesByManufacturerModel(man string, mod string) ([]models.DeviceProfile, error)

GetDeviceProfilesByManufacturerModel provides a mock function with given fields: man, mod

func (*DeviceProfileLoader) GetDeviceProfilesByModel

func (_m *DeviceProfileLoader) GetDeviceProfilesByModel(m string) ([]models.DeviceProfile, error)

GetDeviceProfilesByModel provides a mock function with given fields: m

func (*DeviceProfileLoader) GetDeviceProfilesWithLabel

func (_m *DeviceProfileLoader) GetDeviceProfilesWithLabel(l string) ([]models.DeviceProfile, error)

GetDeviceProfilesWithLabel provides a mock function with given fields: l

type DeviceProfileUpdater

type DeviceProfileUpdater struct {
	mock.Mock
}

DeviceProfileUpdater is an autogenerated mock type for the DeviceProfileUpdater type

func (*DeviceProfileUpdater) GetAllDeviceProfiles

func (_m *DeviceProfileUpdater) GetAllDeviceProfiles() ([]models.DeviceProfile, error)

GetAllDeviceProfiles provides a mock function with given fields:

func (*DeviceProfileUpdater) GetAllDevices

func (_m *DeviceProfileUpdater) GetAllDevices() ([]models.Device, error)

GetAllDevices provides a mock function with given fields:

func (*DeviceProfileUpdater) GetDeviceProfileById

func (_m *DeviceProfileUpdater) GetDeviceProfileById(id string) (models.DeviceProfile, error)

GetDeviceProfileById provides a mock function with given fields: id

func (*DeviceProfileUpdater) GetDeviceProfileByName

func (_m *DeviceProfileUpdater) GetDeviceProfileByName(n string) (models.DeviceProfile, error)

GetDeviceProfileByName provides a mock function with given fields: n

func (*DeviceProfileUpdater) GetDeviceProfilesByManufacturer

func (_m *DeviceProfileUpdater) GetDeviceProfilesByManufacturer(man string) ([]models.DeviceProfile, error)

GetDeviceProfilesByManufacturer provides a mock function with given fields: man

func (*DeviceProfileUpdater) GetDeviceProfilesByManufacturerModel

func (_m *DeviceProfileUpdater) GetDeviceProfilesByManufacturerModel(man string, mod string) ([]models.DeviceProfile, error)

GetDeviceProfilesByManufacturerModel provides a mock function with given fields: man, mod

func (*DeviceProfileUpdater) GetDeviceProfilesByModel

func (_m *DeviceProfileUpdater) GetDeviceProfilesByModel(m string) ([]models.DeviceProfile, error)

GetDeviceProfilesByModel provides a mock function with given fields: m

func (*DeviceProfileUpdater) GetDeviceProfilesWithLabel

func (_m *DeviceProfileUpdater) GetDeviceProfilesWithLabel(l string) ([]models.DeviceProfile, error)

GetDeviceProfilesWithLabel provides a mock function with given fields: l

func (*DeviceProfileUpdater) GetDevicesByProfileId

func (_m *DeviceProfileUpdater) GetDevicesByProfileId(pid string) ([]models.Device, error)

GetDevicesByProfileId provides a mock function with given fields: pid

func (*DeviceProfileUpdater) GetProvisionWatchersByProfileId

func (_m *DeviceProfileUpdater) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)

GetProvisionWatchersByProfileId provides a mock function with given fields: id

func (*DeviceProfileUpdater) UpdateDeviceProfile

func (_m *DeviceProfileUpdater) UpdateDeviceProfile(dp models.DeviceProfile) error

UpdateDeviceProfile provides a mock function with given fields: dp

type ValueDescriptorAdder

type ValueDescriptorAdder struct {
	mock.Mock
}

ValueDescriptorAdder is an autogenerated mock type for the ValueDescriptorAdder type

func (*ValueDescriptorAdder) Add

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

type ValueDescriptorUpdater

type ValueDescriptorUpdater struct {
	mock.Mock
}

ValueDescriptorUpdater is an autogenerated mock type for the ValueDescriptorUpdater type

func (*ValueDescriptorUpdater) Add

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

func (*ValueDescriptorUpdater) DeleteByName

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

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

func (*ValueDescriptorUpdater) Update

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

func (*ValueDescriptorUpdater) ValueDescriptorForName

func (_m *ValueDescriptorUpdater) ValueDescriptorForName(ctx context.Context, name string) (models.ValueDescriptor, error)

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

func (*ValueDescriptorUpdater) ValueDescriptorsUsage

func (_m *ValueDescriptorUpdater) ValueDescriptorsUsage(ctx context.Context, names []string) (map[string]bool, error)

ValueDescriptorsUsage provides a mock function with given fields: names, ctx

Jump to

Keyboard shortcuts

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