Documentation ¶
Index ¶
- func RemoveDuplicates[T comparable](slice []T) []T
- func RemoveDuplicatesF[T any, C comparable](slice []T, f func(T) C) []T
- type Controller
- func (this *Controller) BulkGetFilteredDevices(token string, requests model.BulkRequest) (result model.BulkResult, err error, code int)
- func (this *Controller) BulkGetFilteredDevicesV2(token string, requests model.BulkRequestV2) (result model.BulkResult, err error, code int)
- func (this *Controller) CombinedDevices(bulk model.BulkResult) (result []model.PermSearchDevice)
- func (this *Controller) CompleteBulkServices(token string, bulk model.BulkResult, request model.BulkRequest) (_ model.BulkResult, err error)
- func (this *Controller) CompleteBulkServicesV2(token string, bulk model.BulkResult, request model.BulkRequestV2) (_ model.BulkResult, err error)
- func (this *Controller) CompleteServices(token string, selectables []model.Selectable, ...) ([]model.Selectable, error)
- func (this *Controller) DeviceGroupHelper(token string, deviceIds []string, search model.DeviceGroupHelperPagination, ...) (result model.DeviceGroupHelperResult, err error, code int)
- func (this *Controller) GetAspectNode(id string, token string) (result devicemodel.AspectNode, err error)
- func (this *Controller) GetConcept(id string, token string) (c devicemodel.Concept, err error)
- func (this *Controller) GetDeviceGroupCriteria(token string, deviceTypeCache *map[string]devicemodel.DeviceType, ...) (result []devicemodel.DeviceGroupFilterCriteria, err error, code int)
- func (this *Controller) GetDeviceTypeSelectables(token string, descriptions model.FilterCriteriaAndSet) (result []devicemodel.DeviceTypeSelectable, err error)
- func (this *Controller) GetDeviceTypeSelectablesCached(token string, descriptions model.FilterCriteriaAndSet) (result []devicemodel.DeviceTypeSelectable, err error)
- func (this *Controller) GetDeviceTypeSelectablesCachedV2(token string, descriptions model.FilterCriteriaAndSet, includeIdModified bool) (result []devicemodel.DeviceTypeSelectable, err error)
- func (this *Controller) GetDeviceTypeSelectablesV2(token string, descriptions model.FilterCriteriaAndSet, includeIdModified bool) (result []devicemodel.DeviceTypeSelectable, err error)
- func (this *Controller) GetFilteredDeviceTypes(token string, criteria []client.FilterCriteria) (result []models.DeviceType, err error, code int)
- func (this *Controller) GetFilteredDevices(token string, descriptions model.FilterCriteriaAndSet, ...) (result []model.Selectable, err error, code int)
- func (this *Controller) GetFilteredDevicesV2(token string, descriptions model.FilterCriteriaAndSet, includeDevices bool, ...) (result []model.Selectable, err error, code int)
- func (this *Controller) GetFunction(id string, token string) (f devicemodel.Function, err error)
- func (this *Controller) GetFunctions(token string) (functions []devicemodel.Function, err error)
- func (this *Controller) GetProtocols(token string) (result []devicemodel.Protocol, err error, code int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](slice []T) []T
func RemoveDuplicatesF ¶
func RemoveDuplicatesF[T any, C comparable](slice []T, f func(T) C) []T
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, config configuration.Config) (*Controller, error)
func (*Controller) BulkGetFilteredDevices ¶
func (this *Controller) BulkGetFilteredDevices(token string, requests model.BulkRequest) (result model.BulkResult, err error, code int)
func (*Controller) BulkGetFilteredDevicesV2 ¶
func (this *Controller) BulkGetFilteredDevicesV2(token string, requests model.BulkRequestV2) (result model.BulkResult, err error, code int)
func (*Controller) CombinedDevices ¶
func (this *Controller) CombinedDevices(bulk model.BulkResult) (result []model.PermSearchDevice)
func (*Controller) CompleteBulkServices ¶
func (this *Controller) CompleteBulkServices(token string, bulk model.BulkResult, request model.BulkRequest) (_ model.BulkResult, err error)
func (*Controller) CompleteBulkServicesV2 ¶
func (this *Controller) CompleteBulkServicesV2(token string, bulk model.BulkResult, request model.BulkRequestV2) (_ model.BulkResult, err error)
func (*Controller) CompleteServices ¶
func (this *Controller) CompleteServices(token string, selectables []model.Selectable, filter []devicemodel.FilterCriteria) ([]model.Selectable, error)
func (*Controller) DeviceGroupHelper ¶
func (this *Controller) DeviceGroupHelper(token string, deviceIds []string, search model.DeviceGroupHelperPagination, maintainGroupUsability bool, functionBlockList []string) (result model.DeviceGroupHelperResult, err error, code int)
func (*Controller) GetAspectNode ¶
func (this *Controller) GetAspectNode(id string, token string) (result devicemodel.AspectNode, err error)
func (*Controller) GetConcept ¶
func (this *Controller) GetConcept(id string, token string) (c devicemodel.Concept, err error)
func (*Controller) GetDeviceGroupCriteria ¶
func (this *Controller) GetDeviceGroupCriteria(token string, deviceTypeCache *map[string]devicemodel.DeviceType, deviceCache *map[string]devicemodel.Device, deviceIds []string) (result []devicemodel.DeviceGroupFilterCriteria, err error, code int)
func (*Controller) GetDeviceTypeSelectables ¶
func (this *Controller) GetDeviceTypeSelectables(token string, descriptions model.FilterCriteriaAndSet) (result []devicemodel.DeviceTypeSelectable, err error)
func (*Controller) GetDeviceTypeSelectablesCached ¶
func (this *Controller) GetDeviceTypeSelectablesCached(token string, descriptions model.FilterCriteriaAndSet) (result []devicemodel.DeviceTypeSelectable, err error)
func (*Controller) GetDeviceTypeSelectablesCachedV2 ¶
func (this *Controller) GetDeviceTypeSelectablesCachedV2(token string, descriptions model.FilterCriteriaAndSet, includeIdModified bool) (result []devicemodel.DeviceTypeSelectable, err error)
func (*Controller) GetDeviceTypeSelectablesV2 ¶
func (this *Controller) GetDeviceTypeSelectablesV2(token string, descriptions model.FilterCriteriaAndSet, includeIdModified bool) (result []devicemodel.DeviceTypeSelectable, err error)
func (*Controller) GetFilteredDeviceTypes ¶
func (this *Controller) GetFilteredDeviceTypes(token string, criteria []client.FilterCriteria) (result []models.DeviceType, err error, code int)
func (*Controller) GetFilteredDevices ¶
func (this *Controller) GetFilteredDevices(token string, descriptions model.FilterCriteriaAndSet, protocolBlockList []string, blockedInteraction devicemodel.Interaction, includeGroups bool, includeImports bool, withLocalDeviceIds []string) (result []model.Selectable, err error, code int)
func (*Controller) GetFilteredDevicesV2 ¶
func (this *Controller) GetFilteredDevicesV2(token string, descriptions model.FilterCriteriaAndSet, includeDevices bool, includeGroups bool, includeImports bool, withLocalDeviceIds []string, includeIdModified bool, importPathTrimFirstElement bool) (result []model.Selectable, err error, code int)
func (*Controller) GetFunction ¶
func (this *Controller) GetFunction(id string, token string) (f devicemodel.Function, err error)
func (*Controller) GetFunctions ¶
func (this *Controller) GetFunctions(token string) (functions []devicemodel.Function, err error)
func (*Controller) GetProtocols ¶
func (this *Controller) GetProtocols(token string) (result []devicemodel.Protocol, err error, code int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.