envoyentrypoint

package
v0.7.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

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.

type Command

type Command struct {
	UI cli.Ui

	logging.LogOpts
	// contains filtered or unexported fields
}

func (*Command) Help

func (c *Command) Help() string

func (*Command) Run

func (c *Command) Run(args []string) int

func (*Command) Synopsis

func (c *Command) Synopsis() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL