config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginDir      string = "openscap"
	PolicyDir      string = "policy"
	ResultsDir     string = "results"
	RemediationDir string = "remediations"
	DatastreamsDir string = "/usr/share/xml/scap/ssg/content"
	SystemInfoFile string = "/etc/os-release"
)

Variables

This section is empty.

Functions

func IsXMLFile

func IsXMLFile(filePath string) (bool, error)

func SanitizeInput

func SanitizeInput(input string) (string, error)

func SanitizePath

func SanitizePath(path string) (string, error)

Types

type Config

type Config struct {
	Files struct {
		Workspace  string `config:"workspace"`
		Datastream string `config:"datastream"`
		Results    string `config:"results"`
		ARF        string `config:"arf"`
		Policy     string `config:"policy"`
	}
	Parameters struct {
		Profile string `config:"profile"`
	}
}

func NewConfig

func NewConfig() *Config

NewConfig creates a new, empty Config.

func (*Config) LoadSettings

func (c *Config) LoadSettings(config map[string]string) error

LoadSettings sets the values in the Config from a given config map and performs validation.

Jump to

Keyboard shortcuts

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