Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExitOnChangeReactor reactorFn = func(filename string, action ActionType) error { klog.Infof("exiting because %q changed", filename) os.Exit(0) return nil }
ExitOnChangeReactor provides reactor function that causes the process to exit when the change is detected.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType int
ActionType define a type of action observed on the file
const ( // FileModified means the file content was modified. FileModified ActionType = iota // FileCreated means the file was just created. FileCreated // FileDeleted means the file was deleted. FileDeleted )
func (ActionType) String ¶
func (t ActionType) String(filename string) string
String returns human readable form of action taken on a file.
Click to show internal directories.
Click to hide internal directories.