Documentation ¶
Overview ¶
Package watch provides a filesystem watcher that is used to rebuild affected targets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Watch ¶
func Watch(state *core.BuildState, labels core.BuildLabels, callback CallbackFunc)
Watch starts watching the sources of the given labels for changes and triggers rebuilds whenever they change. It never returns successfully, it will either watch forever or die.
Types ¶
type CallbackFunc ¶
type CallbackFunc func(*core.BuildState, []core.BuildLabel)
A CallbackFunc is supplied to Watch in order to trigger a build.
Click to show internal directories.
Click to hide internal directories.