engine

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2016 License: Apache-2.0 Imports: 13 Imported by: 75

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteRegistry added in v1.0.0

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 added in v1.0.0

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 added in v0.5.4

func (e *Engine) Purge()

func (*Engine) Run

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

type Reconciler added in v0.5.4

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

func NewReconciler added in v0.7.0

func NewReconciler() *Reconciler

func (*Reconciler) Reconcile added in v0.5.4

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

type Scheduler added in v0.7.0

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