Documentation ¶
Index ¶
- type InventoryApp
- func (_m *InventoryApp) AddDevice(ctx context.Context, d *model.Device) error
- func (_m *InventoryApp) CheckAlerts(ctx context.Context, deviceId string) (int, error)
- func (_m *InventoryApp) CreateTenant(ctx context.Context, tenant model.NewTenant) error
- func (_m *InventoryApp) DeleteDevice(ctx context.Context, id model.DeviceID) error
- func (_m *InventoryApp) DeleteDevices(ctx context.Context, ids []model.DeviceID) (*model.UpdateResult, error)
- func (_m *InventoryApp) DeleteGroup(ctx context.Context, groupName model.GroupName) (*model.UpdateResult, error)
- func (_m *InventoryApp) GetDevice(ctx context.Context, id model.DeviceID) (*model.Device, error)
- func (_m *InventoryApp) GetDeviceGroup(ctx context.Context, id model.DeviceID) (model.GroupName, error)
- func (_m *InventoryApp) GetFiltersAttributes(ctx context.Context) ([]model.FilterAttribute, error)
- func (_m *InventoryApp) HealthCheck(ctx context.Context) error
- func (_m *InventoryApp) ListDevices(ctx context.Context, q store.ListQuery) ([]model.Device, int, error)
- func (_m *InventoryApp) ListDevicesByGroup(ctx context.Context, group model.GroupName, skip int, limit int) ([]model.DeviceID, int, error)
- func (_m *InventoryApp) ListGroups(ctx context.Context, filters []model.FilterPredicate) ([]model.GroupName, error)
- func (_m *InventoryApp) ReplaceAttributes(ctx context.Context, id model.DeviceID, upsertAttrs model.DeviceAttributes, ...) error
- func (_m *InventoryApp) SearchDevices(ctx context.Context, searchParams model.SearchParams) ([]model.Device, int, error)
- func (_m *InventoryApp) UnsetDeviceGroup(ctx context.Context, id model.DeviceID, groupName model.GroupName) error
- func (_m *InventoryApp) UnsetDevicesGroup(ctx context.Context, deviceIDs []model.DeviceID, groupName model.GroupName) (*model.UpdateResult, error)
- func (_m *InventoryApp) UpdateDeviceGroup(ctx context.Context, id model.DeviceID, group model.GroupName) error
- func (_m *InventoryApp) UpdateDevicesGroup(ctx context.Context, ids []model.DeviceID, group model.GroupName) (*model.UpdateResult, error)
- func (_m *InventoryApp) UpsertAttributes(ctx context.Context, id model.DeviceID, attrs model.DeviceAttributes) error
- func (_m *InventoryApp) UpsertAttributesWithUpdated(ctx context.Context, id model.DeviceID, attrs model.DeviceAttributes, ...) error
- func (_m *InventoryApp) UpsertDevicesStatuses(ctx context.Context, devices []model.DeviceUpdate, ...) (*model.UpdateResult, error)
- func (_m *InventoryApp) WithDevicemonitor(client devicemonitor.Client) inv.InventoryApp
- func (_m *InventoryApp) WithLimits(attributes int, tags int) inv.InventoryApp
- func (_m *InventoryApp) WithReporting(c workflows.Client) inv.InventoryApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InventoryApp ¶
InventoryApp is an autogenerated mock type for the InventoryApp type
func (*InventoryApp) CheckAlerts ¶
CheckAlerts provides a mock function with given fields: ctx, deviceId
func (*InventoryApp) CreateTenant ¶
CreateTenant provides a mock function with given fields: ctx, tenant
func (*InventoryApp) DeleteDevice ¶
DeleteDevice provides a mock function with given fields: ctx, id
func (*InventoryApp) DeleteDevices ¶
func (_m *InventoryApp) DeleteDevices(ctx context.Context, ids []model.DeviceID) (*model.UpdateResult, error)
DeleteDevices provides a mock function with given fields: ctx, ids
func (*InventoryApp) DeleteGroup ¶
func (_m *InventoryApp) DeleteGroup(ctx context.Context, groupName model.GroupName) (*model.UpdateResult, error)
DeleteGroup provides a mock function with given fields: ctx, groupName
func (*InventoryApp) GetDeviceGroup ¶
func (_m *InventoryApp) GetDeviceGroup(ctx context.Context, id model.DeviceID) (model.GroupName, error)
GetDeviceGroup provides a mock function with given fields: ctx, id
func (*InventoryApp) GetFiltersAttributes ¶
func (_m *InventoryApp) GetFiltersAttributes(ctx context.Context) ([]model.FilterAttribute, error)
GetFiltersAttributes provides a mock function with given fields: ctx
func (*InventoryApp) HealthCheck ¶
func (_m *InventoryApp) HealthCheck(ctx context.Context) error
HealthCheck provides a mock function with given fields: ctx
func (*InventoryApp) ListDevices ¶
func (_m *InventoryApp) ListDevices(ctx context.Context, q store.ListQuery) ([]model.Device, int, error)
ListDevices provides a mock function with given fields: ctx, q
func (*InventoryApp) ListDevicesByGroup ¶
func (_m *InventoryApp) ListDevicesByGroup(ctx context.Context, group model.GroupName, skip int, limit int) ([]model.DeviceID, int, error)
ListDevicesByGroup provides a mock function with given fields: ctx, group, skip, limit
func (*InventoryApp) ListGroups ¶
func (_m *InventoryApp) ListGroups(ctx context.Context, filters []model.FilterPredicate) ([]model.GroupName, error)
ListGroups provides a mock function with given fields: ctx, filters
func (*InventoryApp) ReplaceAttributes ¶
func (_m *InventoryApp) ReplaceAttributes(ctx context.Context, id model.DeviceID, upsertAttrs model.DeviceAttributes, scope string, etag string) error
ReplaceAttributes provides a mock function with given fields: ctx, id, upsertAttrs, scope, etag
func (*InventoryApp) SearchDevices ¶
func (_m *InventoryApp) SearchDevices(ctx context.Context, searchParams model.SearchParams) ([]model.Device, int, error)
SearchDevices provides a mock function with given fields: ctx, searchParams
func (*InventoryApp) UnsetDeviceGroup ¶
func (_m *InventoryApp) UnsetDeviceGroup(ctx context.Context, id model.DeviceID, groupName model.GroupName) error
UnsetDeviceGroup provides a mock function with given fields: ctx, id, groupName
func (*InventoryApp) UnsetDevicesGroup ¶
func (_m *InventoryApp) UnsetDevicesGroup(ctx context.Context, deviceIDs []model.DeviceID, groupName model.GroupName) (*model.UpdateResult, error)
UnsetDevicesGroup provides a mock function with given fields: ctx, deviceIDs, groupName
func (*InventoryApp) UpdateDeviceGroup ¶
func (_m *InventoryApp) UpdateDeviceGroup(ctx context.Context, id model.DeviceID, group model.GroupName) error
UpdateDeviceGroup provides a mock function with given fields: ctx, id, group
func (*InventoryApp) UpdateDevicesGroup ¶
func (_m *InventoryApp) UpdateDevicesGroup(ctx context.Context, ids []model.DeviceID, group model.GroupName) (*model.UpdateResult, error)
UpdateDevicesGroup provides a mock function with given fields: ctx, ids, group
func (*InventoryApp) UpsertAttributes ¶
func (_m *InventoryApp) UpsertAttributes(ctx context.Context, id model.DeviceID, attrs model.DeviceAttributes) error
UpsertAttributes provides a mock function with given fields: ctx, id, attrs
func (*InventoryApp) UpsertAttributesWithUpdated ¶
func (_m *InventoryApp) UpsertAttributesWithUpdated(ctx context.Context, id model.DeviceID, attrs model.DeviceAttributes, scope string, etag string) error
UpsertAttributesWithUpdated provides a mock function with given fields: ctx, id, attrs, scope, etag
func (*InventoryApp) UpsertDevicesStatuses ¶
func (_m *InventoryApp) UpsertDevicesStatuses(ctx context.Context, devices []model.DeviceUpdate, attrs model.DeviceAttributes) (*model.UpdateResult, error)
UpsertDevicesStatuses provides a mock function with given fields: ctx, devices, attrs
func (*InventoryApp) WithDevicemonitor ¶
func (_m *InventoryApp) WithDevicemonitor(client devicemonitor.Client) inv.InventoryApp
WithDevicemonitor provides a mock function with given fields: client
func (*InventoryApp) WithLimits ¶
func (_m *InventoryApp) WithLimits(attributes int, tags int) inv.InventoryApp
WithLimits provides a mock function with given fields: attributes, tags
func (*InventoryApp) WithReporting ¶
func (_m *InventoryApp) WithReporting(c workflows.Client) inv.InventoryApp
WithReporting provides a mock function with given fields: c