proxy

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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCaddyReverseProxy

func NewCaddyReverseProxy(listenPort string, adminPort string, stopCh <-chan struct{}, withOptions ...WithOptions) *caddylb

func Start

func Start(ctx context.Context, config *Config)

Types

type Config

type Config struct {
	LabelSelector string
	Namespace     string
	K8sClient     kubernetes.Interface
	AdminPort     string
	ListenPort    string
	Factory       cmdutil.Factory
	Streams       genericclioptions.IOStreams
	StopCh        <-chan struct{}
	EnableMetrics bool
}

type WithOptions added in v0.3.0

type WithOptions func(c *caddylb)

func WithMetrics added in v0.3.0

func WithMetrics(enabled bool) WithOptions

Jump to

Keyboard shortcuts

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