Documentation ¶
Index ¶
- Constants
- func NewBuildCollector(buildFactory buildFactory) *buildCollector
- type BuildLogRetentionCalculator
- type Collector
- func NewBuildLogCollector(pipelineFactory db.PipelineFactory, batchSize int, ...) Collector
- func NewCollector(buildCollector Collector, workers Collector, resourceCacheUses Collector, ...) Collector
- func NewContainerCollector(containerRepository db.ContainerRepository, jobRunner WorkerJobRunner) Collector
- func NewResourceCacheCollector(cacheLifecycle db.ResourceCacheLifecycle) Collector
- func NewResourceCacheUseCollector(cacheLifecycle db.ResourceCacheLifecycle) Collector
- func NewResourceConfigCheckSessionCollector(configCheckSessionLifecycle db.ResourceConfigCheckSessionLifecycle) Collector
- func NewResourceConfigCollector(configFactory db.ResourceConfigFactory) Collector
- func NewVolumeCollector(volumeRepository db.VolumeRepository) Collector
- func NewWorkerCollector(workerLifecycle db.WorkerLifecycle) Collector
- type Destroyer
- type Job
- type JobFunc
- type WorkerJobRunner
Constants ¶
View Source
const HijackedContainerTimeout = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func NewBuildCollector ¶
func NewBuildCollector(buildFactory buildFactory) *buildCollector
Types ¶
type BuildLogRetentionCalculator ¶
func NewBuildLogRetentionCalculator ¶
func NewBuildLogRetentionCalculator( defaultBuildLogsToRetain uint64, maxBuildLogsToRetain uint64, ) BuildLogRetentionCalculator
type Collector ¶
func NewBuildLogCollector ¶
func NewBuildLogCollector( pipelineFactory db.PipelineFactory, batchSize int, buildLogRetentionCalculator BuildLogRetentionCalculator, ) Collector
func NewCollector ¶
func NewContainerCollector ¶
func NewContainerCollector( containerRepository db.ContainerRepository, jobRunner WorkerJobRunner, ) Collector
func NewResourceCacheCollector ¶
func NewResourceCacheCollector(cacheLifecycle db.ResourceCacheLifecycle) Collector
func NewResourceCacheUseCollector ¶
func NewResourceCacheUseCollector(cacheLifecycle db.ResourceCacheLifecycle) Collector
func NewResourceConfigCheckSessionCollector ¶
func NewResourceConfigCheckSessionCollector( configCheckSessionLifecycle db.ResourceConfigCheckSessionLifecycle, ) Collector
func NewResourceConfigCollector ¶
func NewResourceConfigCollector(configFactory db.ResourceConfigFactory) Collector
func NewVolumeCollector ¶
func NewVolumeCollector(volumeRepository db.VolumeRepository) Collector
func NewWorkerCollector ¶
func NewWorkerCollector(workerLifecycle db.WorkerLifecycle) Collector
type Destroyer ¶
type Destroyer interface { FindOrphanedVolumesasDestroying(workerName string) ([]string, error) DestroyContainers(workerName string, handles []string) error DestroyVolumes(workerName string, handles []string) error }
Destroyer allows the caller to remove containers and volumes
func NewDestroyer ¶
func NewDestroyer( logger lager.Logger, containerRepository db.ContainerRepository, volumeRepository db.VolumeRepository, ) Destroyer
NewDestroyer provides a constructor for a Destroyer interface implementation
type WorkerJobRunner ¶
Source Files ¶
- build_collector.go
- build_log_collector.go
- build_log_retention_calculator.go
- collector.go
- container_collector.go
- destroyer.go
- dialer_unix.go
- resource_cache_collector.go
- resource_cache_use_collector.go
- resource_config_check_session_collector.go
- resource_config_collector.go
- volume_collector.go
- worker_collector.go
- worker_job_runner.go
Click to show internal directories.
Click to hide internal directories.