Documentation
¶
Index ¶
- Constants
- Variables
- func CallFunc(fn reflect.Value, args ...interface{}) (interface{}, error)
- func ConvertCommonName(name string) string
- func EnsurePython3Venv(venvDir string, packages ...string) (python3 string, err error)
- func InstallPythonPackage(python3 string, pkg string) (err error)
- type IFuncCaller
Constants ¶
View Source
const PluginTypeEnvName = "HRP_PLUGIN_TYPE"
PluginTypeEnvName is used to specify hashicorp go plugin type, rpc/grpc
View Source
const Version = "v0.4.7"
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "HttpRunnerPlus",
MagicCookieValue: "debugtalk",
}
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 ¶
func ConvertCommonName ¶ added in v0.4.7
ConvertCommonName returns name which deleted "_" and converted capital letter to their lower case
func EnsurePython3Venv ¶ added in v0.4.1
EnsurePython3Venv ensures python3 venv for hashicorp python plugin venvDir should be directory path of target venv
func InstallPythonPackage ¶ added in v0.4.3
Types ¶
Click to show internal directories.
Click to hide internal directories.