core

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HealthStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "HEALTHY",
	2: "UNHEALTHY",
	3: "DRAINING",
	4: "TIMEOUT",
	5: "DEGRADED",
}
View Source
var HealthStatus_value = map[string]int32{
	"UNKNOWN":   0,
	"HEALTHY":   1,
	"UNHEALTHY": 2,
	"DRAINING":  3,
	"TIMEOUT":   4,
	"DEGRADED":  5,
}

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck struct {
	// The time to wait for a health check response. If the timeout is reached the
	// health check attempt will be considered a failure.
	Timeout *time.Duration `protobuf:"bytes,1,opt,name=timeout,proto3,stdduration" json:"timeout,omitempty"`
	// The interval between health checks.
	Interval *time.Duration `protobuf:"bytes,2,opt,name=interval,proto3,stdduration" json:"interval,omitempty"`
	// An optional jitter amount in milliseconds. If specified, Envoy will start health
	// checking after for a random time in ms between 0 and initial_jitter. This only
	// applies to the first health check.
	InitialJitter *types.Duration `protobuf:"bytes,20,opt,name=initial_jitter,json=initialJitter,proto3" json:"initial_jitter,omitempty"`
	// An optional jitter amount in milliseconds. If specified, during every
	// interval Envoy will add interval_jitter to the wait time.
	IntervalJitter *types.Duration `protobuf:"bytes,3,opt,name=interval_jitter,json=intervalJitter,proto3" json:"interval_jitter,omitempty"`
	// An optional jitter amount as a percentage of interval_ms. If specified,
	// during every interval Envoy will add interval_ms *
	// interval_jitter_percent / 100 to the wait time.
	//
	// If interval_jitter_ms and interval_jitter_percent are both set, both of
	// them will be used to increase the wait time.
	IntervalJitterPercent uint32 `` /* 128-byte string literal not displayed */
	// The number of unhealthy health checks required before a host is marked
	// unhealthy. Note that for *http* health checking if a host responds with 503
	// this threshold is ignored and the host is considered unhealthy immediately.
	UnhealthyThreshold *types.UInt32Value `protobuf:"bytes,4,opt,name=unhealthy_threshold,json=unhealthyThreshold,proto3" json:"unhealthy_threshold,omitempty"`
	// The number of healthy health checks required before a host is marked
	// healthy. Note that during startup, only a single successful health check is
	// required to mark a host healthy.
	HealthyThreshold *types.UInt32Value `protobuf:"bytes,5,opt,name=healthy_threshold,json=healthyThreshold,proto3" json:"healthy_threshold,omitempty"`
	// Reuse health check connection between health checks. Default is true.
	ReuseConnection *types.BoolValue `protobuf:"bytes,7,opt,name=reuse_connection,json=reuseConnection,proto3" json:"reuse_connection,omitempty"`
	// Types that are valid to be assigned to HealthChecker:
	//	*HealthCheck_HttpHealthCheck_
	//	*HealthCheck_TcpHealthCheck_
	//	*HealthCheck_GrpcHealthCheck_
	//	*HealthCheck_CustomHealthCheck_
	HealthChecker isHealthCheck_HealthChecker `protobuf_oneof:"health_checker"`
	// The "no traffic interval" is a special health check interval that is used when a cluster has
	// never had traffic routed to it. This lower interval allows cluster information to be kept up to
	// date, without sending a potentially large amount of active health checking traffic for no
	// reason. Once a cluster has been used for traffic routing, Envoy will shift back to using the
	// standard health check interval that is defined. Note that this interval takes precedence over
	// any other.
	//
	// The default value for "no traffic interval" is 60 seconds.
	NoTrafficInterval *types.Duration `protobuf:"bytes,12,opt,name=no_traffic_interval,json=noTrafficInterval,proto3" json:"no_traffic_interval,omitempty"`
	// The "unhealthy interval" is a health check interval that is used for hosts that are marked as
	// unhealthy. As soon as the host is marked as healthy, Envoy will shift back to using the
	// standard health check interval that is defined.
	//
	// The default value for "unhealthy interval" is the same as "interval".
	UnhealthyInterval *types.Duration `protobuf:"bytes,14,opt,name=unhealthy_interval,json=unhealthyInterval,proto3" json:"unhealthy_interval,omitempty"`
	// The "unhealthy edge interval" is a special health check interval that is used for the first
	// health check right after a host is marked as unhealthy. For subsequent health checks
	// Envoy will shift back to using either "unhealthy interval" if present or the standard health
	// check interval that is defined.
	//
	// The default value for "unhealthy edge interval" is the same as "unhealthy interval".
	UnhealthyEdgeInterval *types.Duration `` /* 127-byte string literal not displayed */
	// The "healthy edge interval" is a special health check interval that is used for the first
	// health check right after a host is marked as healthy. For subsequent health checks
	// Envoy will shift back to using the standard health check interval that is defined.
	//
	// The default value for "healthy edge interval" is the same as the default interval.
	HealthyEdgeInterval *types.Duration `protobuf:"bytes,16,opt,name=healthy_edge_interval,json=healthyEdgeInterval,proto3" json:"healthy_edge_interval,omitempty"`
	// Specifies the path to the `health check event log (arch_overview_health_check_logging)`.
	// If empty, no event log will be written.
	EventLogPath string `protobuf:"bytes,17,opt,name=event_log_path,json=eventLogPath,proto3" json:"event_log_path,omitempty"`
	// If set to true, health check failure events will always be logged. If set to false, only the
	// initial health check failure event will be logged.
	// The default value is false.
	AlwaysLogHealthCheckFailures bool     `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral         struct{} `json:"-"`
	XXX_unrecognized             []byte   `json:"-"`
	XXX_sizecache                int32    `json:"-"`
}

func (*HealthCheck) Descriptor

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

func (*HealthCheck) Equal

func (this *HealthCheck) Equal(that interface{}) bool

func (*HealthCheck) GetAlwaysLogHealthCheckFailures

func (m *HealthCheck) GetAlwaysLogHealthCheckFailures() bool

func (*HealthCheck) GetCustomHealthCheck

func (m *HealthCheck) GetCustomHealthCheck() *HealthCheck_CustomHealthCheck

func (*HealthCheck) GetEventLogPath

func (m *HealthCheck) GetEventLogPath() string

func (*HealthCheck) GetGrpcHealthCheck

func (m *HealthCheck) GetGrpcHealthCheck() *HealthCheck_GrpcHealthCheck

func (*HealthCheck) GetHealthChecker

func (m *HealthCheck) GetHealthChecker() isHealthCheck_HealthChecker

func (*HealthCheck) GetHealthyEdgeInterval

func (m *HealthCheck) GetHealthyEdgeInterval() *types.Duration

func (*HealthCheck) GetHealthyThreshold

func (m *HealthCheck) GetHealthyThreshold() *types.UInt32Value

func (*HealthCheck) GetHttpHealthCheck

func (m *HealthCheck) GetHttpHealthCheck() *HealthCheck_HttpHealthCheck

func (*HealthCheck) GetInitialJitter

func (m *HealthCheck) GetInitialJitter() *types.Duration

func (*HealthCheck) GetInterval

func (m *HealthCheck) GetInterval() *time.Duration

func (*HealthCheck) GetIntervalJitter

func (m *HealthCheck) GetIntervalJitter() *types.Duration

func (*HealthCheck) GetIntervalJitterPercent

func (m *HealthCheck) GetIntervalJitterPercent() uint32

func (*HealthCheck) GetNoTrafficInterval

func (m *HealthCheck) GetNoTrafficInterval() *types.Duration

func (*HealthCheck) GetReuseConnection

func (m *HealthCheck) GetReuseConnection() *types.BoolValue

func (*HealthCheck) GetTcpHealthCheck

func (m *HealthCheck) GetTcpHealthCheck() *HealthCheck_TcpHealthCheck

func (*HealthCheck) GetTimeout

func (m *HealthCheck) GetTimeout() *time.Duration

func (*HealthCheck) GetUnhealthyEdgeInterval

func (m *HealthCheck) GetUnhealthyEdgeInterval() *types.Duration

func (*HealthCheck) GetUnhealthyInterval

func (m *HealthCheck) GetUnhealthyInterval() *types.Duration

func (*HealthCheck) GetUnhealthyThreshold

func (m *HealthCheck) GetUnhealthyThreshold() *types.UInt32Value

func (*HealthCheck) Hash added in v1.2.13

func (m *HealthCheck) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) Reset

func (m *HealthCheck) Reset()

func (*HealthCheck) String

func (m *HealthCheck) String() string

func (*HealthCheck) XXX_DiscardUnknown

func (m *HealthCheck) XXX_DiscardUnknown()

func (*HealthCheck) XXX_Marshal

func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheck) XXX_Merge

func (m *HealthCheck) XXX_Merge(src proto.Message)

func (*HealthCheck) XXX_OneofWrappers

func (*HealthCheck) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*HealthCheck) XXX_Size

func (m *HealthCheck) XXX_Size() int

func (*HealthCheck) XXX_Unmarshal

func (m *HealthCheck) XXX_Unmarshal(b []byte) error

type HealthCheck_CustomHealthCheck

type HealthCheck_CustomHealthCheck struct {
	// The registered name of the custom health checker.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A custom health checker specific configuration which depends on the custom health checker
	// being instantiated. See :api:`envoy/config/health_checker` for reference.
	//
	// Types that are valid to be assigned to ConfigType:
	//	*HealthCheck_CustomHealthCheck_Config
	//	*HealthCheck_CustomHealthCheck_TypedConfig
	ConfigType           isHealthCheck_CustomHealthCheck_ConfigType `protobuf_oneof:"config_type"`
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

Custom health check.

func (*HealthCheck_CustomHealthCheck) Descriptor

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

func (*HealthCheck_CustomHealthCheck) Equal

func (this *HealthCheck_CustomHealthCheck) Equal(that interface{}) bool

func (*HealthCheck_CustomHealthCheck) GetConfig

func (m *HealthCheck_CustomHealthCheck) GetConfig() *types.Struct

func (*HealthCheck_CustomHealthCheck) GetConfigType

func (m *HealthCheck_CustomHealthCheck) GetConfigType() isHealthCheck_CustomHealthCheck_ConfigType

func (*HealthCheck_CustomHealthCheck) GetName

func (*HealthCheck_CustomHealthCheck) GetTypedConfig

func (m *HealthCheck_CustomHealthCheck) GetTypedConfig() *types.Any

func (*HealthCheck_CustomHealthCheck) Hash added in v1.2.13

Hash function

func (*HealthCheck_CustomHealthCheck) ProtoMessage

func (*HealthCheck_CustomHealthCheck) ProtoMessage()

func (*HealthCheck_CustomHealthCheck) Reset

func (m *HealthCheck_CustomHealthCheck) Reset()

func (*HealthCheck_CustomHealthCheck) String

func (*HealthCheck_CustomHealthCheck) XXX_DiscardUnknown

func (m *HealthCheck_CustomHealthCheck) XXX_DiscardUnknown()

func (*HealthCheck_CustomHealthCheck) XXX_Marshal

func (m *HealthCheck_CustomHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheck_CustomHealthCheck) XXX_Merge

func (m *HealthCheck_CustomHealthCheck) XXX_Merge(src proto.Message)

func (*HealthCheck_CustomHealthCheck) XXX_OneofWrappers

func (*HealthCheck_CustomHealthCheck) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*HealthCheck_CustomHealthCheck) XXX_Size

func (m *HealthCheck_CustomHealthCheck) XXX_Size() int

func (*HealthCheck_CustomHealthCheck) XXX_Unmarshal

func (m *HealthCheck_CustomHealthCheck) XXX_Unmarshal(b []byte) error

type HealthCheck_CustomHealthCheck_

type HealthCheck_CustomHealthCheck_ struct {
	CustomHealthCheck *HealthCheck_CustomHealthCheck `protobuf:"bytes,13,opt,name=custom_health_check,json=customHealthCheck,proto3,oneof" json:"custom_health_check,omitempty"`
}

func (*HealthCheck_CustomHealthCheck_) Equal

func (this *HealthCheck_CustomHealthCheck_) Equal(that interface{}) bool

type HealthCheck_CustomHealthCheck_Config

type HealthCheck_CustomHealthCheck_Config struct {
	Config *types.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof" json:"config,omitempty"`
}

