kedge_config_http_routes

package
v1.0.0-beta.test.11 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package kedge_config_http_routes is a generated protocol buffer package.

It is generated from these files:

kedge/config/http/routes/adhoc.proto
kedge/config/http/routes/routes.proto

It has these top-level messages:

Adhoc
Route

Package kedge_config_http_routes is a generated protocol buffer package.

It is generated from these files:

kedge/config/http/routes/adhoc.proto
kedge/config/http/routes/routes.proto

It has these top-level messages:

Adhoc
Route

Index

Constants

This section is empty.

Variables

View Source
var ProxyMode_name = map[int32]string{
	0: "ANY",
	1: "REVERSE_PROXY",
	2: "FORWARD_PROXY",
}
View Source
var ProxyMode_value = map[string]int32{
	"ANY":           0,
	"REVERSE_PROXY": 1,
	"FORWARD_PROXY": 2,
}

Functions

This section is empty.

Types

type Adhoc

type Adhoc struct {
	// / dns_name_matcher matches the hostname that will be resolved using A or SRV records.
	// / The names are matched with a * prefix. For example:
	// / - *.pod.cluster.local
	// / - *.my_namespace.svc.cluster.local
	// / - *.local
	// / The first rule that matches a DNS name will be used, and its ports will be checked.
	DnsNameMatcher string `protobuf:"bytes,1,opt,name=dns_name_matcher,json=dnsNameMatcher" json:"dns_name_matcher,omitempty"`
	// / Port controls the :port behaviour of the URI requested.
	Port *Adhoc_Port `protobuf:"bytes,2,opt,name=port" json:"port,omitempty"`
}

/ Adhoc describes an adhoc proxying method that is not backed by a backend, but dials a "free form" DNS record.

func (*Adhoc) Descriptor

func (*Adhoc) Descriptor() ([]byte, []int)

func (*Adhoc) GetDnsNameMatcher

func (m *Adhoc) GetDnsNameMatcher() string

func (*Adhoc) GetPort

func (m *Adhoc) GetPort() *Adhoc_Port

func (*Adhoc) ProtoMessage

func (*Adhoc) ProtoMessage()

func (*Adhoc) Reset

func (m *Adhoc) Reset()

func (*Adhoc) String

func (m *Adhoc) String() string

func (*Adhoc) Validate

func (this *Adhoc) Validate() error

type Adhoc_Port

type Adhoc_Port struct {
	// / default is the default port used if no entry is present.
	// / This defaults to 80.
	Default uint32 `protobuf:"varint,1,opt,name=default" json:"default,omitempty"`
	// / allowed ports is a list of whitelisted ports that this Adhoc rule will allow.
	Allowed []uint32 `protobuf:"varint,3,rep,packed,name=allowed" json:"allowed,omitempty"`
	// / allowed_ranges is a list of whitelisted port ranges that this Adhoc rule will allow.
	AllowedRanges []*Adhoc_Port_Range `protobuf:"bytes,4,rep,name=allowed_ranges,json=allowedRanges" json:"allowed_ranges,omitempty"`
}

/ Port controls how the :port part of the URI is processed.

func (*Adhoc_Port) Descriptor

func (*Adhoc_Port) Descriptor() ([]byte, []int)

func (*Adhoc_Port) GetAllowed

func (m *Adhoc_Port) GetAllowed() []uint32

func (*Adhoc_Port) GetAllowedRanges

func (m *Adhoc_Port) GetAllowedRanges() []*Adhoc_Port_Range

func (*Adhoc_Port) GetDefault

func (m *Adhoc_Port) GetDefault() uint32

func (*Adhoc_Port) ProtoMessage

func (*Adhoc_Port) ProtoMessage()

func (*Adhoc_Port) Reset

func (m *Adhoc_Port) Reset()

func (*Adhoc_Port) String

func (m *Adhoc_Port) String() string

func (*Adhoc_Port) Validate

func (this *Adhoc_Port) Validate() error

type Adhoc_Port_Range

type Adhoc_Port_Range struct {
	// / from is an inclusive lower bound for the port range
	From uint32 `protobuf:"varint,1,opt,name=from" json:"from,omitempty"`
	// / to is an inclusive upper bound for the port range
	To uint32 `protobuf:"varint,2,opt,name=to" json:"to,omitempty"`
}

func (*Adhoc_Port_Range) Descriptor

func (*Adhoc_Port_Range) Descriptor() ([]byte, []int)

