Documentation ¶
Index ¶
- type Proxy
- func (p *Proxy) CompleteEndPointAuthorization(downIP net.IP, downPort int, upConn, downConn net.Conn) (bool, error)
- func (p *Proxy) RunNetworkServer(ctx context.Context, listener net.Listener, encrypted bool) error
- func (p *Proxy) ShutDown() error
- func (p *Proxy) StartClientAuthStateMachine(downIP net.IP, downPort int, downConn net.Conn) (bool, error)
- func (p *Proxy) StartServerAuthStateMachine(ip fmt.Stringer, backendport int, upConn net.Conn) (bool, error)
- func (p *Proxy) UpdateCaches(portCache map[int]string, portMap map[int]int)
- func (p *Proxy) UpdateSecrets(cert *tls.Certificate, caPool *x509.CertPool, s secrets.Secrets, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
Proxy maintains state for proxies connections from listen to backend.
func NewTCPProxy ¶
func NewTCPProxy( tp tokenaccessor.TokenAccessor, c collector.EventCollector, puFromID cache.DataStore, puContext string, certificate *tls.Certificate, caPool *x509.CertPool, portCache map[int]string, ) *Proxy
NewTCPProxy creates a new instance of proxy reate a new instance of Proxy
func (*Proxy) CompleteEndPointAuthorization ¶
func (p *Proxy) CompleteEndPointAuthorization(downIP net.IP, downPort int, upConn, downConn net.Conn) (bool, error)
CompleteEndPointAuthorization -- Aporeto Handshake on top of a completed connection We will define states here equivalent to SYN_SENT AND SYN_RECEIVED
func (*Proxy) RunNetworkServer ¶
RunNetworkServer implements enforcer.Enforcer interface
func (*Proxy) StartClientAuthStateMachine ¶
func (p *Proxy) StartClientAuthStateMachine(downIP net.IP, downPort int, downConn net.Conn) (bool, error)
StartClientAuthStateMachine -- Starts the aporeto handshake for client application
func (*Proxy) StartServerAuthStateMachine ¶
func (p *Proxy) StartServerAuthStateMachine(ip fmt.Stringer, backendport int, upConn net.Conn) (bool, error)
StartServerAuthStateMachine -- Start the aporeto handshake for a server application
func (*Proxy) UpdateCaches ¶
UpdateCaches updates the port cache only.
func (*Proxy) UpdateSecrets ¶
func (p *Proxy) UpdateSecrets(cert *tls.Certificate, caPool *x509.CertPool, s secrets.Secrets, certPEM, keyPEM string)
UpdateSecrets updates the secrets of the connections.
Click to show internal directories.
Click to hide internal directories.