func (*HealthCheck_CustomHealthCheck_Config) Equal

func (this *HealthCheck_CustomHealthCheck_Config) Equal(that interface{}) bool

type HealthCheck_CustomHealthCheck_TypedConfig

type HealthCheck_CustomHealthCheck_TypedConfig struct {
	TypedConfig *types.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof" json:"typed_config,omitempty"`
}

func (*HealthCheck_CustomHealthCheck_TypedConfig) Equal

func (this *HealthCheck_CustomHealthCheck_TypedConfig) Equal(that interface{}) bool

type HealthCheck_GrpcHealthCheck

type HealthCheck_GrpcHealthCheck struct {
	// An optional service name parameter which will be sent to gRPC service in
	// `grpc.health.v1.HealthCheckRequest
	// <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_.
	// message. See `gRPC health-checking overview
	// <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information.
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// The value of the :authority header in the gRPC health check request. If
	// left empty (default value), the name of the cluster this health check is associated
	// with will be used.
	Authority            string   `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`grpc.health.v1.Health <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto>`_-based healthcheck. See `gRPC doc <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for details.

func (*HealthCheck_GrpcHealthCheck) Descriptor

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

func (*HealthCheck_GrpcHealthCheck) Equal

func (this *HealthCheck_GrpcHealthCheck) Equal(that interface{}) bool

func (*HealthCheck_GrpcHealthCheck) GetAuthority

func (m *HealthCheck_GrpcHealthCheck) GetAuthority() string

func (*HealthCheck_GrpcHealthCheck) GetServiceName

func (m *HealthCheck_GrpcHealthCheck) GetServiceName() string

func (*HealthCheck_GrpcHealthCheck) Hash added in v1.2.13

func (m *HealthCheck_GrpcHealthCheck) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*HealthCheck_GrpcHealthCheck) ProtoMessage

