container

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDMinWidth       = 12
	ImageTagMinWidth = 12
	CommandMinWidth  = 20

	StatusUpStr = "Up"
)
View Source
const (
	ContainerIDColumnName = "CONTAINER ID"
	ImageColumnName       = "IMAGE"
	CommandColumnName     = "COMMAND"
	CreatedColumnName     = "CREATED"
	StatusColumnName      = "STATUS"
	PortsColumnName       = "PORTS"
	NamesColumnName       = "NAMES"
	SizeColumnName        = "SIZE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	OptAll       bool
	OptSize      bool
	OptQuiet     bool
	OptNoTrunc   bool
	OptNameLike  string
	OptNameILike string
	Columns      []string
	Colorized    bool
	// contains filtered or unexported fields
}

func NewList

func NewList() *List

func (*List) CompileOutput

func (l *List) CompileOutput(cli *docker.Client) (string, error)

func (*List) SetColorize

func (l *List) SetColorize(colorized bool)

func (*List) SetColumns added in v0.1.9

func (l *List) SetColumns(columns []string) error

func (*List) SetOptionAll

func (l *List) SetOptionAll(all bool)

func (*List) SetOptionNameILike added in v0.1.9

func (l *List) SetOptionNameILike(name string)

func (*List) SetOptionNameLike added in v0.1.9

func (l *List) SetOptionNameLike(name string)

func (*List) SetOptionNoTrunc

func (l *List) SetOptionNoTrunc(noTrunc bool)

func (*List) SetOptionQuiet

func (l *List) SetOptionQuiet(quiet bool)

func (*List) SetOptionSize

func (l *List) SetOptionSize(size bool)

Jump to

Keyboard shortcuts

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