cmdutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPodRunningTimeoutFlag

func AddPodRunningTimeoutFlag(command *cobra.Command, duration time.Duration)

AddPodRunningTimeoutFlag specifies the amount of time to wait for a pod to be in running state

func NormalizeArgs

func NormalizeArgs(args []string) ([]string, error)

NormalizeArgs performs various normalizations on args Converts Type Name => Type/Name This conversion is done because kubernetes completions only work with spaces and not slashes. Resource(s) => Resource Portforwarding works on singular resource rather than its plural version.

Types

type Factory

type Factory struct {
	cmdutil.Factory
	IOStreams  iostreams.IOStreams
	RestConfig *rest.Config
	// Resources which are actively being portforwarded
	Resources   map[string]*portforward.PortForwardOptions
	Client      *kubernetes.Clientset
	Interactive bool
	Root        *cobi.Command
}

Factory contains the current state of app

Jump to

Keyboard shortcuts

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