func (*HealthCheck_GrpcHealthCheck) ProtoMessage()

func (*HealthCheck_GrpcHealthCheck) Reset

func (m *HealthCheck_GrpcHealthCheck) Reset()

func (*HealthCheck_GrpcHealthCheck) String

func (m *HealthCheck_GrpcHealthCheck) String() string

func (*HealthCheck_GrpcHealthCheck) XXX_DiscardUnknown

func (m *HealthCheck_GrpcHealthCheck) XXX_DiscardUnknown()

func (*HealthCheck_GrpcHealthCheck) XXX_Marshal

func (m *HealthCheck_GrpcHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheck_GrpcHealthCheck) XXX_Merge

func (m *HealthCheck_GrpcHealthCheck) XXX_Merge(src proto.Message)

func (*HealthCheck_GrpcHealthCheck) XXX_Size

func (m *HealthCheck_GrpcHealthCheck) XXX_Size() int

func (*HealthCheck_GrpcHealthCheck) XXX_Unmarshal

func (m *HealthCheck_GrpcHealthCheck) XXX_Unmarshal(b []byte) error

type HealthCheck_GrpcHealthCheck_

type HealthCheck_GrpcHealthCheck_ struct {
	GrpcHealthCheck *HealthCheck_GrpcHealthCheck `protobuf:"bytes,11,opt,name=grpc_health_check,json=grpcHealthCheck,proto3,oneof" json:"grpc_health_check,omitempty"`
}

