api

package
v0.0.0-...-6f2359a Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Jobs []Job `json:"jobs"`
}

Config represents a configuration file

type Diff

type Diff struct {
	Item, OldValue, NewValue string
}

Diff defines the diff between two watch states over time

type Job

type Job struct {
	Name               string        `json:"name"`
	Schedule           string        `json:"schedule"`
	Notify             []NotifyEntry `json:"notify"`
	NotifyOnChangeOnly bool          `json:"notify_on_change_only"`
	CodeFile           string        `json:"code_file"`
	VarsFile           string        `json:"vars_file"`
	ModulesDir         string        `json:"modules_dir"`
}

Job entry of a config file. Defines what to execute when.

type NotifyEntry

type NotifyEntry struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

NotifyEntry defines whom to notify on change

Jump to

Keyboard shortcuts

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