Documentation ¶
Overview ¶
Package envoyentrypoint
This is intended to be used a Docker entrypoint for Envoy: * Run Envoy in a subprocess * Forward all signals to the subprocess, except for SIGTERM * Monitor task metadata to terminate Envoy after application container(s) stop
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppContainerMonitor ¶
type AppContainerMonitor struct {
// contains filtered or unexported fields
}
func NewAppContainerMonitor ¶
func NewAppContainerMonitor(log hclog.Logger, ctx context.Context) *AppContainerMonitor
func (*AppContainerMonitor) Done ¶
func (t *AppContainerMonitor) Done() chan struct{}
func (*AppContainerMonitor) Run ¶
func (t *AppContainerMonitor) Run()
Run will wake up when SIGTERM is received. Then, it polls task metadata until the application container(s) stop. Use the Done() channel to wait until it has finished. It is cancellable through its context.
Click to show internal directories.
Click to hide internal directories.