radar

package
v0.75.0-no-limit Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Radar

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

func NewRadar

func NewRadar(
	tracker resource.Tracker,
	defaultInterval time.Duration,
	db RadarDB,
	clock clock.Clock,
	externalURL string,
) *Radar

func (*Radar) Scan

func (radar *Radar) Scan(logger lager.Logger, resourceName string) error

func (*Radar) Scanner

func (radar *Radar) Scanner(logger lager.Logger, resourceName string) ifrit.Runner

type RadarDB

type RadarDB interface {
	GetPipelineName() string
	ScopedName(string) string

	IsPaused() (bool, error)

	GetConfig() (atc.Config, db.ConfigVersion, bool, error)

	GetLatestVersionedResource(resource db.SavedResource) (db.SavedVersionedResource, bool, error)
	GetResource(resourceName string) (db.SavedResource, error)
	PauseResource(resourceName string) error
	UnpauseResource(resourceName string) error

	SaveResourceVersions(atc.ResourceConfig, []atc.Version) error
	SetResourceCheckError(resource db.SavedResource, err error) error
	LeaseResourceChecking(resource string, interval time.Duration, immediate bool) (db.Lease, bool, error)
}

type ResourceNotConfiguredError

type ResourceNotConfiguredError struct {
	ResourceName string
}

func (ResourceNotConfiguredError) Error

func (err ResourceNotConfiguredError) Error() string

type Runner

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

func NewRunner

func NewRunner(
	logger lager.Logger,
	noop bool,
	scannerFactory ScannerFactory,
	db db.PipelineDB,
	syncInterval time.Duration,
) *Runner

func (*Runner) Run

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

type ScannerFactory

type ScannerFactory interface {
	Scanner(lager.Logger, string) ifrit.Runner
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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