func (*HealthCheck_GrpcHealthCheck_) Equal

func (this *HealthCheck_GrpcHealthCheck_) Equal(that interface{}) bool

type HealthCheck_HttpHealthCheck

type HealthCheck_HttpHealthCheck struct {
	// The value of the host header in the HTTP health check request. If
	// left empty (default value), the name of the cluster this health check is associated
	// with will be used.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Specifies the HTTP path that will be requested during health checking. For example
	// */healthcheck*.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// An optional service name parameter which is used to validate the identity of
	// the health checked cluster. See the `architecture overview
	// (arch_overview_health_checking_identity)` for more information.
	ServiceName string `protobuf:"bytes,5,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// Specifies a list of HTTP headers that should be added to each request that is sent to the
	// health checked cluster. For more information, including details on header value syntax, see
	// the documentation on `custom request headers
	// (config_http_conn_man_headers_custom_request_headers)`.
	RequestHeadersToAdd []*core.HeaderValueOption `protobuf:"bytes,6,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"`
	// Specifies a list of HTTP headers that should be removed from each request that is sent to the
	// health checked cluster.
	RequestHeadersToRemove []string `` /* 131-byte string literal not displayed */
	// If set, health checks will be made using http/2.
	UseHttp2 bool `protobuf:"varint,7,opt,name=use_http2,json=useHttp2,proto3" json:"use_http2,omitempty"`
	// Specifies a list of HTTP response statuses considered healthy. If provided, replaces default
	// 200-only policy - 200 must be included explicitly as needed. Ranges follow half-open
	// semantics of `Int64Range (envoy_api_msg_type.Int64Range)`.
	ExpectedStatuses     []*_type.Int64Range `protobuf:"bytes,9,rep,name=expected_statuses,json=expectedStatuses,proto3" json:"expected_statuses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

[#comment:next free field: 10]

func (*HealthCheck_HttpHealthCheck) Descriptor

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

func (*HealthCheck_HttpHealthCheck) Equal

func (this *HealthCheck_HttpHealthCheck) Equal(that interface{}) bool

func (*HealthCheck_HttpHealthCheck) GetExpectedStatuses

func (m *HealthCheck_HttpHealthCheck) GetExpectedStatuses() []*_type.Int64Range

func (*HealthCheck_HttpHealthCheck) GetHost

func (m *HealthCheck_HttpHealthCheck) GetHost() string

func (*HealthCheck_HttpHealthCheck) GetPath

func (m *HealthCheck_HttpHealthCheck) GetPath() string

func (*HealthCheck_HttpHealthCheck) GetRequestHeadersToAdd

func (m *HealthCheck_HttpHealthCheck) GetRequestHeadersToAdd() []*core.HeaderValueOption

func (*HealthCheck_HttpHealthCheck) GetRequestHeadersToRemove

func (m *HealthCheck_HttpHealthCheck) GetRequestHeadersToRemove() []string

func (*HealthCheck_HttpHealthCheck) GetServiceName

func (m *HealthCheck_HttpHealthCheck) GetServiceName() string

func (*HealthCheck_HttpHealthCheck) GetUseHttp2

func (m *HealthCheck_HttpHealthCheck) GetUseHttp2() bool

func (*HealthCheck_HttpHealthCheck) Hash added in v1.2.13

func (m *HealthCheck_HttpHealthCheck) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*HealthCheck_HttpHealthCheck) ProtoMessage

func (*HealthCheck_HttpHealthCheck) ProtoMessage()

func (*HealthCheck_HttpHealthCheck) Reset

func (m *HealthCheck_HttpHealthCheck) Reset()

func (*HealthCheck_HttpHealthCheck) String

func (m *HealthCheck_HttpHealthCheck) String() string

func (*HealthCheck_HttpHealthCheck) XXX_DiscardUnknown

func (m *HealthCheck_HttpHealthCheck) XXX_DiscardUnknown()

func (*HealthCheck_HttpHealthCheck) XXX_Marshal

func (m *HealthCheck_HttpHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheck_HttpHealthCheck) XXX_Merge

func (m *HealthCheck_HttpHealthCheck) XXX_Merge(src proto.Message)

func (*HealthCheck_HttpHealthCheck) XXX_Size

func (m *HealthCheck_HttpHealthCheck) XXX_Size() int

func (*HealthCheck_HttpHealthCheck) XXX_Unmarshal

func (m *HealthCheck_HttpHealthCheck) XXX_Unmarshal(b []byte) error

type HealthCheck_HttpHealthCheck_

type HealthCheck_HttpHealthCheck_ struct {
	HttpHealthCheck *HealthCheck_HttpHealthCheck `protobuf:"bytes,8,opt,name=http_health_check,json=httpHealthCheck,proto3,oneof" json:"http_health_check,omitempty"`
}

func (*HealthCheck_HttpHealthCheck_) Equal

func (this *HealthCheck_HttpHealthCheck_) Equal(that interface{}) bool

type HealthCheck_Payload

type HealthCheck_Payload struct {
	// Types that are valid to be assigned to Payload:
	//	*HealthCheck_Payload_Text
	Payload              isHealthCheck_Payload_Payload `protobuf_oneof:"payload"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

Describes the encoding of the payload bytes in the payload.

func (*HealthCheck_Payload) Descriptor

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

func (*HealthCheck_Payload) Equal

func (this *HealthCheck_Payload) Equal(that interface{}) bool

func (*HealthCheck_Payload) GetPayload

func (m *HealthCheck_Payload) GetPayload() isHealthCheck_Payload_Payload

func (*HealthCheck_Payload) GetText

func (m *HealthCheck_Payload) GetText() string

func (*HealthCheck_Payload) Hash added in v1.2.13

func (m *HealthCheck_Payload) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*HealthCheck_Payload) ProtoMessage

