logs

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 17 Imported by: 1

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) Customize added in v0.6.0

func (l *Logs) Customize(cmd *cli.Command)

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

Jump to

Keyboard shortcuts

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