allocations

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocationUpdate

type AllocationUpdate struct {
	Name               string
	NodeID             string
	AllocationID       string
	DesiredStatus      string
	DesiredDescription string
	ClientStatus       string
	ClientDescription  string
	JobID              string
	GroupName          string
	TaskName           string
	EvalID             string
	TaskState          string
	TaskFailed         bool
	TaskStartedAt      *time.Time
	TaskFinishedAt     *time.Time
	TaskEvent          *nomad.TaskEvent
}

AllocationUpdate ...

type Firehose

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

Firehose ...

func NewFirehose

func NewFirehose() (*Firehose, error)

NewFirehose ...

func (*Firehose) Publish

func (f *Firehose) Publish(update *AllocationUpdate)

Publish an update from the firehose

func (*Firehose) Start

func (f *Firehose) Start() error

Start the firehose

func (*Firehose) Stop

func (f *Firehose) Stop()

Stop the firehose

Jump to

Keyboard shortcuts

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