Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteK8sAuditResults ¶
func ExecuteK8sAuditResults(sym plugin.Symbol, auditEvt models.KubeAuditResults) error
ExecuteK8sAuditResults execute on K8s api call hook
Types ¶
type K8sBenchAuditResultHook ¶
K8sBenchAuditResultHook hold the plugin symbol for K8s bench audit result Hook
type PluginLoader ¶
type PluginLoader struct {
// contains filtered or unexported fields
}
PluginLoader keeps the context needed to find where Plugins and objects are stored.
func NewPluginLoader ¶
func NewPluginLoader() (*PluginLoader, error)
NewPluginLoader return new plugin loader object with src and compiled folders
func (*PluginLoader) Compile ¶
Compile the go plugin in a given path and hook name and return it symbol
func (*PluginLoader) Plugins ¶
func (l *PluginLoader) Plugins() ([]string, error)
Plugins lists all the files in the Plugins
type PluginWorker ¶
type PluginWorker struct {
// contains filtered or unexported fields
}
PluginWorker instance which match command data to specific pattern
func NewPluginWorker ¶
func NewPluginWorker(commandMatchData *PluginWorkerData, log *zap.Logger) *PluginWorker
NewPluginWorker return new plugin worker instance
func (*PluginWorker) Invoke ¶
func (pm *PluginWorker) Invoke()
Invoke invoke plugin accept audit bench results
type PluginWorkerData ¶
type PluginWorkerData struct {
// contains filtered or unexported fields
}
PluginWorkerData encapsulate plugin worker properties
func NewPluginWorkerData ¶
func NewPluginWorkerData(plChan chan models.KubeAuditResults, hook K8sBenchAuditResultHook, completedChan chan bool) *PluginWorkerData
NewPluginWorkerData return new plugin worker instance