corev3

package
v1.36.2-20240614202816... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const HealthCheckEvent_AddHealthyEvent_case case_HealthCheckEvent_Event = 5
View Source
const HealthCheckEvent_DegradedHealthyHost_case case_HealthCheckEvent_Event = 8
View Source
const HealthCheckEvent_EjectUnhealthyEvent_case case_HealthCheckEvent_Event = 4
View Source
const HealthCheckEvent_Event_not_set_case case_HealthCheckEvent_Event = 0
View Source
const HealthCheckEvent_HealthCheckFailureEvent_case case_HealthCheckEvent_Event = 7
View Source
const HealthCheckEvent_NoLongerDegradedHost_case case_HealthCheckEvent_Event = 9
View Source
const HealthCheckEvent_SuccessfulHealthCheckEvent_case case_HealthCheckEvent_Event = 12

Variables

View Source
var (
	HealthCheckFailureType_name = map[int32]string{
		0: "ACTIVE",
		1: "PASSIVE",
		2: "NETWORK",
		3: "NETWORK_TIMEOUT",
	}
	HealthCheckFailureType_value = map[string]int32{
		"ACTIVE":          0,
		"PASSIVE":         1,
		"NETWORK":         2,
		"NETWORK_TIMEOUT": 3,
	}
)

Enum value maps for HealthCheckFailureType.

View Source
var (
	HealthCheckerType_name = map[int32]string{
		0: "HTTP",
		1: "TCP",
		2: "GRPC",
		3: "REDIS",
		4: "THRIFT",
	}
	HealthCheckerType_value = map[string]int32{
		"HTTP":   0,
		"TCP":    1,
		"GRPC":   2,
		"REDIS":  3,
		"THRIFT": 4,
	}
)

Enum value maps for HealthCheckerType.

View Source
var File_envoy_data_core_v3_health_check_event_proto protoreflect.FileDescriptor
View Source
var File_envoy_data_core_v3_tlv_metadata_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DegradedHealthyHost

type DegradedHealthyHost struct {
	// contains filtered or unexported fields
}

func (*DegradedHealthyHost) ProtoMessage

func (*DegradedHealthyHost) ProtoMessage()

func (*DegradedHealthyHost) ProtoReflect

func (x *DegradedHealthyHost) ProtoReflect() protoreflect.Message

func (*DegradedHealthyHost) Reset

func (x *DegradedHealthyHost) Reset()

func (*DegradedHealthyHost) String

func (x *DegradedHealthyHost) String() string

type DegradedHealthyHost_builder

type DegradedHealthyHost_builder struct {
	// contains filtered or unexported fields
}

func (DegradedHealthyHost_builder) Build

type HealthCheckAddHealthy

type HealthCheckAddHealthy struct {

	// Whether this addition is the result of the first ever health check on a host, in which case
	// the configured :ref:`healthy threshold <envoy_v3_api_field_config.core.v3.HealthCheck.healthy_threshold>`
	// is bypassed and the host is immediately added.
	FirstCheck bool `protobuf:"varint,1,opt,name=first_check,json=firstCheck,proto3" json:"first_check,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckAddHealthy) GetFirstCheck

func (x *HealthCheckAddHealthy) GetFirstCheck() bool

func (*HealthCheckAddHealthy) ProtoMessage

func (*HealthCheckAddHealthy) ProtoMessage()

func (*HealthCheckAddHealthy) ProtoReflect

func (x *HealthCheckAddHealthy) ProtoReflect() protoreflect.Message

func (*HealthCheckAddHealthy) Reset

func (x *HealthCheckAddHealthy) Reset()

func (*HealthCheckAddHealthy) SetFirstCheck

func (x *HealthCheckAddHealthy) SetFirstCheck(v bool)

func (*HealthCheckAddHealthy) String

func (x *HealthCheckAddHealthy) String() string

type HealthCheckAddHealthy_builder

type HealthCheckAddHealthy_builder struct {

	// Whether this addition is the result of the first ever health check on a host, in which case
	// the configured :ref:`healthy threshold <envoy_v3_api_field_config.core.v3.HealthCheck.healthy_threshold>`
	// is bypassed and the host is immediately added.
	FirstCheck bool
	// contains filtered or unexported fields
}

func (HealthCheckAddHealthy_builder) Build

type HealthCheckEjectUnhealthy

type HealthCheckEjectUnhealthy struct {

	// The type of failure that caused this ejection.
	FailureType HealthCheckFailureType `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HealthCheckEjectUnhealthy) GetFailureType