func (*HealthCheck_Payload) ProtoMessage()

func (*HealthCheck_Payload) Reset

func (m *HealthCheck_Payload) Reset()

func (*HealthCheck_Payload) String

func (m *HealthCheck_Payload) String() string

func (*HealthCheck_Payload) XXX_DiscardUnknown

func (m *HealthCheck_Payload) XXX_DiscardUnknown()

func (*HealthCheck_Payload) XXX_Marshal

func (m *HealthCheck_Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheck_Payload) XXX_Merge

func (m *HealthCheck_Payload) XXX_Merge(src proto.Message)

func (*HealthCheck_Payload) XXX_OneofWrappers

func (*HealthCheck_Payload) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*HealthCheck_Payload) XXX_Size

func (m *HealthCheck_Payload) XXX_Size() int

func (*HealthCheck_Payload) XXX_Unmarshal

func (m *HealthCheck_Payload) XXX_Unmarshal(b []byte) error

type HealthCheck_Payload_Text

type HealthCheck_Payload_Text struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"`
}

func (*HealthCheck_Payload_Text) Equal

func (this *HealthCheck_Payload_Text) Equal(that interface{}) bool

type HealthCheck_RedisHealthCheck

type HealthCheck_RedisHealthCheck struct {
	// If set, optionally perform “EXISTS <key>“ instead of “PING“. A return value
	// from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other
	// than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance
	// by setting the specified key to any value and waiting for traffic to drain.
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HealthCheck_RedisHealthCheck) Descriptor

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

