Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PluginTypeAPM is a plugin which satisfies the APM interface. PluginTypeAPM = "apm" // PluginTypeTarget is a plugin which satisfies the Target interface. PluginTypeTarget = "target" // PluginTypeStrategy is a plugin which satisfies the Strategy interface. PluginTypeStrategy = "strategy" )
View Source
const ( // InternalAPMNomad is the Nomad APM internal plugin name. InternalAPMNomad = "nomad-apm" // InternalTargetNomad is the Nomad Target internal plugin name. InternalTargetNomad = "nomad-target" // InternalAPMPrometheus is the Prometheus APM internal plugin name. InternalAPMPrometheus = "prometheus" // InternalStrategyTargetValue is the Target Value Strategy internal plugin // name. InternalStrategyTargetValue = "target-value" // InternalTargetAWSASG is the Amazon Web Services AutoScaling Group target // plugin. InternalTargetAWSASG = "aws-asg" // InternalAPMDatadog is the Datadog APM plugin name. InternalAPMDatadog = "datadog" )
View Source
const ConfigKeyNomadConfigInherit = "nomad_config_inherit"
ConfigKeyNomadConfigInherit is a generic plugin config map key that supports a boolean value. It indicates whether or not the plugin config should be merged with the agent's Nomad config. This provides an easy simple way in which plugins can have their Nomad client configured without extra hassle.
Variables ¶
View Source
var ( // Handshake is used to do a basic handshake between a plugin and host. If // the handshake fails, a user friendly error is shown. This prevents users // from executing bad plugins or executing a plugin directory. It is a UX // feature, not a security feature. // // Currently the Nomad Autoscaler plugin visioning is performed using the // ProtocolVersion within the Handshake. Handshake = plugin.HandshakeConfig{ ProtocolVersion: 1, MagicCookieKey: "NOMAD_AUTOSCALER_PLUGIN_MAGIC_COOKIE", MagicCookieValue: "e082fa04d587a6525d683666fa253d6afda00f20c122c54a80a3ed57fec99ff3", } )
Functions ¶
Types ¶
type InternalPluginConfig ¶
type InternalPluginConfig struct{ Factory PluginFactory }
InternalPluginConfig is a struct that internal plugins must implement in order to provide critical information about the plugin and launching it.
type PluginFactory ¶
PluginFactory is used to return a new plugin instance.
Click to show internal directories.
Click to hide internal directories.