kubectlk8s.io/kubectl/pkg/cmd/proxy Index | Files

package proxy

import "k8s.io/kubectl/pkg/cmd/proxy"

Index

Functions

func NewCmdProxy

func NewCmdProxy(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdProxy returns the proxy Cobra command

Types

type ProxyOptions

type ProxyOptions struct {
	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

ProxyOptions have the data required to perform the proxy operation

func NewProxyOptions

func NewProxyOptions(ioStreams genericiooptions.IOStreams) *ProxyOptions

NewProxyOptions creates the options for proxy

func (*ProxyOptions) Complete

func (o *ProxyOptions) Complete(f cmdutil.Factory) error

Complete adapts from the command line args and factory to the data required.

func (ProxyOptions) RunProxy

func (o ProxyOptions) RunProxy() error

RunProxy checks given arguments and executes command

func (ProxyOptions) Validate

func (o ProxyOptions) Validate() error

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

Source Files

proxy.go

Version
v0.32.3 (latest)
Published
Mar 12, 2025
Platform
linux/amd64
Imports
15 packages
Last checked
5 days ago

Tools for package owners.