Versions in this module Expand all Collapse all v0 v0.0.1 Jun 10, 2022 Changes in this version + type Config struct + Rules []*Rule + func NewConfig(configFilePath string) (*Config, error) + type Operation string + const AnyOperation + const ChmodOperation + const CreateOperation + const RemoveOperation + const RenameOperation + const WriteOperation + func (o Operation) String() string + type Rule struct + Cmd string + Operation Operation + Path string + type RuleStorage struct + func NewRuleStorage() *RuleStorage + func (s *RuleStorage) Add(path string, operation Operation, rule *Rule) + func (s *RuleStorage) Contains(path string, operation Operation) *Rule + type Service struct + func NewService(cfg *Config) *Service + func (s *Service) Run(ctx context.Context) error + type Watcher struct + func NewWatcher() (*Watcher, error) + func (w *Watcher) Add(rule *Rule) error + func (w *Watcher) Close() error + func (w *Watcher) Watch() error