fsnotify

package
v0.0.0-...-d75a794 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context) error

Types

type Rule

type Rule struct {
	Name      string            `ini:"-"`
	Root      string            `ini:"root"`
	Recursion bool              `ini:"recursion"`
	Gid       int               `ini:"gid"`
	Uid       int               `ini:"uid"`
	FilePerm  uint32            `ini:"-"`
	DirPerm   uint32            `ini:"-"`
	Files     map[string]string `ini:"files,,delim"`
	Ignore    []string          `ini:"ignore,omitempty,allowshadow"`
	// contains filtered or unexported fields
}

func LoadFromFile

func LoadFromFile(configFile string) ([]*Rule, error)

func (*Rule) String

func (r *Rule) String() string

func (*Rule) Watcher

func (r *Rule) Watcher(ctx context.Context) error

Jump to

Keyboard shortcuts

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