statuschecker

package
v5.0.0-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	TargetURLRegex: `.*`,
	ContextRegex:   `.*`,

	InitialDelay:         20 * time.Second,
	PullInterval:         10 * time.Second,
	NotificationInterval: 3 * time.Minute,
}

Functions

This section is empty.

Types

type Interceptor

type Interceptor struct {
	GitHub  gh.Interface
	Options Options
	Branch  *gh.Branch
}

func New

func New(gitHub gh.Interface, options Options) *Interceptor

func (*Interceptor) PostFetch

func (i *Interceptor) PostFetch(branch *gh.Branch) error

func (*Interceptor) PreApply

func (i *Interceptor) PreApply([]runtime.Object) error

type Options

type Options struct {
	TargetURLRegex string `yaml:"targetUrlRegex"`
	ContextRegex   string `yaml:"contextRegex"`

	InitialDelay         time.Duration `yaml:"initialDelay"`
	PullInterval         time.Duration `yaml:"pullInterval"`
	NotificationInterval time.Duration `yaml:"notificationInterval"`
}

type State

type State int
const (
	Empty State = iota
	Success
	Ignored
	Pending
	Failure
	Error
)

Jump to

Keyboard shortcuts

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