Documentation ¶
Overview ¶
Copyright 2017 Northern.tech AS
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type InventoryApp
- func (_m *InventoryApp) AddDevice(ctx context.Context, d *model.Device) error
- func (_m *InventoryApp) DeleteDevice(ctx context.Context, id model.DeviceID) 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) ListDevices(ctx context.Context, skip int, limit int, filters []store.Filter, ...) ([]model.Device, error)
- func (_m *InventoryApp) ListDevicesByGroup(ctx context.Context, group model.GroupName, skip int, limit int) ([]model.DeviceID, error)
- func (_m *InventoryApp) ListGroups(ctx context.Context) ([]model.GroupName, error)
- func (_m *InventoryApp) UnsetDeviceGroup(ctx context.Context, id model.DeviceID, groupName model.GroupName) error
- func (_m *InventoryApp) UpdateDeviceGroup(ctx context.Context, id model.DeviceID, group model.GroupName) error
- func (_m *InventoryApp) UpsertAttributes(ctx context.Context, id model.DeviceID, attrs model.DeviceAttributes) error
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) DeleteDevice ¶
DeleteDevice 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) ListDevices ¶
func (_m *InventoryApp) ListDevices(ctx context.Context, skip int, limit int, filters []store.Filter, sort *store.Sort, hasGroup *bool) ([]model.Device, error)
ListDevices provides a mock function with given fields: ctx, skip, limit, filters, sort, hasGroup
func (*InventoryApp) ListDevicesByGroup ¶
func (_m *InventoryApp) ListDevicesByGroup(ctx context.Context, group model.GroupName, skip int, limit int) ([]model.DeviceID, error)
ListDevicesByGroup provides a mock function with given fields: ctx, group, skip, limit
func (*InventoryApp) ListGroups ¶
ListGroups provides a mock function with given fields: ctx
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) 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) 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