app

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 19 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Main viewMode = iota //This is the container list view
	DiskUsage
	Images
	Monitor
	Networks
	EventsMode
	HelpMode
	InfoMode
	Nodes
	Services
	ServiceTasks
	Stacks
	StackTasks
	Tasks
	ContainerMenu
	Volumes
	NoView
)

existing view modes

View Source
const ShortHelp = `
dry

A tool to interact with a Docker Daemon from the terminal. 
`

ShortHelp is a short description of dry

Variables

This section is empty.

Functions

func RenderLoop

func RenderLoop(dry *Dry)

RenderLoop runs dry nolint: gocyclo

Types

type Config

type Config struct {
	DockerHost         string
	DockerCertPath     string
	DockerTLSVerify    bool
	MonitorMode        bool
	MonitorRefreshRate int
}

Config dry initial configuration

type Dry

type Dry struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Dry resources and state

func NewDry

func NewDry(screen *ui.Screen, cfg Config) (*Dry, error)

NewDry creates a new dry application

func (*Dry) Close

func (d *Dry) Close()

Close closes dry, releasing any resources held by it

func (*Dry) Ok

func (d *Dry) Ok() (bool, error)

Ok returns the state of dry

func (*Dry) OuputChannel

func (d *Dry) OuputChannel() <-chan string

OuputChannel returns the channel where dry messages are written

Jump to

Keyboard shortcuts

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