{"modulePath":"github.com/mycontroller-org/server/v2","version":"v2.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\n## Constants\n\n```go\nconst (\n\tDefaultLimit  = 500\n\tDefaultOffset = 0\n)\n```\n\n## Functions\n\n```go\nfunc ApplyDeviceFilter(labelFilters cmap.CustomStringMap, filters []storageTY.Filter) []storageTY.Filter\n```\n\n## Types\n\n```go\ntype DeviceAPI struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(ctx context.Context) (*DeviceAPI, error)\n```\n\n```go\nfunc (d *DeviceAPI) GetByID(ID string) (*vdTY.VirtualDevice, error)\n```\n\n```go\nfunc (d *DeviceAPI) GetResourceState(device *vdTY.VirtualDevice, trait string, vResource *vdTY.Resource) (interface{}, time.Time, error)\n```\n\n```go\nfunc (d *DeviceAPI) ListDevices(filters []storageTY.Filter, limit, offset int64, deviceLabelFilter cmap.CustomStringMap) ([]vdTY.VirtualDevice, error)\n```\n\n```go\nfunc (d *DeviceAPI) PostActionOnResourceByQuickID(resourceType, quickId string, payload interface{}) error\n```\n\n```go\nfunc (d *DeviceAPI) UpdateDeviceState(vDevices []vdTY.VirtualDevice) error\n```\n\n","path":"github.com/mycontroller-org/server/v2/plugin/virtual_assistant/device_api","name":"api","synopsis":"","isRedistributable":true}
