@@ -12,6 +12,7 @@ Currently it implements the watchers for the following services:
1212- Amazon S3
1313- Google Drive
1414- Dropbox
15+ - Git
1516- local filesystem (fsnotify/polling)
1617
1718It is possible specify the directory to monitor and the polling time (how much often the watcher should check that directory),
@@ -124,4 +125,26 @@ It is not mandatory to call the `SetConfig()` function, and the polling time arg
124125
125126Setting ` disable_fsnotify ` parameter on config to "true" the watcher doesn't use fsnotify and use the listing approach instead.
126127
127- > :warning : not set ` disable_fsnotify ` to "true" if you plan to use it on a big directory!!! It could increase the I/O on disk
128+ > :warning : not set ` disable_fsnotify ` to "true" if you plan to use it on a big directory!!! It could increase the I/O on disk
129+
130+ ## Git
131+
132+ Git watcher has the following configurations:
133+
134+ | Name | Description
135+ | --- | --- |
136+ | ` debug ` | if "true" the debug mode is enabled (default "false") |
137+ | ` monitor_type ` | it can be "file" or "repo" (default is "repo") |
138+ | ` auth_type ` | authentication type to use: "none", "ssh", "http_token", "http_user_pass" (default "none") |
139+ | ` ssh_pkey ` | path of the ssh private key (required if auth_type = "ssh") |
140+ | ` ssh_pkey_password ` | password of the private key if set |
141+ | ` http_token ` | token to use if auth_type = "http_token" |
142+ | ` http_username ` | username of github account (auth_type = "http_user_pass") |
143+ | ` http_password ` | password of github account (auth_type = "http_user_pass") |
144+ | ` repo_url ` | url of the repository |
145+ | ` repo_branch ` | branch to watch (if ` monitor_type ` is "repo" you can leave it empty to watch all the branches) |
146+ | ` assemble_events ` | if "true" the events could contain one or more commit events (only if ` monitor_type ` = "repo") |
147+ | ` temp_dir ` | temporary directory to use for clone the repo: if empty the tmp dir will be used |
148+
149+ If ` monitor_type ` is set to "repo", the event channel will receive an event with the ` Object ` field filled with commits or tags.
150+ If ` assemble_events ` is "true" the ` Object ` field could contains one or more commits.
0 commit comments