watch

package
v13.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 3

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.

Jump to

Keyboard shortcuts

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