Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logs ¶
type Logs struct { A_All bool `desc:"Include hidden or systems logs when logging" default:"false"` C_Container string `desc:"Print the logs of a specific container, use -a for system containers"` InitContainers bool `desc:"Include or exclude init containers" default:"true"` NC_NoColor bool `desc:"Dont show color when logging" default:"false"` O_Output string `desc:"Output format: [default, raw, json]"` P_Previous bool `desc:"Print the logs for the previous instance of the container in a pod if it exists, excludes running"` S_Since string `desc:"Logs since a certain time, either duration (5s, 2m, 3h) or RFC3339" default:"24h"` N_Tail int `desc:"Number of recent lines to print, -1 for all" default:"200"` T_Timestamps bool `desc:"Print the logs with timestamp" default:"false"` }
func (*Logs) Output ¶ added in v0.6.0
func (l *Logs) Output(ctx *clicontext.CLIContext, conf *stern.Config) error
func (*Logs) Run ¶
func (l *Logs) Run(ctx *clicontext.CLIContext) error
Click to show internal directories.
Click to hide internal directories.