Documentation
¶
Overview ¶
Package pluginlib reads which version of this module (the agent library) a plugin binary was built with (R76). The config report lists it per plugin as diagnostics.
Plugins evaluate policies with the policy-manager they embed, so how a plugin evaluates a policy depends on the agent library it was compiled against, not on the running agent. The version comes from the binary's Go build info (debug/buildinfo), so the plugin is never started to find out.
Index ¶
Constants ¶
const AgentModule = "github.com/compliance-framework/agent"
AgentModule is the module path plugins import for runner and policy-manager.
Variables ¶
This section is empty.
Functions ¶
func Version ¶
Version returns the version of AgentModule the plugin binary at path was built with, or "" when it is unknown: the file has no Go build info, does not depend on AgentModule (a non-Go or unrelated binary), or replaces it (a local build, where the version says nothing about the code). An error is returned only when the file cannot be read as a Go binary.