checks

package
v2.1.3 Latest Latest
Warning

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

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

Documentation

Overview

Package checks contains util fns for reading input YAML file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Risk        string   `yaml:"-"`
	Description string   `yaml:"description"`
	Remediation []string `yaml:"remediation"`
}

Check defines expected check definition in checks.yaml.

type Doc

type Doc struct {
	Checks map[string]Check
}

Doc maps to checks.yaml file.

func Read

func Read() (Doc, error)

Read parses `checks.yaml` file and returns a `Doc` struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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