authproxy

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthProxy

type AuthProxy struct {
	ReverseProxy    reverseproxy.Interface
	PortForwarder   portforwarder.Interface
	ResolverFactory resolver.FactoryInterface
	NewTransport    transport.NewFunc
	Env             env.Interface
	Browser         browser.Interface
	Logger          logger.Interface
}

AuthProxy provides a use-case of authentication proxy.

func (*AuthProxy) Do

func (u *AuthProxy) Do(ctx context.Context, o Option) error

Do runs the use-case. This runs a port forwarder and reverse proxy.

This never returns nil. It returns an error which wraps context.Canceled if the context is canceled.

type Interface

type Interface interface {
	Do(ctx context.Context, in Option) error
}

type Option

type Option struct {
	Config                *rest.Config
	Namespace             string
	TargetURL             *url.URL
	BindAddressCandidates []string
	SkipOpenBrowser       bool
}

Option represents an option of AuthProxy.

Jump to

Keyboard shortcuts

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