kedge_config_http_backends

package
v0.1.1-rc.3 Latest Latest
Warning

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

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

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

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) 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) 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 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

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

func (Balancer) String

func (x Balancer) String() string

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) 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