Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAdminAddress ¶
FindAdminAddress parses the admin address from config sources.
func FindAdminAddressFromArgs ¶ added in v1.3.0
FindAdminAddressFromArgs extracts config sources from args and returns the admin address.
Types ¶
type Address ¶
type Address struct {
SocketAddress socketAddress `yaml:"socket_address"`
}
Address is the YAML representation of an envoy.config.core.v3.Address.
type Config ¶
type Config struct {
Admin string // host:port format, empty if no admin
StaticListeners []Listener
}
Config holds the admin and static listener metadata parsed from bootstrap YAML.
func ParseListeners ¶
ParseListeners parses the admin address (if any) and all static listeners from config sources.
This mimics Envoy's config merging behavior from source/server/server.cc:
- configPath is loaded first (if non-empty)
- configYaml is merged on top via protobuf MergeFrom (if non-empty)
- configYaml always wins for conflicting fields, regardless of which was specified first on CLI
For listeners with the same name, the later config wins (protobuf MergeFrom behavior).
Click to show internal directories.
Click to hide internal directories.