package
0.12.12
Repository: https://github.com/hashicorp/nomad.git
Documentation: pkg.go.dev

# Packages

# Functions

ErrorChFingerprinter returns an error fingerprinting over the channel.
ErrorChStats returns an error collecting stats over the channel.
ErrorReserve returns the passed error.
NewFingerprint takes a set of device groups and returns a fingerprint response.
NewFingerprintError takes an error and returns a fingerprint response.
NewStatsError takes an error and returns a stats response.
Serve is used to serve a device plugin.
StaticFingerprinter fingerprints the passed devices just once.
StaticReserve returns the passed container reservation.
StaticStats returns the passed statistics.

# Constants

ApiVersion010 is the initial API version for the device plugins.
DeviceTypeGPU is a canonical device type for a GPU.

# Variables

ErrPluginDisabled indicates that the device plugin is disabled.

# Structs

ContainerReservation describes how to mount a device into a container.
Device is an instance of a particular device.
DeviceGroup is a grouping of devices that share a common vendor, device type and name.
DeviceGroupStats contains statistics for each device of a particular device group, identified by the vendor, type and name of the device.
DeviceLocality captures hardware locality information for a device.
DeviceSpec captures how to mount a device into a container.
DeviceStats is the statistics for an individual device.
FingerprintResponse includes a set of detected devices or an error in the process of fingerprinting.
MockDevicePlugin is used for testing.
Mount is used to mount a host directory into a container.
PluginDevice is wraps a DevicePlugin and implements go-plugins GRPCPlugin interface to expose the interface over gRPC.
StatsResponse returns statistics for each device group.

# Interfaces

DevicePlugin is the interface for a plugin that can expose detected devices to Nomad and inform it how to mount them.

# Type aliases