Documentation ¶
Overview ¶
Package kedge_config_grpc_backends is a generated protocol buffer package.
It is generated from these files:
kedge/config/grpc/backends/backend.proto
It has these top-level messages:
Backend Interceptor Security
Package kedge_config_grpc_backends is a generated protocol buffer package.
It is generated from these files:
kedge/config/grpc/backends/backend.proto
It has these top-level messages:
Backend Interceptor 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) GetInterceptors() []*Interceptor
- 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 Interceptor
- func (*Interceptor) Descriptor() ([]byte, []int)
- func (m *Interceptor) GetInterceptor() isInterceptor_Interceptor
- func (m *Interceptor) GetPrometheus() bool
- func (*Interceptor) ProtoMessage()
- func (m *Interceptor) Reset()
- func (m *Interceptor) String() string
- func (this *Interceptor) Validate() error
- func (*Interceptor) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Interceptor_Prometheus
- 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 bakcend 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.grpc.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. If not present, Insecure (plain text) mode is used. Security *Security `protobuf:"bytes,4,opt,name=security" json:"security,omitempty"` // / interceptors controls what interceptors will be enabled for this backend. Interceptors []*Interceptor `protobuf:"bytes,5,rep,name=interceptors" json:"interceptors,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 gRPC ClientConns 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) GetInterceptors ¶
func (m *Backend) GetInterceptors() []*Interceptor
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 gRPC balancing policy to use.
const ( // ROUND_ROBIN is the simpliest and default load balancing policy Balancer_ROUND_ROBIN Balancer = 0 )
func (Balancer) EnumDescriptor ¶
type Interceptor ¶
type Interceptor struct { // Types that are valid to be assigned to Interceptor: // *Interceptor_Prometheus Interceptor isInterceptor_Interceptor `protobuf_oneof:"interceptor"` }
func (*Interceptor) Descriptor ¶
func (*Interceptor) Descriptor() ([]byte, []int)
func (*Interceptor) GetInterceptor ¶
func (m *Interceptor) GetInterceptor() isInterceptor_Interceptor
func (*Interceptor) GetPrometheus ¶
func (m *Interceptor) GetPrometheus() bool
func (*Interceptor) ProtoMessage ¶
func (*Interceptor) ProtoMessage()
func (*Interceptor) Reset ¶
func (m *Interceptor) Reset()
func (*Interceptor) String ¶
func (m *Interceptor) String() string
func (*Interceptor) Validate ¶
func (this *Interceptor) Validate() error
func (*Interceptor) XXX_OneofFuncs ¶
func (*Interceptor) 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 Interceptor_Prometheus ¶
type Interceptor_Prometheus struct {
Prometheus bool `protobuf:"varint,1,opt,name=prometheus,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.