interactive

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Initial is the state an allocation is initially in.
	Initial State = "initial"
	// Started is the state an allocation is in after
	// work has started.
	Started = "started"
	// Completed is the state an allocation is in after
	// work is complete.
	Completed = "completed"
)

Variables

This section is empty.

Functions

func Report

func Report(l *log.Logger, eventc <-chan interface{}, done <-chan struct{}) error

Report reports a stream of events in an interactive way, using an array of fixed terminal lines.

Types

type SetStateEvent

type SetStateEvent struct {
	// Name is the name of the allocation.
	Name string
	// State is the next state of the allocation.
	State State
	// Stage further qualifies the state.
	Stage string
}

SetStateEvent reports the setting of the state of an allocation.

type State

type State string

State is the state of an allocation.

Jump to

Keyboard shortcuts

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