config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBaselinePath

func DefaultBaselinePath() string

func DefaultPath

func DefaultPath() string

Types

type Config

type Config struct {
	RefreshInterval    int           `yaml:"refresh_interval"`
	ProtectionPatterns []string      `yaml:"protection_patterns"`
	PrunePresets       []PrunePreset `yaml:"prune_presets"`
	BaselinePath       string        `yaml:"baseline_path"`
}

func Default

func Default() Config

func Load

func Load(path string) (Config, error)

func (Config) Save

func (c Config) Save(path string) error

type PrunePreset

type PrunePreset struct {
	Name     string   `yaml:"name"`
	Patterns []string `yaml:"patterns"`
}

Jump to

Keyboard shortcuts

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