mocks

package
v0.0.0-...-e4c96ca Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2017 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

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

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

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

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

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

func (_m *InventoryApp) ListGroups(ctx context.Context) ([]model.GroupName, error)

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

Jump to

Keyboard shortcuts

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