config

package
v0.0.0-...-4b7782d Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period: 1 * time.Second,
	Rules:  make([]Rule, 0),
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Period time.Duration `config:"period"`
	Rules  []Rule        `config:"rules"`
}

type FileResource

type FileResource struct {
	Path string `config:"path"`
}

type ProcResource

type ProcResource struct {
	Name string `config:"name"`
}

type Resource

type Resource struct {
	File      FileResource `config:"file"`
	Proc      ProcResource `config:"process"`
	Condition string       `config:"condition"`
}

type Rule

type Rule struct {
	Id          string     `config:"id"`
	Name        string     `config:"name"`
	Description string     `config:"description"`
	Resources   []Resource `config:"resources"`
}

Jump to

Keyboard shortcuts

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