func (*HealthCheck_RedisHealthCheck) Equal

func (this *HealthCheck_RedisHealthCheck) Equal(that interface{}) bool

func (*HealthCheck_RedisHealthCheck) GetKey

func (*HealthCheck_RedisHealthCheck) Hash added in v1.2.13

Hash function

func (*HealthCheck_RedisHealthCheck) ProtoMessage

func (*HealthCheck_RedisHealthCheck) ProtoMessage()

func (*HealthCheck_RedisHealthCheck) Reset

func (m *HealthCheck_RedisHealthCheck) Reset()

func (*HealthCheck_RedisHealthCheck) String

func (*HealthCheck_RedisHealthCheck) XXX_DiscardUnknown

func (m *HealthCheck_RedisHealthCheck) XXX_DiscardUnknown()

func (*HealthCheck_RedisHealthCheck) XXX_Marshal

func (m *HealthCheck_RedisHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheck_RedisHealthCheck) XXX_Merge

func (m *HealthCheck_RedisHealthCheck) XXX_Merge(src proto.Message)

func (*HealthCheck_RedisHealthCheck) XXX_Size

func (m *HealthCheck_RedisHealthCheck) XXX_Size() int

func (*HealthCheck_RedisHealthCheck) XXX_Unmarshal

func (m *HealthCheck_RedisHealthCheck) XXX_Unmarshal(b []byte) error

