api

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultLimit  = 500
	DefaultOffset = 0
)

Variables

This section is empty.

Functions

func ApplyDeviceFilter

func ApplyDeviceFilter(labelFilters cmap.CustomStringMap, filters []storageTY.Filter) []storageTY.Filter

Types

type DeviceAPI

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

func New

func New(ctx context.Context) (*DeviceAPI, error)

func (*DeviceAPI) GetByID

func (d *DeviceAPI) GetByID(ID string) (*vdTY.VirtualDevice, error)

func (*DeviceAPI) GetResourceState

func (d *DeviceAPI) GetResourceState(device *vdTY.VirtualDevice, trait string, vResource *vdTY.Resource) (interface{}, time.Time, error)

func (*DeviceAPI) ListDevices

func (d *DeviceAPI) ListDevices(filters []storageTY.Filter, limit, offset int64, deviceLabelFilter cmap.CustomStringMap) ([]vdTY.VirtualDevice, error)

func (*DeviceAPI) PostActionOnResourceByQuickID

func (d *DeviceAPI) PostActionOnResourceByQuickID(resourceType, quickId string, payload interface{}) error

func (*DeviceAPI) UpdateDeviceState

func (d *DeviceAPI) UpdateDeviceState(vDevices []vdTY.VirtualDevice) error

Jump to

Keyboard shortcuts

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