kmsproxy

package
v1.2.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const RELOAD_RETRY_INTERVAL = time.Second * 60

Variables

View Source
var ErrorResponse = http.Response{StatusCode: 502, Status: "Connection Failed", ProtoMajor: 1, ProtoMinor: 1}
View Source
var SuccessResponse = http.Response{StatusCode: 200, Status: "Connection Established", ProtoMajor: 1, ProtoMinor: 1}
View Source
var UnsupportedResponse = http.Response{StatusCode: 405, Status: "Must CONNECT", ProtoMajor: 1, ProtoMinor: 1}

Functions

This section is empty.

Types

type ConnectionHandoverListener added in v1.2.0

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

func (ConnectionHandoverListener) Accept added in v1.2.0

func (l ConnectionHandoverListener) Accept() (net.Conn, error)

func (ConnectionHandoverListener) Addr added in v1.2.0

func (ConnectionHandoverListener) Close added in v1.2.0

type Proxy

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

func NewProxy

func NewProxy(
	ctx context.Context,
	caKeyPath string,
	caCertPath string,
	trustBundlePaths []string,
	clientKeyPaths []string,
	clientCertPaths []string,
	insecureSkipVerify bool,
	pacFile *string,
	pathNotifier *path_poller.PathNotifier,
) (*Proxy, error)

func (*Proxy) LoadClientKeyCerts added in v1.2.0

func (proxy *Proxy) LoadClientKeyCerts(ctx context.Context, reason string)

func (*Proxy) ServeHTTPSProxyRequests added in v1.2.0

func (proxy *Proxy) ServeHTTPSProxyRequests(ctx context.Context, addr string) error

func (*Proxy) ServePAC

func (proxy *Proxy) ServePAC(ctx context.Context, addr string) error

func (*Proxy) ServeReverseProxyRequests added in v1.2.0

func (proxy *Proxy) ServeReverseProxyRequests(ctx context.Context, addr string, stripSuffixes []string, portMap map[string]int64) error

func (*Proxy) SignCertificateForListenAddr added in v1.2.0

func (proxy *Proxy) SignCertificateForListenAddr(addr string) (*tls.Certificate, error)

type TLSConnRoundTripper added in v1.2.0

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

func (*TLSConnRoundTripper) RoundTrip added in v1.2.0

func (rt *TLSConnRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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