internal

package
v2.2.8 Latest Latest
Warning

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

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

Documentation

Overview

Package internal contains internal functions 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:"risk"`
	Short       string   `yaml:"short"`
	Description string   `yaml:"description"`
	Tags        string   `yaml:"tags"`
	Remediation []string `yaml:"remediation"`
	Name        string   `yaml:"-"`
	URL         string   `yaml:"-"`
}

Check stores a check's information. nolint:govet

type Doc

type Doc struct {
	InternalChecks map[string]Check `yaml:"checks"`
}

Doc stores the documentation for all checks.

func ReadDoc

func ReadDoc() (Doc, error)

ReadDoc reads documentation from the `checks.yaml` file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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