nomadmeta

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

func NewJobScalingPolicies

func NewJobScalingPolicies(logger zerolog.Logger, nomad *api.Client) (backend.PolicyBackend, *Processor)

NewJobScalingPolicies produces a new policy backend and processor. The policy backend is just the memory backend. The processor is used to handle job watcher updates, where the job is inspected for its status, and then any Sherpa meta parameters pulled out and validated.

func (*Processor) GetUpdateChannel

func (pr *Processor) GetUpdateChannel() chan interface{}

func (*Processor) Run

func (pr *Processor) Run()

Jump to

Keyboard shortcuts

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