benchmark

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	ID                string `yaml:"id"`
	Title             string `yaml:"title"`
	BenchmarkType     string `yaml:"benchmarkType"`
	Category          string `yaml:"category"`
	Description       string `yaml:"description"`
	Remediation       string `yaml:"remediation"`
	ProfileLevel      int    `yaml:"profileLevel"`
	Status            string `yaml:"status"`
	Rationale         string `yaml:"rationale"`
	Audit             string `yaml:"audit"`
	NamespaceRequired int    `yaml:"namespaceRequired"`
	PreRun            func(types.RunOptions) error
	Run               func(types.RunOptions) error
	PostRun           func(types.RunOptions) error
}

Benchmark consists the benchmark information like benchmark id, name, remediation etc.

func (*Benchmark) ReadConfig

func (b *Benchmark) ReadConfig(file []byte) error

ReadConfig reads the yaml representation of struct from []file

Jump to

Keyboard shortcuts

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