devices

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheExpiration = 60 * time.Second
View Source
var Factory = &RepositoryFactory{}

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func (*Repository) CheckAccess

func (this *Repository) CheckAccess(token auth.Token, kind string, ids []string) (result map[string]bool, err error)

func (*Repository) GetAspectNode

func (this *Repository) GetAspectNode(token auth.Token, id string) (devicemodel.AspectNode, error)

func (*Repository) GetBulkDeviceSelection

func (this *Repository) GetBulkDeviceSelection(token auth.Token, bulk deviceselectionmodel.BulkRequest) (result deviceselectionmodel.BulkResult, err error, code int)

func (*Repository) GetBulkDeviceSelectionV2

func (this *Repository) GetBulkDeviceSelectionV2(token auth.Token, bulk deviceselectionmodel.BulkRequestV2) (result deviceselectionmodel.BulkResult, err error, code int)

func (*Repository) GetDevice

func (this *Repository) GetDevice(token auth.Token, id string) (result devicemodel.Device, err error, code int)

func (*Repository) GetDeviceGroup

func (this *Repository) GetDeviceGroup(token auth.Token, id string) (result devicemodel.DeviceGroup, err error, code int)

func (*Repository) GetDeviceSelection

func (this *Repository) GetDeviceSelection(token auth.Token, descriptions deviceselectionmodel.FilterCriteriaAndSet, filterByInteraction devicemodel.Interaction) (result []deviceselectionmodel.Selectable, err error, code int)

func (*Repository) GetService

func (this *Repository) GetService(token auth.Token, id string) (result devicemodel.Service, err error, code int)

type RepositoryFactory

type RepositoryFactory struct{}

func (*RepositoryFactory) New

Jump to

Keyboard shortcuts

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