hook

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sBenchAuditResultHook

type K8sBenchAuditResultHook struct {
	Plugins []plugin.Symbol
	Plug    *uplugin.PluginLoader
}

K8sBenchAuditResultHook hold the plugin symbol for K8s bench audit result Hook

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL