Piertje en moffel koekeloere naar je files
Basic filewatcher that calls a webhook when a change is noticed
Just run the included makefile without any arguments
make
build it, run the binary like this:
./koekeloere -v -w /tmp/example,/tmp/example2 http://myWebServer.tld/webhook
Key | Usage | Example |
---|---|---|
-v | Verbose mode (optional) | -v |
-w | Directories to watch, comma seperated | -w /home/xantios,/tmp/example |
all trailing arguments are parsed as URLS | http://MyServer.com/hook |
- http http and https requests (POST and GET)
- create a file or directory is created
- delete a file or directory is deleted
- write change in existing file
- chmod default unix permissions
see moffel/moffel.go
for the drivers
map. add your custom function there and add a file to moffel/yourDriver.go
with the implementation.
the map is layed out as map[string]interface{}