diag

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabelSelectorFlagVar

func AddLabelSelectorFlagVar(cmd *cobra.Command, p *string)

func AddSinglePodFlags

func AddSinglePodFlags(cmd *cobra.Command, o *DiagOptions)

func CommandName added in v0.0.6

func CommandName() string

func NewCmdDiag

func NewCmdDiag(streams genericclioptions.IOStreams) *cobra.Command

NewCmdDiag provides a cobra command wrapping DiagOptions

func NewCmdLogs

func NewCmdLogs(diagOptions *DiagOptions) *cobra.Command

NewCmdDiag provides a cobra command wrapping LogsOptions

func NewCmdManage

func NewCmdManage(diagOptions *DiagOptions) *cobra.Command

NewCmdDiag provides a cobra command wrapping ManageOptions

func NewCmdRedir

func NewCmdRedir(diagOptions *DiagOptions) *cobra.Command

NewCmdDiag provides a cobra command wrapping RedirOptions

func NewCmdShell

func NewCmdShell(diagOptions *DiagOptions) *cobra.Command

NewCmdDiag provides a cobra command wrapping ShellOptions

func ValidateSinglePodFlags

func ValidateSinglePodFlags(o *DiagOptions) error

Types

type DiagOptions

type DiagOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

DiagOptions provides information required to update the current context on a user's KUBECONFIG

func NewDiagOptions

func NewDiagOptions(streams genericclioptions.IOStreams) *DiagOptions

NewDiagOptions provides an instance of DiagOptions with default values

func (*DiagOptions) Complete

func (o *DiagOptions) Complete(cmd *cobra.Command) error

Complete sets all information required for updating the current context

func (*DiagOptions) Validate

func (o *DiagOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

type LogsOptions

type LogsOptions struct {
	*DiagOptions
	// contains filtered or unexported fields
}

func NewLogsOptions

func NewLogsOptions(diagOptions *DiagOptions) *LogsOptions

NewLogsOptions provides an instance of LogsOptions with default values

func (*LogsOptions) Complete

func (o *LogsOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*LogsOptions) Run

func (o *LogsOptions) Run() error

Run lists all available namespaces on a user's KUBECONFIG or updates the current context based on a provided namespace.

func (*LogsOptions) Validate

func (o *LogsOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

type ManageOptions

type ManageOptions struct {
	*DiagOptions
}

ManageOptions provides information required to update the current context on a user's KUBECONFIG

func NewManageOptions

func NewManageOptions(diagOptions *DiagOptions) *ManageOptions

NewManageOptions provides an instance of ManageOptions with default values

func (*ManageOptions) Complete

func (o *ManageOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*ManageOptions) Run

func (o *ManageOptions) Run() error

Run lists all available namespaces on a user's KUBECONFIG or updates the current context based on a provided namespace.

func (*ManageOptions) Validate

func (o *ManageOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

type RedirOptions

type RedirOptions struct {
	*DiagOptions
	// contains filtered or unexported fields
}

RedirOptions provides information required to update the current context on a user's KUBECONFIG

func NewRedirOptions

func NewRedirOptions(diagOptions *DiagOptions) *RedirOptions

NewRedirOptions provides an instance of RedirOptions with default values

func (*RedirOptions) Complete

func (o *RedirOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*RedirOptions) Run

func (o *RedirOptions) Run() error

Run lists all available namespaces on a user's KUBECONFIG or updates the current context based on a provided namespace.

func (*RedirOptions) Validate

func (o *RedirOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

type ShellOptions

type ShellOptions struct {
	*DiagOptions
	// contains filtered or unexported fields
}

ShellOptions provides information required to update the current context on a user's KUBECONFIG

func NewShellOptions

func NewShellOptions(diagOptions *DiagOptions) *ShellOptions

NewShellOptions provides an instance of ShellOptions with default values

func (*ShellOptions) Complete

func (o *ShellOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*ShellOptions) Run

func (o *ShellOptions) Run() error

Run lists all available namespaces on a user's KUBECONFIG or updates the current context based on a provided namespace.

func (*ShellOptions) SetupTTY

func (o *ShellOptions) SetupTTY() term.TTY

func (*ShellOptions) Validate

func (o *ShellOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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