gc

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: Apache-2.0 Imports: 13 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 BaggageclaimClientFactory

type BaggageclaimClientFactory interface {
	NewClient(apiURL string, workerName string) bclient.Client
}

func NewBaggageclaimClientFactory

func NewBaggageclaimClientFactory(dbWorkerFactory db.WorkerFactory) BaggageclaimClientFactory

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,
	resourceConfigUses Collector,
	resourceConfigs Collector,
	resourceCaches Collector,
	volumes Collector,
	containers Collector,
	resourceConfigCheckSessionCollector Collector,
) Collector

func NewContainerCollector

func NewContainerCollector(
	logger lager.Logger,
	containerFactory containerFactory,
	workerProvider db.WorkerFactory,
	gardenClientFactory GardenClientFactory,
) Collector

func NewResourceCacheCollector

func NewResourceCacheCollector(
	logger lager.Logger,
	cacheFactory db.ResourceCacheFactory,
) Collector

func NewResourceCacheUseCollector

func NewResourceCacheUseCollector(
	logger lager.Logger,
	cacheFactory db.ResourceCacheFactory,
) Collector

func NewResourceConfigCheckSessionCollector

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

func NewResourceConfigCollector

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

func NewResourceConfigUseCollector

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

func NewVolumeCollector

func NewVolumeCollector(
	logger lager.Logger,
	volumeFactory db.VolumeFactory,
	workerFactory db.WorkerFactory,
	baggageclaimClientFactory BaggageclaimClientFactory,
) Collector

func NewWorkerCollector

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

type GardenClientFactory

type GardenClientFactory func(db.Worker, lager.Logger) (garden.Client, error)

func NewGardenClientFactory

func NewGardenClientFactory() GardenClientFactory

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