devicecache

package
v0.0.0-...-c1e1b2a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AfMode          = "af"
	RegionMode      = "region"
	RegionDevelMode = "regiondevel"
)

Device Cache's mode of operation

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache represents FPGA devices found on the host

func NewCache

func NewCache(sysfsDir string, devfsDir string, mode string, ch chan<- UpdateInfo) (*Cache, error)

NewCache returns new instance of Cache

func (*Cache) Run

func (c *Cache) Run() error

Run starts scanning of FPGA devices on the host

type UpdateInfo

type UpdateInfo struct {
	Added   map[string]map[string]deviceplugin.DeviceInfo
	Updated map[string]map[string]deviceplugin.DeviceInfo
	Removed map[string]map[string]deviceplugin.DeviceInfo
}

UpdateInfo contains info added, updated and deleted FPGA devices

Jump to

Keyboard shortcuts

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