Documentation ¶
Index ¶
- Variables
- type Repository
- func (this *Repository) CheckAccess(token auth.Token, kind string, ids []string) (result map[string]bool, err error)
- func (this *Repository) GetAspectNode(token auth.Token, id string) (devicemodel.AspectNode, error)
- func (this *Repository) GetBulkDeviceSelection(token auth.Token, bulk deviceselectionmodel.BulkRequest) (result deviceselectionmodel.BulkResult, err error, code int)
- func (this *Repository) GetBulkDeviceSelectionV2(token auth.Token, bulk deviceselectionmodel.BulkRequestV2) (result deviceselectionmodel.BulkResult, err error, code int)
- func (this *Repository) GetDevice(token auth.Token, id string) (result devicemodel.Device, err error, code int)
- func (this *Repository) GetDeviceGroup(token auth.Token, id string) (result devicemodel.DeviceGroup, err error, code int)
- func (this *Repository) GetDeviceSelection(token auth.Token, descriptions deviceselectionmodel.FilterCriteriaAndSet, ...) (result []deviceselectionmodel.Selectable, err error, code int)
- func (this *Repository) GetService(token auth.Token, id string) (result devicemodel.Service, err error, code int)
- type RepositoryFactory
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 (*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 ¶
func (this *RepositoryFactory) New(ctx context.Context, config config.Config) (interfaces.Devices, error)
Click to show internal directories.
Click to hide internal directories.