Documentation ¶
Index ¶
- type Config
- type Plugin
- func (p *Plugin) ConfigSchema() (*hclspec.Spec, error)
- func (p *Plugin) Fingerprint(ctx context.Context) (<-chan *device.FingerprintResponse, error)
- func (p *Plugin) PluginInfo() (*base.PluginInfoResponse, error)
- func (p *Plugin) Reserve(deviceIDs []string) (*device.ContainerReservation, error)
- func (p *Plugin) SetConfig(c *base.Config) error
- func (p *Plugin) Stats(ctx context.Context, interval time.Duration) (<-chan *device.StatsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func ConfiguredPlugin ¶
func (*Plugin) Fingerprint ¶
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() (*base.PluginInfoResponse, error)
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
nomad_license_plugin
Follows example main: https://github.com/hashicorp/nomad-skeleton-device-plugin/blob/31e2e063e167ed4bdbba787b659fac75d4bce659/main.go
|
Follows example main: https://github.com/hashicorp/nomad-skeleton-device-plugin/blob/31e2e063e167ed4bdbba787b659fac75d4bce659/main.go |
Click to show internal directories.
Click to hide internal directories.