Documentation
¶
Overview ¶
Package config defines the flag plumbing and runtime options shared by torque's logging commands, translating Cobra/Viper flag values into a strongly typed struct that the tailer and capture pipelines consume.
Index ¶
Constants ¶
View Source
const TimestampFormatYouTube = "youtube"
Variables ¶
This section is empty.
Functions ¶
func DefaultTemplate ¶
func DefaultTemplate() string
DefaultTemplate exposes the default log template so other packages can compare against it safely.
Types ¶
type Options ¶
type Options struct {
PodQuery string
Namespaces []string
AllNamespaces bool
LabelSelector string
FieldSelector string
ContainerFilters []string
ExcludeContainers []string
ExcludePods []string
ExcludeLine string
HighlightTerms []string
DiffContainer bool
Follow bool
NoFollow bool
Since time.Duration
SinceRaw string
TailLines int64
ShowTimestamp bool
TimestampFormat string
Template string
TemplateFile string
OnlyLogLines bool
NoPrefix bool
PlainOutput bool
JSONOutput bool
ColorMode string
PodColorStrings []string
ContainerColorStrings []string
OutputFormat string
Events bool
EventsOnly bool
KubeConfigPath string
Context string
Stdin bool
ContainerRegex []*regexp.Regexp
ExcludeRegex []*regexp.Regexp
ExcludeLineRegex *regexp.Regexp
ExcludePodRegex []*regexp.Regexp
SearchRegex []*regexp.Regexp
TimeZone string
TimeLocation *time.Location
ConditionArgs []string
ConditionFilters map[corev1.PodConditionType]corev1.ConditionStatus
NodeLogs bool
NodeLogFiles []string
NodeLogAll bool
NodeLogsOnly bool
WSListenAddr string
}
Options holds all CLI configuration used by the tailer.
Click to show internal directories.
Click to hide internal directories.