package
0.0.0-20201215022714-831ebeae9675
Repository: https://github.com/gtardif/cli.git
Documentation: pkg.go.dev
# Functions
BuildCacheWrite renders the context for a list of containers.
ClientContextWrite writes formatted contexts using the Context.
ContainerWrite renders the context for a list of containers.
DisplayablePorts returns formatted string representing open ports of container e.g.
Ellipsis truncates a string to fit within maxDisplayWidth, and appends ellipsis (…).
ImageWrite writes the formatter images using the ImageContext.
MarshalJSON marshals x into json It differs a bit from encoding/json MarshalJSON function for formatter.
NewBuildCacheFormat returns a Format for rendering using a Context.
NewClientContextFormat returns a Format for rendering using a Context.
NewContainerContext creates a new context for rendering containers.
NewContainerFormat returns a Format for rendering using a Context.
NewDiskUsageFormat returns a format for rendering an DiskUsageContext.
NewImageFormat returns a format for rendering an ImageContext.
NewVolumeFormat returns a format for use with a volume Context.
VolumeWrite writes formatted volumes using the Context.
# Constants
ClientContextTableFormat is the default client context format.
Common header constants.
Common header constants.
Common header constants.
Format keys used to specify certain kinds of output formats.
Common header constants.
Common header constants.
Common header constants.
Common header constants.
Common header constants.
Common header constants.
Format keys used to specify certain kinds of output formats.
Format keys used to specify certain kinds of output formats.
Common header constants.
Common header constants.
Common header constants.
Common header constants.
Format keys used to specify certain kinds of output formats.
# Structs
ClientContext is a context for display.
ContainerContext is a struct used for rendering a list of containers in a Go template.
Context contains information required by the formatter to print the output as desired.
DiskUsageContext contains disk usage specific information required by the formatter, encapsulate a Context struct.
HeaderContext provides the subContext interface for managing headers.
ImageContext contains image specific information required by the formatter, encapsulate a Context struct.
# Interfaces
SubContext defines what Context implementation should provide.
# Type aliases
Format is the format string rendered using the Context.
SubFormat is a function type accepted by Write().
SubHeaderContext is a map destined to formatter header (table format).