func (*Adhoc_Port_Range) GetFrom

func (m *Adhoc_Port_Range) GetFrom() uint32

func (*Adhoc_Port_Range) GetTo

func (m *Adhoc_Port_Range) GetTo() uint32

func (*Adhoc_Port_Range) ProtoMessage

func (*Adhoc_Port_Range) ProtoMessage()

func (*Adhoc_Port_Range) Reset

func (m *Adhoc_Port_Range) Reset()

func (*Adhoc_Port_Range) String

func (m *Adhoc_Port_Range) String() string

func (*Adhoc_Port_Range) Validate

func (this *Adhoc_Port_Range) Validate() error

type ProxyMode

type ProxyMode int32
const (
	ProxyMode_ANY ProxyMode = 0
	// / Reverse Proxy is when the FE serves an authority (Host) publicly and clients connect to that authority
	// / directly. This is used to expose publicly DNS-resolvable names.
	ProxyMode_REVERSE_PROXY ProxyMode = 1
	// / Forward Proxy is when the FE serves as an HTTP_PROXY for a browser or an application. The resolution of the
	// / backend is done by the FE itself, so non-public names can be addressed.
	// / This may be from the 90s, but it still is very useful.
	// /
	// / IMPORTANT: If you have a PAC file configured in Firefox, the HTTPS rule behaves differently than in Chrome. The
	// / proxied requests are not FORWARD_PROXY requests but REVERSE_PROXY_REQUESTS.
	ProxyMode_FORWARD_PROXY ProxyMode = 2
)

func (ProxyMode) EnumDescriptor

func (ProxyMode) EnumDescriptor() ([]byte, []int)

func (ProxyMode) String

func (x ProxyMode) String() string

type Route

type Route struct {
	// / backend_name is the string identifying the HTTP backend pool to send data to.
	BackendName string `protobuf:"bytes,1,opt,name=backend_name,json=backendName" json:"backend_name,omitempty"`
	// / path_rules is a globbing expression that matches a URL path of the request.
	// / See: https://cloud.google.com/compute/docs/load-balancing/http/url-map
	// / If not present, '/*' is default.
	PathRules []string `protobuf:"bytes,2,rep,name=path_rules,json=pathRules" json:"path_rules,omitempty"`
	// / host_matcher matches on the ':authority' header (a.k.a. Host header) enabling Virtual Host-like proxying.
	// / The matching is done through lower-case string-equality.
	// / If none are present, the route skips ':authority' checks.
	HostMatcher string `protobuf:"bytes,3,opt,name=host_matcher,json=hostMatcher" json:"host_matcher,omitempty"`
	// / metadata_matcher matches any HTTP inbound request Headers.
	// / Eeach key provided must find a match for the route to match.
	// / The matching is done through lower-case key match and explicit string-equality of values.
	// / If none are present, the route skips metadata checks.
	HeaderMatcher map[string]string `` /* 167-byte string literal not displayed */
	// / proxy_mode controlls what kind of inbound requests this route matches. See
	ProxyMode ProxyMode `protobuf:"varint,5,opt,name=proxy_mode,json=proxyMode,enum=kedge.config.http.routes.ProxyMode" json:"proxy_mode,omitempty"`
	// / Optional port matcher. If 0 route will ignore port.
	PortMatcher   uint32 `protobuf:"varint,6,opt,name=port_matcher,json=portMatcher" json:"port_matcher,omitempty"`
	Autogenerated bool   `protobuf:"varint,7,opt,name=autogenerated" json:"autogenerated,omitempty"`
}

/ Route describes a mapping between a stable proxying endpoint and a pre-defined backend.

func (*Route) Descriptor

func (*Route) Descriptor() ([]byte, []int)

func (*Route) GetAutogenerated

func (m *Route) GetAutogenerated() bool

func (*Route) GetBackendName

func (m *Route) GetBackendName() string

func (*Route) GetHeaderMatcher

func (m *Route) GetHeaderMatcher() map[string]string

func (*Route) GetHostMatcher

func (m *Route) GetHostMatcher() string

func (*Route) GetPathRules

func (m *Route) GetPathRules() []string

func (*Route) GetPortMatcher

func (m *Route) GetPortMatcher() uint32

func (*Route) GetProxyMode

func (m *Route) GetProxyMode() ProxyMode

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) Validate

func (this *Route) Validate() error

Jump to

Keyboard shortcuts

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