filecheck

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksumCheck

type ChecksumCheck struct {
	Severity    string      `toml:"severity"`
	MaxFileSize config.Size `toml:"max_file_size"`
}

type ExistenceCheck

type ExistenceCheck struct {
	Severity string `toml:"severity"`
}

type FileCheckPlugin

type FileCheckPlugin struct {
	config.InternalConfig
	Instances []*Instance `toml:"instances"`
}

func (*FileCheckPlugin) GetInstances

func (p *FileCheckPlugin) GetInstances() []plugins.Instance

type Instance

type Instance struct {
	config.InternalConfig

	Targets   []string       `toml:"targets"`
	Mtime     MtimeCheck     `toml:"mtime"`
	Checksum  ChecksumCheck  `toml:"checksum"`
	Existence ExistenceCheck `toml:"existence"`
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(q *safe.Queue[*types.Event])

func (*Instance) Init

func (ins *Instance) Init() error

type MtimeCheck

type MtimeCheck struct {
	Severity string          `toml:"severity"`
	Mode     string          `toml:"mode"`
	TimeSpan config.Duration `toml:"time_span"`
}

Jump to

Keyboard shortcuts

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