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

# Packages

# Functions

MsgPackDecode is used to decode a MsgPack encoded object.
MsgPackEncode is used to encode an object to MsgPack.
NoopSetConfig is a noop implementation of set config.
StaticConfigSchema returns the passed Spec with no error.
StaticInfo returns the passed PluginInfoResponse with no error.
TestConfigSchema returns a ConfigSchemaFn that statically returns the TestSpec.

# Constants

PluginTypeBase implements the base plugin interface.
PluginTypeDevice implements the device plugin interface.
PluginTypeDriver implements the driver plugin interface.

# Variables

Handshake is a common handshake that is shared by all plugins and Nomad.
MsgpackHandle is a shared handle for encoding/decoding of structs.
TestSpec is an hcl Spec for testing.

# Structs

AgentConfig is the Nomad agent's configuration sent to all plugins.
BasePluginClient implements the client side of a remote base plugin, using gRPC to communicate to the remote plugin.
ClientDriverConfig is the driver specific configuration for all driver plugins.
Config contains the configuration for the plugin.
MockPlugin is used for testing.
PluginBase is wraps a BasePlugin and implements go-plugins GRPCPlugin interface to expose the interface over gRPC.
PluginInfoResponse returns basic information about the plugin such that Nomad can decide whether to load the plugin or not.
TestConfig is used to decode a config from the TestSpec.

# Interfaces

BasePlugin is the interface that all Nomad plugins must support.

# Type aliases