Documentation ¶
Overview ¶
Package logprinter is used to print container log lines in color
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSingleNamespaceTemplate ¶
DefaultSingleNamespaceTemplate returns a printing template used when printing with colors and watching resources in a single namespace
Types ¶
type Log ¶
type Log struct { // Message is the log message itself Message string `json:"message"` // Namespace of the pod Namespace string `json:"namespace"` // PodName of the pod PodName string `json:"podName"` // ContainerName of the container ContainerName string `json:"containerName"` PodColor *color.Color `json:"-"` ContainerColor *color.Color `json:"-"` }
Log is the object which will be used together with the template to generate the output.
type LogPrinter ¶
Click to show internal directories.
Click to hide internal directories.