local_e2e

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConsul

func RunConsul(consulConfigDir string) *gexec.Session

func TestPortOpen

func TestPortOpen(address string, port uint) error

Types

type Config

type Config struct {
	Upstreams []Upstream `json:"upstreams"`
}

type Connect

type Connect struct {
	Proxy Proxy `json:"proxy"`
}

type ConsulService

type ConsulService struct {
	Service Service `json:"service"`
}

type ConsulServices

type ConsulServices struct {
	Services []Service `json:"services"`
}

type Proxy

type Proxy struct {
	ExecMode string   `json:"exec_mode"`
	Command  []string `json:"command"`
	Config   Config   `json:"config"`
}

type ProxyConfig

type ProxyConfig struct {
	BindAddress         string     `json:"bind_address"`
	BindPort            uint       `json:"bind_port"`
	LocalServiceAddress string     `json:"local_service_address"`
	Upstreams           []Upstream `json:"upstreams"`
}

type ProxyInfo

type ProxyInfo struct {
	ProxyServiceID    string
	TargetServiceID   string
	TargetServiceName string
	ContentHash       string
	ExecMode          string
	Command           []string
	Config            ProxyConfig
}

func GetProxyInfo

func GetProxyInfo() ProxyInfo

type Service

type Service struct {
	Name    string  `json:"name"`
	Port    int     `json:"port"`
	Connect Connect `json:"connect"`
}

type Upstream

type Upstream struct {
	DestinationName string `json:"destination_name"`
	LocalBindPort   int    `json:"local_bind_port"`
}

Jump to

Keyboard shortcuts

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