engine

package
v0.0.0-...-9d0dce2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteRegistry

type CompleteRegistry interface {
	registry.Registry
	registry.ClusterRegistry
}

type Engine

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

func New

func New(reg CompleteRegistry, lManager lease.Manager, rStream pkg.EventStream, mach machine.Machine, updateEngineState func(newEngine machine.MachineState)) *Engine

func (*Engine) IsGrpcLeader

func (e *Engine) IsGrpcLeader() (bool, error)

IsGrpcLeader checks if the current leader has gRPC capabilities enabled or error if there is not a elected leader yet.

func (*Engine) Purge

func (e *Engine) Purge()

func (*Engine) Run

func (e *Engine) Run(ival time.Duration, stop <-chan struct{})

type Reconciler

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

func NewReconciler

func NewReconciler() *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(e *Engine, stop chan struct{})

type Scheduler

type Scheduler interface {
	Decide(*clusterState, *job.Job) (*decision, error)
	DecideReschedule(*clusterState, *job.Job) (*decision, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL