logs

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdLogs

func NewCmdLogs(f util.Factory, parentCommand string, streams genericiooptions.IOStreams) *cobra.Command

NewCmdLogs new logs command.

Types

type CommandLogsOptions

type CommandLogsOptions struct {
	// flags specific to logs
	KubectlLogsOptions *kubectllogs.LogsOptions
	Cluster            string
}

CommandLogsOptions contains the input to the logs command.

func (*CommandLogsOptions) Complete

func (o *CommandLogsOptions) Complete(cmd *cobra.Command, args []string, f util.Factory) error

Complete ensures that options are valid and marshals them if necessary

func (*CommandLogsOptions) Run

func (o *CommandLogsOptions) Run() error

Run retrieves a pod log

func (*CommandLogsOptions) Validate

func (o *CommandLogsOptions) Validate() error

Validate checks to the LogsOptions to see if there is sufficient information run the command

Jump to

Keyboard shortcuts

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