authproxy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 16 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
	TransportFactory transport.FactoryInterface
	Env              env.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
}

Option represents an option of AuthProxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