models

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	BenchmarkType string     `yaml:"benchmark_type"`
	Categories    []Category `yaml:"categories"`
}

Audit data model

type AuditBench

type AuditBench struct {
	Name                 string   `mapstructure:"name" yaml:"name"`
	ProfileApplicability string   `mapstructure:"profile_applicability" yaml:"profile_applicability"`
	Description          string   `mapstructure:"description" yaml:"description"`
	AuditCommand         []string `mapstructure:"audit" json:"audit"`
	CheckType            string   `mapstructure:"check_type" yaml:"check_type"`
	Remediation          string   `mapstructure:"remediation" yaml:"remediation"`
	Impact               string   `mapstructure:"impact" yaml:"impact"`
	DefaultValue         string   `mapstructure:"default_value" yaml:"default_value"`
	References           []string `mapstructure:"references" yaml:"references"`
	EvalExpr             string   `mapstructure:"eval_expr" yaml:"eval_expr"`
	TestSucceed          bool
	CommandParams        map[int][]string
	Category             string
	NonApplicable        bool
	TestType             string `mapstructure:"type" yaml:"type"`
}

AuditBench data model

func (*AuditBench) UnmarshalYAML

func (at *AuditBench) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML over unmarshall to add logic

type AuditResult

type AuditResult struct {
	NumOfExec    int
	NumOfSuccess int
}

AuditResult data

type AuditTestTotals

type AuditTestTotals struct {
	Warn int
	Pass int
	Fail int
}

AuditTestTotals model

type Category

type Category struct {
	Name        string       `yaml:"name"`
	SubCategory *SubCategory `yaml:"sub_category"`
}

Category data model

type SubCategory

type SubCategory struct {
	Name       string        `yaml:"name"`
	AuditTests []*AuditBench `yaml:"audit_tests"`
}

SubCategory data model

Jump to

Keyboard shortcuts

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