gc

package
v0.0.0-...-ddabe92 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HijackedContainerTimeout = 5 * time.Minute

Variables

This section is empty.

Functions

func NewBuildCollector

func NewBuildCollector(
	logger lager.Logger,
	buildFactory buildFactory,
) *buildCollector

Types

type BuildReaper

type BuildReaper interface {
	Run() error
}

func NewBuildReaper

func NewBuildReaper(
	logger lager.Logger,
	pipelineFactory db.PipelineFactory,
	batchSize int,
) BuildReaper

type Collector

type Collector interface {
	Run() error
}

func NewCollector

func NewCollector(
	logger lager.Logger,
	buildCollector Collector,
	workers Collector,
	resourceCacheUses Collector,
	resourceConfigs Collector,
	resourceCaches Collector,
	volumes Collector,
	containers Collector,
	resourceConfigCheckSessionCollector Collector,
) Collector

func NewContainerCollector

func NewContainerCollector(
	logger lager.Logger,
	containerRepository db.ContainerRepository,
	jobRunner WorkerJobRunner,
) Collector

func NewResourceCacheCollector

func NewResourceCacheCollector(
	logger lager.Logger,
	cacheLifecycle db.ResourceCacheLifecycle,
) Collector

func NewResourceCacheUseCollector

func NewResourceCacheUseCollector(
	logger lager.Logger,
	cacheLifecycle db.ResourceCacheLifecycle,
) Collector

func NewResourceConfigCheckSessionCollector

func NewResourceConfigCheckSessionCollector(
	logger lager.Logger,
	configCheckSessionLifecycle db.ResourceConfigCheckSessionLifecycle,
) Collector

func NewResourceConfigCollector

func NewResourceConfigCollector(
	logger lager.Logger,
	configFactory db.ResourceConfigFactory,
) Collector

func NewVolumeCollector

func NewVolumeCollector(
	logger lager.Logger,
	volumeFactory db.VolumeFactory,
	jobRunner WorkerJobRunner,
) Collector

func NewWorkerCollector

func NewWorkerCollector(
	logger lager.Logger,
	workerLifecycle db.WorkerLifecycle,
) Collector

type Job

type Job interface {
	Name() string
	Run(worker.Worker)
}

type JobFunc

type JobFunc func(worker.Worker)

func (JobFunc) Name

func (f JobFunc) Name() string

func (JobFunc) Run

func (f JobFunc) Run(workerClient worker.Worker)

type WorkerJobRunner

type WorkerJobRunner interface {
	Try(lager.Logger, string, Job)
}

func NewWorkerJobRunner

func NewWorkerJobRunner(
	logger lager.Logger,
	workerPool worker.Client,
	workersSyncInterval time.Duration,
	maxJobsPerWorker int,
	dropMetricFunc func(lager.Logger, string),
) WorkerJobRunner

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