converger

package
v0.0.0-...-ee93cf6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converger

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

func New

func New(
	logger lager.Logger,
	clock clock.Clock,
	lrpConvergenceController LrpConvergenceController,
	taskController TaskController,
	serviceClient serviceclient.ServiceClient,
	convergeRepeatInterval,
	kickTaskDuration,
	expirePendingTaskDuration,
	expireCompletedTaskDuration time.Duration,
) *Converger

func (*Converger) Run

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

type LrpConvergenceController

type LrpConvergenceController interface {
	ConvergeLRPs(ctx context.Context)
}

type TaskController

type TaskController interface {
	ConvergeTasks(ctx context.Context, logger lager.Logger, kickTaskDuration, expirePendingTaskDuration, expireCompletedTaskDuration time.Duration) error
}

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