kedge_config_grpc_backends

package
v0.1.1-rc.6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Backend) GetAutogenerated

func (m *Backend) GetAutogenerated() bool

func (*Backend) GetBalancer

func (m *Backend) GetBalancer() Balancer

func (*Backend) GetDisableConntracking

func (m *Backend) GetDisableConntracking() bool

func (*Backend) GetHost

func (*Backend) GetInterceptors

func (m *Backend) GetInterceptors() []*Interceptor

func (*Backend) GetK8S

func (*Backend) GetName

func (m *Backend) GetName() string

func (*Backend) GetResolver

func (m *Backend) GetResolver() isBackend_Resolver

func (*Backend) GetSecurity

func (m *Backend) GetSecurity() *Security

func (*Backend) GetSrv

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) Reset

func (m *Backend) Reset()

func (*Backend) String

func (m *Backend) String() string

func (*Backend) Validate

func (this *Backend) Validate() error

func (*Backend) XXX_OneofFuncs

func (*Backend) 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 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

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

func (Balancer) String

func (x Balancer) String() string

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) Descriptor() ([]byte, []int)

func (*Security) GetConfigName

func (m *Security) GetConfigName() string

func (*Security) GetInsecureSkipVerify

func (m *Security) GetInsecureSkipVerify() bool

func (*Security) ProtoMessage

func (*Security) ProtoMessage()

func (*Security) Reset

func (m *Security) Reset()

func (*Security) String

func (m *Security) String() string

func (*Security) Validate

func (this *Security) Validate() error

Jump to

Keyboard shortcuts

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