ui

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerEmitter

type ContainerEmitter interface {
	EmitCreated()
	EmitStarted()
	EmitLive()
	EmitReady()
	EmitResetting()
	EmitExiting()
	EmitExited()

	EmitActionAttempt(string, string, int, int)
	EmitActionResult(string, string, int, int, error)
}

type Emitter

type Emitter interface {
	ForPool(name string) PoolEmitter
}

func NewNoopEmitter

func NewNoopEmitter() Emitter

type PoolEmitter

type PoolEmitter interface {
	ForContainer(id string) ContainerEmitter

	EmitInitializing()
	EmitInitializeError(error)
	EmitRunning()
	EmitDraining()
	EmitDone()

	EmitNumItems(int)
	EmitNumPending(int)
	EmitNumReady(int)
}

type UI

type UI interface {
	Emitter() Emitter
	Stop()
}

func NewIOUI

func NewIOUI(w io.Writer) (UI, error)

func NewNoopUI

func NewNoopUI() UI

func NewTUI

func NewTUI(donech chan bool) (UI, error)

Jump to

Keyboard shortcuts

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