Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyFactory ¶
type ProxyFactory struct {
// contains filtered or unexported fields
}
ProxyFactory is a factory to create reverse proxies
func NewProxyFactory ¶
func NewProxyFactory(dataStore dataservices.DataStore, signatureService portainer.DigitalSignatureService, tunnelService portainer.ReverseTunnelService, clientFactory *docker.ClientFactory, kubernetesClientFactory *cli.ClientFactory, kubernetesTokenCacheManager *kubernetes.TokenCacheManager, gitService portainer.GitService) *ProxyFactory
NewProxyFactory returns a pointer to a new instance of a ProxyFactory
func (*ProxyFactory) NewAgentProxy ¶
func (factory *ProxyFactory) NewAgentProxy(endpoint *portainer.Endpoint) (*ProxyServer, error)
NewAgentProxy creates a new instance of ProxyServer that wrap http requests with agent headers
func (*ProxyFactory) NewEndpointProxy ¶
NewEndpointProxy returns a new reverse proxy (filesystem based or HTTP) to an environment(endpoint) API server
func (*ProxyFactory) NewGitlabProxy ¶
func (factory *ProxyFactory) NewGitlabProxy(gitlabAPIUri string) (http.Handler, error)
NewGitlabProxy returns a new HTTP proxy to a Gitlab API server
type ProxyServer ¶
type ProxyServer struct { Port int // contains filtered or unexported fields }
ProxyServer provide an extended proxy with a local server to forward requests
Source Files ¶
Click to show internal directories.
Click to hide internal directories.