Documentation ¶
Index ¶
- type LocalPortProxyInfo
- type Manager
- func (m *Manager) CreateNewProxy(ctx context.Context, name string, targetPort int) (LocalPortProxyInfo, error)
- func (m *Manager) GC(ctx context.Context, runningProxyNameList []string)
- func (m *Manager) GetRunningProxies() []LocalPortProxyInfo
- func (m *Manager) GetRunningProxy(name string) (proxyInfo LocalPortProxyInfo, exist bool)
- func (m *Manager) Initialize() (*Manager, error)
- func (m *Manager) ShutdownProxy(ctx context.Context, name string) error
- type ProxyServer
- func (p *ProxyServer) GetListenerPort() int
- func (p *ProxyServer) SetupAuthorizer(a auth.Authorizer)
- func (p *ProxyServer) SetupReverseProxy(addr string, targetURL *url.URL) *ProxyServer
- func (p *ProxyServer) SetupSessionStore(hashKey, blockKey []byte)
- func (p *ProxyServer) Start(ctx context.Context, gracefulShutdownDur time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalPortProxyInfo ¶ added in v0.5.2
type Manager ¶
type Manager struct { Log *clog.Logger Insecure bool TLSCertPath string TLSPrivateKeyPath string ProxyBackendScheme string ProxyGracefulShutdownDur time.Duration ProxyStartupCheckTimeout time.Duration User string MaxAgeSeconds int Authorizer auth.Authorizer // contains filtered or unexported fields }
Manager manages local ports and each proxy servers
func (*Manager) CreateNewProxy ¶
func (*Manager) GetRunningProxies ¶ added in v0.5.2
func (m *Manager) GetRunningProxies() []LocalPortProxyInfo
func (*Manager) GetRunningProxy ¶
func (m *Manager) GetRunningProxy(name string) (proxyInfo LocalPortProxyInfo, exist bool)
func (*Manager) Initialize ¶
type ProxyServer ¶
type ProxyServer struct { Log *clog.Logger User string StaticFileDir string MaxAgeSeconds int SessionName string RedirectPath string Insecure bool TLSCertPath string TLSPrivateKeyPath string // contains filtered or unexported fields }
ProxyServer is a http(s) server that serve login UI and reverse-proxy to the backend with authentication
func (*ProxyServer) GetListenerPort ¶
func (p *ProxyServer) GetListenerPort() int
func (*ProxyServer) SetupAuthorizer ¶
func (p *ProxyServer) SetupAuthorizer(a auth.Authorizer)
func (*ProxyServer) SetupReverseProxy ¶
func (p *ProxyServer) SetupReverseProxy(addr string, targetURL *url.URL) *ProxyServer
func (*ProxyServer) SetupSessionStore ¶
func (p *ProxyServer) SetupSessionStore(hashKey, blockKey []byte)
Click to show internal directories.
Click to hide internal directories.