radar

package
v0.0.0-...-9d0dc56 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedToAcquireLock = errors.New("failed-to-acquire-lock")

Functions

This section is empty.

Types

type IntervalRunner

type IntervalRunner struct {
	// contains filtered or unexported fields
}

func NewIntervalRunner

func NewIntervalRunner(
	logger lager.Logger,
	clock clock.Clock,
	name string,
	scanner Scanner,
) *IntervalRunner

func (*IntervalRunner) RunFunc

func (r *IntervalRunner) RunFunc(signals <-chan os.Signal, ready chan<- struct{}) error

type ResourceNotFoundError

type ResourceNotFoundError struct {
	Name string
}

func (ResourceNotFoundError) Error

func (e ResourceNotFoundError) Error() string

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(
	logger lager.Logger,
	noop bool,
	scanRunnerFactory ScanRunnerFactory,
	pipeline dbng.Pipeline,
	syncInterval time.Duration,
) *Runner

func (*Runner) Run

func (runner *Runner) Run(signals <-chan os.Signal, ready chan<- struct{}) error

type ScanRunnerFactory

type ScanRunnerFactory interface {
	ScanResourceRunner(lager.Logger, string) ifrit.Runner
	ScanResourceTypeRunner(lager.Logger, string) ifrit.Runner
}

func NewScanRunnerFactory

func NewScanRunnerFactory(
	resourceFactory resource.ResourceFactory,
	defaultInterval time.Duration,
	dbPipeline dbng.Pipeline,
	clock clock.Clock,
	externalURL string,
) ScanRunnerFactory

type Scanner

type Scanner interface {
	Run(lager.Logger, string) (time.Duration, error)
	Scan(lager.Logger, string) error
	ScanFromVersion(lager.Logger, string, atc.Version) error
}

func NewResourceScanner

func NewResourceScanner(
	clock clock.Clock,
	resourceFactory resource.ResourceFactory,
	defaultInterval time.Duration,
	dbPipeline dbng.Pipeline,
	externalURL string,
) Scanner

func NewResourceTypeScanner

func NewResourceTypeScanner(
	resourceFactory resource.ResourceFactory,
	defaultInterval time.Duration,
	dbPipeline dbng.Pipeline,
	externalURL string,
) Scanner

type ScannerFactory

type ScannerFactory interface {
	NewResourceScanner(dbPipeline dbng.Pipeline) Scanner
}

func NewScannerFactory

func NewScannerFactory(
	resourceFactory resource.ResourceFactory,
	defaultInterval time.Duration,
	externalURL string,
) ScannerFactory

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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