Documentation
¶
Index ¶
Constants ¶
View Source
const AgentPluginDir = ".compliance-framework/plugins"
View Source
const AgentPolicyDir = ".compliance-framework/policies"
Variables ¶
This section is empty.
Functions ¶
func DownloadPluginCmd ¶
func DownloadPolicyCmd ¶
Types ¶
type AgentRunner ¶
type AgentRunner struct {
// contains filtered or unexported fields
}
func (*AgentRunner) DownloadPlugins ¶
func (ar *AgentRunner) DownloadPlugins() error
DownloadPlugins checks each item in the config and retrieves the source of the plugin building a set of unique sources. It then checks if the source is a path that exists on the filesystem, if it isn't, it will download the plugin to the filesystem.
We also update the map of plugin sources, this could be an identity map if it's a local file or maps from the URL to the local file if we downloaded a remote file.
We return any errors that occurred during the download process. TODO: What is the right error handling here?
func (*AgentRunner) DownloadPolicies ¶
func (ar *AgentRunner) DownloadPolicies() error
func (*AgentRunner) Run ¶
func (ar *AgentRunner) Run() error
type DownloadRunner ¶
type DownloadRunner struct {
// contains filtered or unexported fields
}
type PolicyDownloadRunner ¶
type PolicyDownloadRunner struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.