Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FatalError ¶
type FatalError struct {
Err error
}
FatalError is an error that should cause the runtime to exit.
type Option ¶
type Option func(*Runtime)
Option configures a Runtime.
func WithArgs ¶
WithArgs sets additional arguments to pass to Envoy. The arguments are appended to the default arguments.
func WithBootstrapConfigYAML ¶
WithBootstrapConfigYAML sets the Envoy bootstrap config YAML.
func WithCluster ¶
WithCluster sets the Envoy cluster name. If this is not set, a random cluster name is used. The cluster name is used in the Envoy bootstrap config.
func WithGoPluginDir ¶
WithGoPluginDir sets the directory to load Go plugins from.
func WithLogsCollector ¶
func WithLogsCollector(c logs.LogsCollector) Option
WithLogsCollector sets the logs collector.
func WithRelease ¶
WithRelease sets the Envoy release to use. If this is not set, the latest release is used.
type Release ¶
func (*Release) DownloadBinaryFromGitHub ¶
type Runtime ¶
type Runtime struct { EnvoyPath string BootstrapConfigYAML string Release *Release Cluster string // Args are additional arguments to pass to Envoy. Args []string // contains filtered or unexported fields }
Runtime vendors the Envoy binary and runs it.
func (*Runtime) RuntimeStatus ¶
func (r *Runtime) RuntimeStatus() RuntimeStatus
RuntimeStatus returns the status of the Envoy process.
type RuntimeStatus ¶
type RuntimeStatus struct { StartedAt time.Time Running bool ProcState *os.ProcessState }