gcng

package
v0.0.0-...-e99be67 Latest Latest
Warning

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

Go to latest
Published: May 4, 2017 License: Apache-2.0 Imports: 12 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 dbng.WorkerFactory) BaggageclaimClientFactory

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,
) Collector

func NewContainerCollector

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

func NewResourceCacheCollector

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

func NewResourceCacheUseCollector

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

func NewResourceConfigCollector

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

func NewResourceConfigUseCollector

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

func NewVolumeCollector

func NewVolumeCollector(
	logger lager.Logger,
	volumeFactory dbng.VolumeFactory,
	baggageclaimClientFactory BaggageclaimClientFactory,
) Collector

func NewWorkerCollector

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

type GardenClientFactory

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

func NewGardenClientFactory

func NewGardenClientFactory() GardenClientFactory

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 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