config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 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 Config

type Config struct {
	Threshold *ThresholdConfig `yaml:"threshold"`
}

Config represents vulnerability thresholds that must be satisfied for the tool to return success code

func ReadConfig

func ReadConfig(path string) (*Config, error)

ReadConfig Load configuration file from filesystem

type ThresholdConfig

type ThresholdConfig struct {
	CriticalCount int `yaml:"criticalCount"`
	HighCount     int `yaml:"highCount"`
	MediumCount   int `yaml:"mediumCount"`
	LowCount      int `yaml:"lowCount"`
	UnknownCount  int `yaml:"unknownCount"`
}

ThresholdConfig represent values loaded from threshold configuration file

Jump to

Keyboard shortcuts

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