mocks

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Security

func Security() (result controller.Security)

Types

type Devices

type Devices struct{}

func (*Devices) GetConcept

func (this *Devices) GetConcept(conceptId string) (result model.Concept, err error, code int)

func (*Devices) GetDevice

func (this *Devices) GetDevice(token auth.Token, id string) (devicemodel.Device, error, int)

func (*Devices) GetDeviceInfosOfDevices

func (this *Devices) GetDeviceInfosOfDevices(deviceIds []string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*Devices) GetDeviceInfosOfGroup

func (this *Devices) GetDeviceInfosOfGroup(groupId string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*Devices) GetDeviceTypeSelectables

func (this *Devices) GetDeviceTypeSelectables(criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)

func (*Devices) GetFunction

func (this *Devices) GetFunction(functionId string) (result model.Function, err error, code int)

func (*Devices) GetService

func (this *Devices) GetService(id string) (devicemodel.Service, error, int)

type SecurityMock

type SecurityMock struct{}

func (*SecurityMock) CheckBool

func (this *SecurityMock) CheckBool(token string, kind string, id string, rights string) (allowed bool, err error)

func (*SecurityMock) CheckMultiple

func (this *SecurityMock) CheckMultiple(token string, kind string, ids []string, rights string) (result map[string]bool, err error)

func (*SecurityMock) GetAdminToken

func (this *SecurityMock) GetAdminToken() (token string, err error)

func (*SecurityMock) List

func (this *SecurityMock) List(token string, resource string, limit string, offset string, rights string) (result []security.ListElement, err error)

func (*SecurityMock) ListElements

func (this *SecurityMock) ListElements(token string, resource string, limit string, offset string, rights string, result interface{}) (err error)

Jump to

Keyboard shortcuts

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