constants

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package constants defines shared constants used across the application.

Index

Constants

View Source
const (
	// Application metadata.
	AppName = "opnDossier"

	// Default configuration values.
	DefaultFormat  = "markdown"
	DefaultMode    = "standard"
	ConfigFileName = "opndossier.yaml"

	// Network constants.
	NetworkAny = "any"

	// Protocol constants.
	ProtocolHTTPS = "https"

	// Rule type constants.
	RuleTypePass = "pass"

	// Finding types.
	FindingTypeSecurity = "security"

	// Theme constants.
	ThemeLight = "light"
	ThemeDark  = "dark"

	// Status display constants.
	StatusNotEnabled = "❌"
	StatusEnabled    = "✅"

	// Configuration availability.
	NoConfigAvailable = "*No configuration available*"

	// Progress rendering constants.
	ProgressRenderingMarkdown = 0.5

	// Configuration detection threshold.
	ConfigThreshold = 0.3

	// Timeout constants.
	DefaultProcessingTimeout = 5 * time.Minute
	QuickProcessingTimeout   = 10 * time.Second

	// Scoring constants.
	SecurityFeatureMultiplier = 10
	MaxSecurityScore          = 100
	MaxComplexityScore        = 100

	// Complexity scoring weights.
	InterfaceComplexityWeight    = 5
	FirewallRuleComplexityWeight = 2
	UserComplexityWeight         = 3
	GroupComplexityWeight        = 3
	SysctlComplexityWeight       = 4
	ServiceComplexityWeight      = 6
	DHCPComplexityWeight         = 4
	LoadBalancerComplexityWeight = 8
	GatewayComplexityWeight      = 3
	GatewayGroupComplexityWeight = 5

	// Thresholds.
	LargeRuleCountThreshold = 100
	MaxReasonableComplexity = 1000
)

Application constants.

Variables

View Source
var Version = "1.0.0"

Version information.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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