trigger

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTrigger

func StartTrigger(ctx context.Context, t Trigger) (<-chan bool, error)

StartTrigger attempts to start a trigger. It will attempt to start as a polling trigger if it tried unsuccessfully to start a notify trigger.

Types

type Trigger

type Trigger interface {
	Start(context.Context) (<-chan bool, error)
	LogWatchToUser(io.Writer)
	Debounce() bool
}

Trigger describes a mechanism that triggers the watch.

func NewTrigger

func NewTrigger(runctx *runcontext.RunContext) (Trigger, error)

NewTrigger creates a new trigger.

Jump to

Keyboard shortcuts

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