type HealthCheck_TcpHealthCheck

type HealthCheck_TcpHealthCheck struct {
	// Empty payloads imply a connect-only health check.
	Send *HealthCheck_Payload `protobuf:"bytes,1,opt,name=send,proto3" json:"send,omitempty"`
	// When checking the response, “fuzzy” matching is performed such that each
	// binary block must be found, and in the order specified, but not
	// necessarily contiguous.
	Receive              []*HealthCheck_Payload `protobuf:"bytes,2,rep,name=receive,proto3" json:"receive,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*HealthCheck_TcpHealthCheck) Descriptor

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

func (*HealthCheck_TcpHealthCheck) Equal

func (this *HealthCheck_TcpHealthCheck) Equal(that interface{}) bool

func (*HealthCheck_TcpHealthCheck) GetReceive

func (*HealthCheck_TcpHealthCheck) GetSend

func (*HealthCheck_TcpHealthCheck) Hash added in v1.2.13

func (m *HealthCheck_TcpHealthCheck) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*HealthCheck_TcpHealthCheck) ProtoMessage

func (*HealthCheck_TcpHealthCheck) ProtoMessage()

func (*HealthCheck_TcpHealthCheck) Reset

func (m *HealthCheck_TcpHealthCheck) Reset()

func (*HealthCheck_TcpHealthCheck) String

func (m *HealthCheck_TcpHealthCheck) String() string

func (*HealthCheck_TcpHealthCheck) XXX_DiscardUnknown

func (m *HealthCheck_TcpHealthCheck) XXX_DiscardUnknown()

func (*HealthCheck_TcpHealthCheck) XXX_Marshal

func (m *HealthCheck_TcpHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheck_TcpHealthCheck) XXX_Merge

func (m *HealthCheck_TcpHealthCheck) XXX_Merge(src proto.Message)

func (*HealthCheck_TcpHealthCheck) XXX_Size

func (m *HealthCheck_TcpHealthCheck) XXX_Size() int

func (*HealthCheck_TcpHealthCheck) XXX_Unmarshal

func (m *HealthCheck_TcpHealthCheck) XXX_Unmarshal(b []byte) error

type HealthCheck_TcpHealthCheck_

type HealthCheck_TcpHealthCheck_ struct {
	TcpHealthCheck *HealthCheck_TcpHealthCheck `protobuf:"bytes,9,opt,name=tcp_health_check,json=tcpHealthCheck,proto3,oneof" json:"tcp_health_check,omitempty"`
}

func (*HealthCheck_TcpHealthCheck_) Equal

func (this *HealthCheck_TcpHealthCheck_) Equal(that interface{}) bool

type HealthStatus

type HealthStatus int32

Endpoint health status.

const (
	// The health status is not known. This is interpreted by Envoy as *HEALTHY*.
	HealthStatus_UNKNOWN HealthStatus = 0
	// Healthy.
	HealthStatus_HEALTHY HealthStatus = 1
	// Unhealthy.
	HealthStatus_UNHEALTHY HealthStatus = 2
	// Connection draining in progress. E.g.,
	// `<https://aws.amazon.com/blogs/aws/elb-connection-draining-remove-instances-from-service-with-care/>`_
	// or
	// `<https://cloud.google.com/compute/docs/load-balancing/enabling-connection-draining>`_.
	// This is interpreted by Envoy as *UNHEALTHY*.
	HealthStatus_DRAINING HealthStatus = 3
	// Health check timed out. This is part of HDS and is interpreted by Envoy as
	// *UNHEALTHY*.
	HealthStatus_TIMEOUT HealthStatus = 4
	// Degraded.
	HealthStatus_DEGRADED HealthStatus = 5
)

func (HealthStatus) EnumDescriptor

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

func (HealthStatus) String

func (x HealthStatus) String() string

Jump to

Keyboard shortcuts

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