mocks

package
v1.2.2-dev.64 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceClient

type DeviceClient struct {
	mock.Mock
}

DeviceClient is an autogenerated mock type for the DeviceClient type

func (*DeviceClient) Add

func (_m *DeviceClient) Add(ctx context.Context, dev *models.Device) (string, error)

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

func (*DeviceClient) CheckForDevice

func (_m *DeviceClient) CheckForDevice(ctx context.Context, token string) (models.Device, error)

CheckForDevice provides a mock function with given fields: ctx, token

func (*DeviceClient) Delete

func (_m *DeviceClient) Delete(ctx context.Context, id string) error

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

func (*DeviceClient) DeleteByName

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

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

func (*DeviceClient) Device

func (_m *DeviceClient) Device(ctx context.Context, id string) (models.Device, error)

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

func (*DeviceClient) DeviceForName

func (_m *DeviceClient) DeviceForName(ctx context.Context, name string) (models.Device, error)

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

func (*DeviceClient) Devices

func (_m *DeviceClient) Devices(ctx context.Context) ([]models.Device, error)

Devices provides a mock function with given fields: ctx

func (*DeviceClient) DevicesByLabel

func (_m *DeviceClient) DevicesByLabel(ctx context.Context, label string) ([]models.Device, error)

DevicesByLabel provides a mock function with given fields: ctx, label

func (*DeviceClient) DevicesForProfile

func (_m *DeviceClient) DevicesForProfile(ctx context.Context, profileid string) ([]models.Device, error)

DevicesForProfile provides a mock function with given fields: ctx, profileid

func (*DeviceClient) DevicesForProfileByName

func (_m *DeviceClient) DevicesForProfileByName(ctx context.Context, profileName string) ([]models.Device, error)

DevicesForProfileByName provides a mock function with given fields: ctx, profileName

func (*DeviceClient) DevicesForService

func (_m *DeviceClient) DevicesForService(ctx context.Context, serviceid string) ([]models.Device, error)

DevicesForService provides a mock function with given fields: ctx, serviceid

func (*DeviceClient) DevicesForServiceByName

func (_m *DeviceClient) DevicesForServiceByName(ctx context.Context, serviceName string) ([]models.Device, error)

DevicesForServiceByName provides a mock function with given fields: ctx, serviceName

func (*DeviceClient) Update

func (_m *DeviceClient) Update(ctx context.Context, dev models.Device) error

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

func (*DeviceClient) UpdateAdminState

func (_m *DeviceClient) UpdateAdminState(ctx context.Context, id string, adminState admin.UpdateRequest) error

UpdateAdminState provides a mock function with given fields: ctx, id, adminState

func (*DeviceClient) UpdateAdminStateByName

func (_m *DeviceClient) UpdateAdminStateByName(ctx context.Context, name string, adminState admin.UpdateRequest) error

UpdateAdminStateByName provides a mock function with given fields: ctx, name, adminState

func (*DeviceClient) UpdateLastConnected

func (_m *DeviceClient) UpdateLastConnected(ctx context.Context, id string, time int64) error

UpdateLastConnected provides a mock function with given fields: ctx, id, time

func (*DeviceClient) UpdateLastConnectedByName

func (_m *DeviceClient) UpdateLastConnectedByName(ctx context.Context, name string, time int64) error

UpdateLastConnectedByName provides a mock function with given fields: ctx, name, time

func (*DeviceClient) UpdateLastReported

func (_m *DeviceClient) UpdateLastReported(ctx context.Context, id string, time int64) error

UpdateLastReported provides a mock function with given fields: ctx, id, time

func (*DeviceClient) UpdateLastReportedByName

func (_m *DeviceClient) UpdateLastReportedByName(ctx context.Context, name string, time int64) error

UpdateLastReportedByName provides a mock function with given fields: ctx, name, time

func (*DeviceClient) UpdateOpState

func (_m *DeviceClient) UpdateOpState(ctx context.Context, id string, opState operating.UpdateRequest) error

UpdateOpState provides a mock function with given fields: ctx, id, opState

func (*DeviceClient) UpdateOpStateByName

func (_m *DeviceClient) UpdateOpStateByName(ctx context.Context, name string, opState operating.UpdateRequest) error

UpdateOpStateByName provides a mock function with given fields: ctx, name, opState

type HttpCaller

type HttpCaller struct {
	mock.Mock
}

HttpCaller is an autogenerated mock type for the HttpCaller type

func (*HttpCaller) Do

func (_m *HttpCaller) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

Jump to

Keyboard shortcuts

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