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, logger lager.Logger)
}

    go:generate counterfeiter -o fake_controllers/fake_lrp_convergence_controller.go . LrpConvergenceController

    type TaskController

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

      go:generate counterfeiter -o fake_controllers/fake_task_controller.go . TaskController

      Directories

      Path Synopsis
      Code generated by counterfeiter.
      Code generated by counterfeiter.