Documentation ¶
Overview ¶
Package kedge_config_http_backends is a generated protocol buffer package.
It is generated from these files:
kedge/config/http/backends/backend.proto
It has these top-level messages:
Backend Middleware Security
Package kedge_config_http_backends is a generated protocol buffer package.
It is generated from these files:
kedge/config/http/backends/backend.proto
It has these top-level messages:
Backend Middleware Security
Index ¶
- Variables
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)
- func (m *Backend) GetAutogenerated() bool
- func (m *Backend) GetBalancer() Balancer
- func (m *Backend) GetDisableConntracking() bool
- func (m *Backend) GetHost() *kedge_config_common_resolvers.HostResolver
- func (m *Backend) GetK8S() *kedge_config_common_resolvers.K8SResolver
- func (m *Backend) GetName() string
- func (m *Backend) GetResolver() isBackend_Resolver
- func (m *Backend) GetSecurity() *Security
- func (m *Backend) GetSrv() *kedge_config_common_resolvers.SrvResolver
- func (*Backend) ProtoMessage()
- func (m *Backend) Reset()
- func (m *Backend) String() string
- func (this *Backend) Validate() error
- func (*Backend) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Backend_Host
- type Backend_K8S
- type Backend_Srv
- type Balancer
- type Middleware
- func (*Middleware) Descriptor() ([]byte, []int)
- func (m *Middleware) GetMiddleware() isMiddleware_Middleware
- func (m *Middleware) GetRetry() *Middleware_Retry
- func (*Middleware) ProtoMessage()
- func (m *Middleware) Reset()
- func (m *Middleware) String() string
- func (this *Middleware) Validate() error
- func (*Middleware) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Middleware_Retry
- func (*Middleware_Retry) Descriptor() ([]byte, []int)
- func (m *Middleware_Retry) GetOnCodes() []uint32
- func (m *Middleware_Retry) GetRetryCount() uint32
- func (*Middleware_Retry) ProtoMessage()
- func (m *Middleware_Retry) Reset()
- func (m *Middleware_Retry) String() string
- func (this *Middleware_Retry) Validate() error
- type Middleware_Retry_
- type Security
Constants ¶
This section is empty.
Variables ¶
View Source
var Balancer_name = map[int32]string{
0: "ROUND_ROBIN",
}
View Source
var Balancer_value = map[string]int32{
"ROUND_ROBIN": 0,
}
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { // / name is the string identifying the backend in all other configs. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // / balancer decides which balancing policy to use. Balancer Balancer `protobuf:"varint,2,opt,name=balancer,enum=kedge.config.http.backends.Balancer" json:"balancer,omitempty"` // / disable_conntracking turns off the /debug/events tracing and Prometheus monitoring of the pool sie for this backend. DisableConntracking bool `protobuf:"varint,3,opt,name=disable_conntracking,json=disableConntracking" json:"disable_conntracking,omitempty"` // / security controls the TLS connection details for the backend (HTTPS). If not present, insecure HTTP mode is used. Security *Security `protobuf:"bytes,4,opt,name=security" json:"security,omitempty"` // Types that are valid to be assigned to Resolver: // *Backend_Srv // *Backend_K8S // *Backend_Host Resolver isBackend_Resolver `protobuf_oneof:"resolver"` Autogenerated bool `protobuf:"varint,6,opt,name=autogenerated" json:"autogenerated,omitempty"` }
/ Backend data will be used to set up pool of HTTP connection to specified endpoint that will be kept open.
func (*Backend) Descriptor ¶
func (*Backend) GetAutogenerated ¶
func (*Backend) GetBalancer ¶
func (*Backend) GetDisableConntracking ¶
func (*Backend) GetHost ¶
func (m *Backend) GetHost() *kedge_config_common_resolvers.HostResolver
func (*Backend) GetK8S ¶
func (m *Backend) GetK8S() *kedge_config_common_resolvers.K8SResolver
func (*Backend) GetResolver ¶
func (m *Backend) GetResolver() isBackend_Resolver
func (*Backend) GetSecurity ¶
func (*Backend) GetSrv ¶
func (m *Backend) GetSrv() *kedge_config_common_resolvers.SrvResolver
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
type Backend_Host ¶
type Backend_Host struct {
Host *kedge_config_common_resolvers.HostResolver `protobuf:"bytes,12,opt,name=host,oneof"`
}
type Backend_K8S ¶
type Backend_K8S struct {
K8S *kedge_config_common_resolvers.K8SResolver `protobuf:"bytes,11,opt,name=k8s,oneof"`
}
type Backend_Srv ¶
type Backend_Srv struct {
Srv *kedge_config_common_resolvers.SrvResolver `protobuf:"bytes,10,opt,name=srv,oneof"`
}
type Balancer ¶
type Balancer int32
/ Balancer chooses which HTTP backend balancing policy to use.
const ( // ROUND_ROBIN is the simpliest and default load balancing policy Balancer_ROUND_ROBIN Balancer = 0 )
func (Balancer) EnumDescriptor ¶
type Middleware ¶
type Middleware struct { // Types that are valid to be assigned to Middleware: // *Middleware_Retry_ Middleware isMiddleware_Middleware `protobuf_oneof:"Middleware"` }
TODO(bplotka): Implemment that. Not really supported now.
func (*Middleware) Descriptor ¶
func (*Middleware) Descriptor() ([]byte, []int)
func (*Middleware) GetMiddleware ¶
func (m *Middleware) GetMiddleware() isMiddleware_Middleware
func (*Middleware) GetRetry ¶
func (m *Middleware) GetRetry() *Middleware_Retry
func (*Middleware) ProtoMessage ¶
func (*Middleware) ProtoMessage()
func (*Middleware) Reset ¶
func (m *Middleware) Reset()
func (*Middleware) String ¶
func (m *Middleware) String() string
func (*Middleware) Validate ¶
func (this *Middleware) Validate() error
func (*Middleware) XXX_OneofFuncs ¶
func (*Middleware) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type Middleware_Retry ¶
type Middleware_Retry struct { // / retry_count specifies how many times to retry. RetryCount uint32 `protobuf:"varint,1,opt,name=retry_count,json=retryCount" json:"retry_count,omitempty"` // / on_codes specifies the list of codes to retry on. OnCodes []uint32 `protobuf:"varint,2,rep,packed,name=on_codes,json=onCodes" json:"on_codes,omitempty"` }
func (*Middleware_Retry) Descriptor ¶
func (*Middleware_Retry) Descriptor() ([]byte, []int)
func (*Middleware_Retry) GetOnCodes ¶
func (m *Middleware_Retry) GetOnCodes() []uint32
func (*Middleware_Retry) GetRetryCount ¶
func (m *Middleware_Retry) GetRetryCount() uint32
func (*Middleware_Retry) ProtoMessage ¶
func (*Middleware_Retry) ProtoMessage()
func (*Middleware_Retry) Reset ¶
func (m *Middleware_Retry) Reset()
func (*Middleware_Retry) String ¶
func (m *Middleware_Retry) String() string
func (*Middleware_Retry) Validate ¶
func (this *Middleware_Retry) Validate() error
type Middleware_Retry_ ¶
type Middleware_Retry_ struct {
Retry *Middleware_Retry `protobuf:"bytes,1,opt,name=retry,oneof"`
}
type Security ¶
type Security struct { // / insecure_skip_verify skips the server certificate verification completely. // / No TLS config (for testclient or server) will be used. This should *not* be used in production software. InsecureSkipVerify bool `protobuf:"varint,1,opt,name=insecure_skip_verify,json=insecureSkipVerify" json:"insecure_skip_verify,omitempty"` // / config_name indicates the TlsServerConfig to be used for this connection. ConfigName string `protobuf:"bytes,2,opt,name=config_name,json=configName" json:"config_name,omitempty"` }
/ Security settings for a backend.
func (*Security) Descriptor ¶
func (*Security) GetConfigName ¶
func (*Security) GetInsecureSkipVerify ¶
func (*Security) ProtoMessage ¶
func (*Security) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.