func (*HealthCheckEjectUnhealthy) ProtoMessage

func (*HealthCheckEjectUnhealthy) ProtoMessage()

func (*HealthCheckEjectUnhealthy) ProtoReflect

func (*HealthCheckEjectUnhealthy) Reset

func (x *HealthCheckEjectUnhealthy) Reset()

func (*HealthCheckEjectUnhealthy) SetFailureType

func (*HealthCheckEjectUnhealthy) String

func (x *HealthCheckEjectUnhealthy) String() string

type HealthCheckEjectUnhealthy_builder

type HealthCheckEjectUnhealthy_builder struct {

	// The type of failure that caused this ejection.
	FailureType HealthCheckFailureType
	// contains filtered or unexported fields
}

func (HealthCheckEjectUnhealthy_builder) Build

type HealthCheckEvent

type HealthCheckEvent struct {
	HealthCheckerType HealthCheckerType `` /* 157-byte string literal not displayed */
	Host              *v3.Address       `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	ClusterName       string            `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
	// Types that are valid to be assigned to Event:
	//
	//	*HealthCheckEvent_EjectUnhealthyEvent
	//	*HealthCheckEvent_AddHealthyEvent
	//	*HealthCheckEvent_SuccessfulHealthCheckEvent
	//	*HealthCheckEvent_HealthCheckFailureEvent
	//	*HealthCheckEvent_DegradedHealthyHost
	//	*HealthCheckEvent_NoLongerDegradedHost
	Event isHealthCheckEvent_Event `protobuf_oneof:"event"`
	// Timestamp for event.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Host metadata
	Metadata *v3.Metadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Host locality
	Locality *v3.Locality `protobuf:"bytes,11,opt,name=locality,proto3" json:"locality,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 13]

func (*HealthCheckEvent) ClearAddHealthyEvent

func (x *HealthCheckEvent) ClearAddHealthyEvent()

func (*HealthCheckEvent) ClearDegradedHealthyHost

func (x *HealthCheckEvent) ClearDegradedHealthyHost()

func (*HealthCheckEvent) ClearEjectUnhealthyEvent

func (x *HealthCheckEvent) ClearEjectUnhealthyEvent()

func (*HealthCheckEvent) ClearEvent

func (x *HealthCheckEvent) ClearEvent()

func (*HealthCheckEvent) ClearHealthCheckFailureEvent

func (x *HealthCheckEvent) ClearHealthCheckFailureEvent()

func (*HealthCheckEvent) ClearHost

func (x *HealthCheckEvent) ClearHost()

func (*HealthCheckEvent) ClearLocality

func (x *HealthCheckEvent) ClearLocality()

func (*HealthCheckEvent) ClearMetadata

func (x *HealthCheckEvent) ClearMetadata()

func (*HealthCheckEvent) ClearNoLongerDegradedHost

func (x *HealthCheckEvent) ClearNoLongerDegradedHost()

func (*HealthCheckEvent) ClearSuccessfulHealthCheckEvent

func (x *HealthCheckEvent) ClearSuccessfulHealthCheckEvent()

func (*HealthCheckEvent) ClearTimestamp

func (x *HealthCheckEvent) ClearTimestamp()

func (*HealthCheckEvent) GetAddHealthyEvent

func (x *HealthCheckEvent) GetAddHealthyEvent() *HealthCheckAddHealthy

func (*HealthCheckEvent) GetClusterName

func (x *HealthCheckEvent) GetClusterName() string

func (*HealthCheckEvent) GetDegradedHealthyHost

func (x *HealthCheckEvent) GetDegradedHealthyHost() *DegradedHealthyHost

func (*HealthCheckEvent) GetEjectUnhealthyEvent

func (x *HealthCheckEvent) GetEjectUnhealthyEvent() *HealthCheckEjectUnhealthy

func (*HealthCheckEvent) GetEvent

func (x *HealthCheckEvent) GetEvent() isHealthCheckEvent_Event

func (*HealthCheckEvent) GetHealthCheckFailureEvent

func (x *HealthCheckEvent) GetHealthCheckFailureEvent() *HealthCheckFailure

func (*HealthCheckEvent) GetHealthCheckerType

func (x *HealthCheckEvent) GetHealthCheckerType() HealthCheckerType

func (*HealthCheckEvent) GetHost

func (x *HealthCheckEvent) GetHost() *v3.Address

func (*HealthCheckEvent) GetLocality

func (x *HealthCheckEvent) GetLocality() *v3.Locality

func (*HealthCheckEvent) GetMetadata

func (x *HealthCheckEvent) GetMetadata() *v3.Metadata

func (*HealthCheckEvent) GetNoLongerDegradedHost

func (x *HealthCheckEvent) GetNoLongerDegradedHost() *NoLongerDegradedHost

func (*HealthCheckEvent) GetSuccessfulHealthCheckEvent

func (x *HealthCheckEvent) GetSuccessfulHealthCheckEvent() *HealthCheckSuccessful

func (*HealthCheckEvent) GetTimestamp

func (x *HealthCheckEvent) GetTimestamp() *timestamppb.Timestamp

func (*HealthCheckEvent) HasAddHealthyEvent

func (x *HealthCheckEvent) HasAddHealthyEvent() bool

func (*HealthCheckEvent) HasDegradedHealthyHost

func (x *HealthCheckEvent) HasDegradedHealthyHost() bool

func (*HealthCheckEvent) HasEjectUnhealthyEvent

func (x *HealthCheckEvent) HasEjectUnhealthyEvent() bool

func (*HealthCheckEvent) HasEvent

func (x *HealthCheckEvent) HasEvent() bool

func (*HealthCheckEvent) HasHealthCheckFailureEvent

func (x *HealthCheckEvent) HasHealthCheckFailureEvent() bool

func (*HealthCheckEvent) HasHost

func (x *HealthCheckEvent) HasHost() bool

func (*HealthCheckEvent) HasLocality

func (x *HealthCheckEvent) HasLocality() bool

func (*HealthCheckEvent) HasMetadata

func (x *HealthCheckEvent) HasMetadata() bool

func (*HealthCheckEvent) HasNoLongerDegradedHost

func (x *HealthCheckEvent) HasNoLongerDegradedHost() bool

func (*HealthCheckEvent) HasSuccessfulHealthCheckEvent

func (x *HealthCheckEvent) HasSuccessfulHealthCheckEvent() bool

func (*HealthCheckEvent) HasTimestamp

func (x *HealthCheckEvent) HasTimestamp() bool

func (*HealthCheckEvent) ProtoMessage

func (*HealthCheckEvent) ProtoMessage()

func (*HealthCheckEvent) ProtoReflect

func (x *HealthCheckEvent) ProtoReflect() protoreflect.Message

func (*HealthCheckEvent) Reset

func (x *HealthCheckEvent) Reset()

func (*HealthCheckEvent) SetAddHealthyEvent

func (x *HealthCheckEvent) SetAddHealthyEvent(v *HealthCheckAddHealthy)

func (*HealthCheckEvent) SetClusterName

func (x *HealthCheckEvent) SetClusterName(v string)

func (*HealthCheckEvent) SetDegradedHealthyHost

func (x *HealthCheckEvent) SetDegradedHealthyHost(v *DegradedHealthyHost)

func (*HealthCheckEvent) SetEjectUnhealthyEvent

func (x *HealthCheckEvent) SetEjectUnhealthyEvent(v *HealthCheckEjectUnhealthy)

func (*HealthCheckEvent) SetHealthCheckFailureEvent

func (x *HealthCheckEvent) SetHealthCheckFailureEvent(v *HealthCheckFailure)

func (*HealthCheckEvent) SetHealthCheckerType

func (x *HealthCheckEvent) SetHealthCheckerType(v HealthCheckerType)

func (*HealthCheckEvent) SetHost

func (x *HealthCheckEvent) SetHost(v *v3.Address)

func (*HealthCheckEvent) SetLocality

func (x *HealthCheckEvent) SetLocality(v *v3.Locality)

func (*HealthCheckEvent) SetMetadata

func (x *HealthCheckEvent) SetMetadata(v *v3.Metadata)

func (*HealthCheckEvent) SetNoLongerDegradedHost

func (x *HealthCheckEvent) SetNoLongerDegradedHost(v *NoLongerDegradedHost)

func (*HealthCheckEvent) SetSuccessfulHealthCheckEvent

func (x *HealthCheckEvent) SetSuccessfulHealthCheckEvent(v *HealthCheckSuccessful)

func (*HealthCheckEvent) SetTimestamp

func (x *HealthCheckEvent) SetTimestamp(v *timestamppb.Timestamp)

func (*HealthCheckEvent) String

func (x *HealthCheckEvent) String() string

func (*HealthCheckEvent) WhichEvent

func (x *HealthCheckEvent) WhichEvent() case_HealthCheckEvent_Event

type HealthCheckEvent_AddHealthyEvent

type HealthCheckEvent_AddHealthyEvent struct {
	// Host addition.
	AddHealthyEvent *HealthCheckAddHealthy `protobuf:"bytes,5,opt,name=add_healthy_event,json=addHealthyEvent,proto3,oneof"`
}

type HealthCheckEvent_DegradedHealthyHost

type HealthCheckEvent_DegradedHealthyHost struct {
	// Healthy host became degraded.
	DegradedHealthyHost *DegradedHealthyHost `protobuf:"bytes,8,opt,name=degraded_healthy_host,json=degradedHealthyHost,proto3,oneof"`
}

type HealthCheckEvent_EjectUnhealthyEvent

type HealthCheckEvent_EjectUnhealthyEvent struct {
	// Host ejection.
	EjectUnhealthyEvent *HealthCheckEjectUnhealthy `protobuf:"bytes,4,opt,name=eject_unhealthy_event,json=ejectUnhealthyEvent,proto3,oneof"`
}

type HealthCheckEvent_HealthCheckFailureEvent

type HealthCheckEvent_HealthCheckFailureEvent struct {
	// Host failure.
	HealthCheckFailureEvent *HealthCheckFailure `protobuf:"bytes,7,opt,name=health_check_failure_event,json=healthCheckFailureEvent,proto3,oneof"`
}

type HealthCheckEvent_NoLongerDegradedHost

type HealthCheckEvent_NoLongerDegradedHost struct {
	// A degraded host returned to being healthy.
	NoLongerDegradedHost *NoLongerDegradedHost `protobuf:"bytes,9,opt,name=no_longer_degraded_host,json=noLongerDegradedHost,proto3,oneof"`
}

type HealthCheckEvent_SuccessfulHealthCheckEvent

type HealthCheckEvent_SuccessfulHealthCheckEvent struct {
	// A health check was successful. Note: a host will be considered healthy either if it is
	// the first ever health check, or if the healthy threshold is reached. This kind of event
	// indicate that a health check was successful, but does not indicates that the host is
	// considered healthy. A host is considered healthy if HealthCheckAddHealthy kind of event is sent.
	SuccessfulHealthCheckEvent *HealthCheckSuccessful `protobuf:"bytes,12,opt,name=successful_health_check_event,json=successfulHealthCheckEvent,proto3,oneof"`
}

type HealthCheckEvent_builder

type HealthCheckEvent_builder struct {
	HealthCheckerType HealthCheckerType
	Host              *v3.Address
	ClusterName       string
	// Fields of oneof Event:
	// Host ejection.
	EjectUnhealthyEvent *HealthCheckEjectUnhealthy
	// Host addition.
	AddHealthyEvent *HealthCheckAddHealthy
	// A health check was successful. Note: a host will be considered healthy either if it is
	// the first ever health check, or if the healthy threshold is reached. This kind of event
	// indicate that a health check was successful, but does not indicates that the host is
	// considered healthy. A host is considered healthy if HealthCheckAddHealthy kind of event is sent.
	SuccessfulHealthCheckEvent *HealthCheckSuccessful
	// Host failure.
	HealthCheckFailureEvent *HealthCheckFailure
	// Healthy host became degraded.
	DegradedHealthyHost *DegradedHealthyHost
	// A degraded host returned to being healthy.
	NoLongerDegradedHost *NoLongerDegradedHost
	// -- end of Event
	// Timestamp for event.
	Timestamp *timestamppb.Timestamp
	// Host metadata
	Metadata *v3.Metadata
	// Host locality
	Locality *v3.Locality
	// contains filtered or unexported fields
}

func (HealthCheckEvent_builder) Build

type HealthCheckFailure

type HealthCheckFailure struct {

	// The type of failure that caused this event.
	FailureType HealthCheckFailureType `` /* 142-byte string literal not displayed */
	// Whether this event is the result of the first ever health check on a host.
	FirstCheck bool `protobuf:"varint,2,opt,name=first_check,json=firstCheck,proto3" json:"first_check,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckFailure) GetFailureType

func (x *HealthCheckFailure) GetFailureType() HealthCheckFailureType

func (*HealthCheckFailure) GetFirstCheck

func (x *HealthCheckFailure) GetFirstCheck() bool

func (*HealthCheckFailure) ProtoMessage

func (*HealthCheckFailure) ProtoMessage()

func (*HealthCheckFailure) ProtoReflect

func (x *HealthCheckFailure) ProtoReflect() protoreflect.Message

func (*HealthCheckFailure) Reset

func (x *HealthCheckFailure) Reset()

func (*HealthCheckFailure) SetFailureType

func (x *HealthCheckFailure) SetFailureType(v HealthCheckFailureType)

func (*HealthCheckFailure) SetFirstCheck

func (x *HealthCheckFailure) SetFirstCheck(v bool)

func (*HealthCheckFailure) String

func (x *HealthCheckFailure) String() string

type HealthCheckFailureType

type HealthCheckFailureType int32
const (
	HealthCheckFailureType_ACTIVE          HealthCheckFailureType = 0
	HealthCheckFailureType_PASSIVE         HealthCheckFailureType = 1
	HealthCheckFailureType_NETWORK         HealthCheckFailureType = 2
	HealthCheckFailureType_NETWORK_TIMEOUT HealthCheckFailureType = 3
)

func (HealthCheckFailureType) Descriptor

func (HealthCheckFailureType) Enum

func (HealthCheckFailureType) Number

func (HealthCheckFailureType) String

func (x HealthCheckFailureType) String() string

func (HealthCheckFailureType) Type

type HealthCheckFailure_builder

type HealthCheckFailure_builder struct {

	// The type of failure that caused this event.
	FailureType HealthCheckFailureType
	// Whether this event is the result of the first ever health check on a host.
	FirstCheck bool
	// contains filtered or unexported fields
}

func (HealthCheckFailure_builder) Build

type HealthCheckSuccessful

type HealthCheckSuccessful struct {
	// contains filtered or unexported fields
}

func (*HealthCheckSuccessful) ProtoMessage

func (*HealthCheckSuccessful) ProtoMessage()

func (*HealthCheckSuccessful) ProtoReflect

func (x *HealthCheckSuccessful) ProtoReflect() protoreflect.Message

func (*HealthCheckSuccessful) Reset

func (x *HealthCheckSuccessful) Reset()

func (*HealthCheckSuccessful) String

func (x *HealthCheckSuccessful) String() string

type HealthCheckSuccessful_builder

type HealthCheckSuccessful_builder struct {
	// contains filtered or unexported fields
}

func (HealthCheckSuccessful_builder) Build

type HealthCheckerType

type HealthCheckerType int32
const (
	HealthCheckerType_HTTP   HealthCheckerType = 0
	HealthCheckerType_TCP    HealthCheckerType = 1
	HealthCheckerType_GRPC   HealthCheckerType = 2
	HealthCheckerType_REDIS  HealthCheckerType = 3
	HealthCheckerType_THRIFT HealthCheckerType = 4
)

func (HealthCheckerType) Descriptor

func (HealthCheckerType) Enum

func (HealthCheckerType) Number

func (HealthCheckerType) String

func (x HealthCheckerType) String() string

func (HealthCheckerType) Type

type NoLongerDegradedHost

type NoLongerDegradedHost struct {
	// contains filtered or unexported fields
}

func (*NoLongerDegradedHost) ProtoMessage

func (*NoLongerDegradedHost) ProtoMessage()

func (*NoLongerDegradedHost) ProtoReflect

func (x *NoLongerDegradedHost) ProtoReflect() protoreflect.Message

func (*NoLongerDegradedHost) Reset

func (x *NoLongerDegradedHost) Reset()

func (*NoLongerDegradedHost) String

func (x *NoLongerDegradedHost) String() string

type NoLongerDegradedHost_builder

type NoLongerDegradedHost_builder struct {
	// contains filtered or unexported fields
}

func (NoLongerDegradedHost_builder) Build

type TlvsMetadata

type TlvsMetadata struct {

	// Typed metadata for :ref:`Proxy protocol filter <envoy_v3_api_msg_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol>`, that represents a map of TLVs.
	// Each entry in the map consists of a key which corresponds to a configured
	// :ref:`rule key <envoy_v3_api_field_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.KeyValuePair.key>` and a value (TLV value in bytes).
	// When runtime flag “envoy.reloadable_features.use_typed_metadata_in_proxy_protocol_listener“ is enabled,
	// :ref:`Proxy protocol filter <envoy_v3_api_msg_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol>`
	// will populate typed metadata and regular metadata. By default filter will populate typed and untyped metadata.
	TypedMetadata map[string][]byte `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TlvsMetadata) GetTypedMetadata

func (x *TlvsMetadata) GetTypedMetadata() map[string][]byte

func (*TlvsMetadata) ProtoMessage

func (*TlvsMetadata) ProtoMessage()

func (*TlvsMetadata) ProtoReflect

func (x *TlvsMetadata) ProtoReflect() protoreflect.Message

func (*TlvsMetadata) Reset

func (x *TlvsMetadata) Reset()

func (*TlvsMetadata) SetTypedMetadata

func (x *TlvsMetadata) SetTypedMetadata(v map[string][]byte)

func (*TlvsMetadata) String

func (x *TlvsMetadata) String() string

type TlvsMetadata_builder

type TlvsMetadata_builder struct {

	// Typed metadata for :ref:`Proxy protocol filter <envoy_v3_api_msg_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol>`, that represents a map of TLVs.
	// Each entry in the map consists of a key which corresponds to a configured
	// :ref:`rule key <envoy_v3_api_field_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.KeyValuePair.key>` and a value (TLV value in bytes).
	// When runtime flag “envoy.reloadable_features.use_typed_metadata_in_proxy_protocol_listener“ is enabled,
	// :ref:`Proxy protocol filter <envoy_v3_api_msg_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol>`
	// will populate typed metadata and regular metadata. By default filter will populate typed and untyped metadata.
	TypedMetadata map[string][]byte
	// contains filtered or unexported fields
}

func (TlvsMetadata_builder) Build

func (b0 TlvsMetadata_builder) Build() *TlvsMetadata

Jump to

Keyboard shortcuts

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