cmd

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unknown"

Version is set during build time

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewCommandFactory

func NewCommandFactory() (cmdutil.Factory, genericclioptions.IOStreams)

func StartReverseProxy

func StartReverseProxy(ctx context.Context, opts ReverseProxyOptions) error

Types

type ReverseProxyOptions

type ReverseProxyOptions struct {
	K8sClient     kubernetes.Interface
	IOStreams     genericclioptions.IOStreams
	Factory       cmdutil.Factory
	Name          string
	LabelSelector string
	AdminPort     string
	LocalPort     string
	Namespace     string
	StopCh        chan struct{}
	EnableMetrics bool
}

Jump to

Keyboard shortcuts

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