wrapper

package
v0.0.0-...-4a611a3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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 Wrapper

type Wrapper struct {
	Results       check.OverallControls
	CommandOutput []byte
	Error         error
	NodeType      []string
	NodeName      string
}

Wrapper is the place holder for storing the parse results //

func NewWrapper

func NewWrapper(nodeType string, hostname string) (w *Wrapper)

NewWrapper is the initialisation function It returns the wrapper object which can then be used to generate the metrics

func (*Wrapper) ParseResults

func (w *Wrapper) ParseResults() error

ParseResults will populate the Results in the Wrapper object which can then be exposed as prometheus metrics

func (*Wrapper) RunBenchMarking

func (w *Wrapper) RunBenchMarking(ctx *cli.Context, node string) (err error)

RunBenchMarking will run kube-bench using os.Exec and send the byte buffer to ParseResults.

Jump to

Keyboard shortcuts

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