proxy

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PmManager

type PmManager struct {
	// contains filtered or unexported fields
}

func NewProxyManager

func NewProxyManager(ctx context.Context, logger logr.Logger) (*PmManager, error)

func (*PmManager) InstrumentHandler

func (pm *PmManager) InstrumentHandler(registry prometheus.Registerer) http.Handler

func (*PmManager) Ready

func (pm *PmManager) Ready() bool

func (*PmManager) RegisterRoutes

func (pm *PmManager) RegisterRoutes(e *echo.Echo, registry prometheus.Registerer)

func (*PmManager) ReverseProxy

func (pm *PmManager) ReverseProxy() *httputil.ReverseProxy

func (*PmManager) RoundTrip

func (pm *PmManager) RoundTrip(req *http.Request) (*http.Response, error)

func (*PmManager) Start

func (pm *PmManager) Start(ctx context.Context) error

func (*PmManager) WaitForCacheSync

func (pm *PmManager) WaitForCacheSync(ctx context.Context) error

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Store

func (*Store) Delete

func (s *Store) Delete(cluster string)

func (*Store) Host

func (s *Store) Host(cluster string) (string, bool)

func (*Store) Route

func (s *Store) Route(cluster, inURL string) (route, bool)

func (*Store) SetRoutes

func (s *Store) SetRoutes(cluster string, routes map[string]route)

func (*Store) SetTransport

func (s *Store) SetTransport(cluster string, transport http.RoundTripper, host string)

func (*Store) Transport

func (s *Store) Transport(cluster string) (http.RoundTripper, bool)

Jump to

Keyboard shortcuts

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