Documentation
¶
Overview ¶
Package api allows Go projects to use func-e as a library, decoupled from how the func-e binary reads environment variables or CLI args.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunFunc ¶ added in v1.2.0
RunFunc downloads Envoy and runs it as a process with the arguments passed to it. Use api.RunOption for configuration options.
On success, this blocks and returns nil when either `ctx` is done, or the process exits with status zero.
The default implementation of RunFunc is func_e.Run.
type RunOption ¶
RunOption is a configuration for RunFunc.
Note: None of these default to values read from OS environment variables. If you wish to introduce such behavior, populate them in calling code.
func EnvoyVersion ¶
EnvoyVersion overrides the version of Envoy to run. Defaults to the contents of "$HomeDir/versions/version".
When that file is missing, it is generated from ".latestVersion" from the EnvoyVersionsURL. Its value can be in full version major.minor.patch format, e.g. 1.18.1 or without patch component, major.minor, e.g. 1.18.
func EnvoyVersionsURL ¶
EnvoyVersionsURL is the path to the envoy-versions.json. Defaults to "https://archive.tetratelabs.io/envoy/envoy-versions.json"