Documentation ¶
Index ¶
- Constants
- func NextAccessLogPort() uint32
- type DockerOptions
- type Factory
- type Instance
- func (ei *Instance) AdminClient() *admincli.Client
- func (ei *Instance) Binary() string
- func (ei *Instance) Clean()
- func (ei *Instance) ConfigDump() (string, error)deprecated
- func (ei *Instance) DisablePanicMode() error
- func (ei *Instance) EnablePanicMode() error
- func (ei *Instance) LocalAddr() string
- func (ei *Instance) Logs() (string, error)
- func (ei *Instance) Run(port int) errordeprecated
- func (ei *Instance) RunWith(runConfig RunConfig) error
- func (ei *Instance) RunWithConfigFile(port int, configFile string) error
- func (ei *Instance) RunWithRole(role string, port int) errordeprecated
- func (ei *Instance) RunWithRoleAndRestXds(role string, glooPort, restXdsPort int) errordeprecated
- func (ei *Instance) Statistics() (string, error)
- func (ei *Instance) StructuredConfigDump() (*adminv3.ConfigDump, error)
- type RequestPorts
- type RunConfig
- type SafeBuffer
Constants ¶
View Source
const (
DefaultProxyName = "default~proxy"
)
View Source
const (
ServiceName = "gateway-proxy"
)
Variables ¶
This section is empty.
Functions ¶
func NextAccessLogPort ¶
func NextAccessLogPort() uint32
Types ¶
type DockerOptions ¶
type DockerOptions struct { // Extra volume arguments Volumes []string // Extra env arguments. // see https://docs.docker.com/engine/reference/run/#env-environment-variables for more info Env []string }
DockerOptions contains extra options for running in docker
type Factory ¶
type Factory interface { NewInstance() *Instance Clean() }
Factory is a helper for running multiple envoy instances
func NewDockerFactory ¶
type Instance ¶
type Instance struct { AccessLogAddr string AccessLogPort uint32 // Path to access logs for binary run AccessLogs string RatelimitAddr string RatelimitPort uint32 ID string Role string LogLevel string GlooAddr string // address for gloo and services Port uint32 RestXdsPort uint32 // Envoy API Version to use, default to V3 ApiVersion string DockerOptions UseDocker bool DockerImage string DockerContainerName string *RequestPorts // contains filtered or unexported fields }
func (*Instance) AdminClient ¶ added in v1.17.0
func (*Instance) ConfigDump
deprecated
func (*Instance) DisablePanicMode ¶
func (*Instance) EnablePanicMode ¶
func (*Instance) RunWithConfigFile ¶
func (*Instance) RunWithRole
deprecated
func (*Instance) RunWithRoleAndRestXds
deprecated
func (*Instance) Statistics ¶
func (*Instance) StructuredConfigDump ¶
func (ei *Instance) StructuredConfigDump() (*adminv3.ConfigDump, error)
type RequestPorts ¶
type RequestPorts struct { HttpPort uint32 HttpsPort uint32 HybridPort uint32 TcpPort uint32 AdminPort uint32 }
RequestPorts are the ports that the Instance will listen on for requests
type SafeBuffer ¶
type SafeBuffer struct {
// contains filtered or unexported fields
}
SafeBuffer is a goroutine safe bytes.Buffer
func (*SafeBuffer) String ¶
func (s *SafeBuffer) String() string
String returns the contents of the unread portion of the buffer as a string. If the Buffer is a nil pointer, it returns "<nil>".
Click to show internal directories.
Click to hide internal directories.