mocks

package
v0.0.0-...-43137f1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryApp

type InventoryApp struct {
	mock.Mock
}

InventoryApp is an autogenerated mock type for the InventoryApp type

func (*InventoryApp) AddDevice

func (_m *InventoryApp) AddDevice(ctx context.Context, d *model.Device) error

AddDevice provides a mock function with given fields: ctx, d

func (*InventoryApp) CheckAlerts

func (_m *InventoryApp) CheckAlerts(ctx context.Context, deviceId string) (int, error)

CheckAlerts provides a mock function with given fields: ctx, deviceId

func (*InventoryApp) CreateTenant

func (_m *InventoryApp) CreateTenant(ctx context.Context, tenant model.NewTenant) error

CreateTenant provides a mock function with given fields: ctx, tenant

func (*InventoryApp) DeleteDevice

func (_m *InventoryApp) DeleteDevice(ctx context.Context, id model.DeviceID) error

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) GetDevice

func (_m *InventoryApp) GetDevice(ctx context.Context, id model.DeviceID) (*model.Device, error)

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

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

Jump to

Keyboard shortcuts

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