AppProxy maintains state for proxies connections from listen to backend.
func NewAppProxy(tp tokenaccessor.TokenAccessor, c collector.EventCollector, puFromID cache.DataStore, certificate *tls.Certificate, s secrets.Secrets) (*AppProxy, error)
NewAppProxy creates a new instance of the application proxy.
Enforce implements enforcer.Enforcer interface. It will create the necessary proxies for the particular PU. Enforce can be called multiple times, once for every policy update.
GetFilterQueue is a stub for TCP proxy
Run starts all the network side proxies. Application side proxies will have to start during enforce in order to support multiple Linux processes.
Unenforce implements enforcer.Enforcer interface. It will shutdown the app side of the proxy.
UpdateSecrets updates the secrets of running enforcers managed by trireme. Remote enforcers will get the secret updates with the next policy push.
ServerInterface describes the methods required by an application processor.