options

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyOptions

type ProxyOptions struct {
	StaticDir     string
	StaticPrefix  string
	APIPrefix     string
	AcceptPaths   string
	RejectPaths   string
	AcceptHosts   string
	RejectMethods string
	Port          int
	Address       string
	Keepalive     time.Duration

	AppendServerPath bool

	ClientConfig *rest.Config
	Filter       *proxy.FilterServer

	Log *logs.Options
}

ProxyOptions have the data required to perform the proxy operation

func NewProxyOptions

func NewProxyOptions() *ProxyOptions

NewProxyOptions creates the options for proxy

func (*ProxyOptions) AddFlags

func (o *ProxyOptions) AddFlags(flags *pflag.FlagSet)

AddFlags adds flags to the specified FlagSet.

func (*ProxyOptions) Complete

func (o *ProxyOptions) Complete() error

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

func (*ProxyOptions) Validate

func (o *ProxyOptions) Validate() error

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

Jump to

Keyboard shortcuts

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