Versions in this module Expand all Collapse all v1 v1.13.0 Sep 13, 2024 Changes in this version + const TLSProxyOption + func LoadClientCertificate(config *config.ClientCertificate) (tls.Certificate, tls.Certificate, error) + func LoadServerCertificate(config *config.ServerCertificate) (tls.Certificate, error) + func NewTLSProxy(addr, port string, logger logrus.FieldLogger, settings *config.Settings) (*http.Server, error) + func SortPathPatterns(pathPatterns []string) + type ErrorWrapper struct + func (e *ErrorWrapper) Write(p []byte) (n int, err error) + type HTTPServer struct + func New(cmdCtx, evalCtx context.Context, log logrus.FieldLogger, ...) (*HTTPServer, error) + func NewServers(cmdCtx, evalCtx context.Context, log logrus.FieldLogger, ...) ([]*HTTPServer, func(), error) + func (s *HTTPServer) Addr() string + func (s *HTTPServer) Close() error + func (s *HTTPServer) Listen() error + func (s *HTTPServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type ListenPort string + func (lp ListenPort) Port() runtime.Port + type Mux struct + func NewMux(options *runtime.MuxOptions) *Mux + func (m *Mux) FindHandler(req *http.Request) http.Handler + func (m *Mux) RegisterConfigured() + type PEM struct + Certificate []byte + PrivateKey []byte + type Ports []string + func (tp Ports) Contains(needle string) bool + type SelfSignedCertificate struct + CA *tls.Certificate + CACertificate PEM + Client *tls.Certificate + ClientCertificate PEM + ClientIntermediate *tls.Certificate + ClientIntermediateCertificate PEM + ClientPrivateKey []byte + Server *tls.Certificate + ServerCertificate PEM + ServerPrivateKey []byte + func NewCertificate(duration time.Duration, hosts []string, notBefore *time.Time) (*SelfSignedCertificate, error) + type TLSDevPorts map[ListenPort]Ports + func (tdp TLSDevPorts) Add(pair string) error + func (tdp TLSDevPorts) Get(p string) []string