Documentation
¶
Index ¶
- Constants
- func Render(d *Dry, screen *ui.Screen)
- func Write(d *Dry, w io.Writer)
- type AppState
- type Dry
- func (d *Dry) Changed() bool
- func (d *Dry) Inspect(position int)
- func (d *Dry) Kill(position int)
- func (d *Dry) Logs(position int) (io.ReadCloser, error)
- func (d *Dry) Ok() (bool, error)
- func (d *Dry) Refresh()
- func (d *Dry) Rm(position int)
- func (d *Dry) ShowDockerHostInfo()
- func (d *Dry) ShowHelp()
- func (d *Dry) Sort()
- func (d *Dry) StartContainer(position int)
- func (d *Dry) Stats(position int) (chan<- bool, error, <-chan error)
- func (d *Dry) StopContainer(position int)
- func (d *Dry) ToggleShowAllContainers()
- type KeyPressEvent
Constants ¶
View Source
const ( Main viewMode = iota HelpMode StatsMode InspectMode )
known view modes
View Source
const ShortHelp = `` /* 155-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppState ¶
type AppState struct { Paused bool ShowingHelp bool SortMode docker.SortMode // contains filtered or unexported fields }
AppState is a naive attempt to represent application state
type Dry ¶
type Dry struct { State *AppState // contains filtered or unexported fields }
Dry represents the application.
func NewDryAppWithDockerEnv ¶
NewDryAppWithDockerEnv creates a new dry application
func (*Dry) ShowDockerHostInfo ¶
func (d *Dry) ShowDockerHostInfo()
func (*Dry) StartContainer ¶
func (*Dry) Stats ¶
Stats get stats of container in the given position until a message is sent to the done channel
func (*Dry) StopContainer ¶
func (*Dry) ToggleShowAllContainers ¶
func (d *Dry) ToggleShowAllContainers()
type KeyPressEvent ¶
KeyPressEvent maps a key to an app action
Click to show internal directories.
Click to hide internal directories.