admin

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerAddr      = "127.0.0.1:9901"
	AddressPathFlag = "--admin-address-path"
)

Variables

This section is empty.

Functions

func NewAdminClient

func NewAdminClient(ctx context.Context, client *http.Client, adminAddressPath string) (internalapi.AdminClient, error)

NewAdminClient creates an AdminClient by polling for the admin port at adminAddressPath.

func NewAdminClientForURL added in v1.5.0

func NewAdminClientForURL(baseURL string, client *http.Client) (internalapi.AdminClient, error)

NewAdminClientForURL creates an AdminClient for the given base URL and HTTP client factory.

func PollEnvoyPidAndAdminAddressPath

func PollEnvoyPidAndAdminAddressPath(ctx context.Context, funcEPid int, runID string) (envoyPid int, adminAddressPath string, err error)

PollEnvoyPidAndAdminAddressPath polls for a child process tagged with runID and extracts its pid and admin address path from its command line.

This polls because the child may not exist yet when the caller starts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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