Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginName = "debugtalk" GoPluginFile = PluginName + ".so" // built from go plugin HashicorpGoPluginFile = PluginName + ".bin" // built from hashicorp go plugin HashicorpPyPluginFile = PluginName + ".py" )
View Source
const PluginTypeEnvName = "HRP_PLUGIN_TYPE"
PluginTypeEnvName is used to specify hashicorp go plugin type, rpc/grpc
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{ ProtocolVersion: 1, MagicCookieKey: "HttpRunnerPlus", MagicCookieValue: PluginName, }
HandshakeConfig is used to just 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.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.