v2

package
v0.0.0-...-113c6ea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v2 is a generated protocol buffer package.

It is generated from these files:

envoy/config/filter/http/health_check/v2/health_check.proto

It has these top-level messages:

HealthCheck

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHealthCheck = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHealthCheck   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck struct {
	// Specifies whether the filter operates in pass through mode or not.
	PassThroughMode *google_protobuf1.BoolValue `protobuf:"bytes,1,opt,name=pass_through_mode,json=passThroughMode" json:"pass_through_mode,omitempty"`
	// If operating in pass through mode, the amount of time in milliseconds
	// that the filter should cache the upstream response.
	CacheTime *time.Duration `protobuf:"bytes,3,opt,name=cache_time,json=cacheTime,stdduration" json:"cache_time,omitempty"`
	// If operating in non-pass-through mode, specifies a set of upstream cluster
	// names and the minimum percentage of servers in each of those clusters that
	// must be healthy in order for the filter to return a 200.
	ClusterMinHealthyPercentages map[string]*envoy_type1.Percent `` /* 223-byte string literal not displayed */
	// Specifies a set of health check request headers to match on. The health check filter will
	// check a request’s headers against all the specified headers. To specify the health check
	// endpoint, set the “:path“ header to match on.
	Headers []*envoy_api_v2_route.HeaderMatcher `protobuf:"bytes,5,rep,name=headers" json:"headers,omitempty"`
}

func (*HealthCheck) Descriptor

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

func (*HealthCheck) GetCacheTime

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

func (*HealthCheck) GetClusterMinHealthyPercentages

func (m *HealthCheck) GetClusterMinHealthyPercentages() map[string]*envoy_type1.Percent

func (*HealthCheck) GetHeaders

func (m *HealthCheck) GetHeaders() []*envoy_api_v2_route.HeaderMatcher

func (*HealthCheck) GetPassThroughMode

func (m *HealthCheck) GetPassThroughMode() *google_protobuf1.BoolValue

func (*HealthCheck) Marshal

func (m *HealthCheck) Marshal() (dAtA []byte, err error)

func (*HealthCheck) MarshalTo

func (m *HealthCheck) MarshalTo(dAtA []byte) (int, error)

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) Reset

func (m *HealthCheck) Reset()

func (*HealthCheck) Size

func (m *HealthCheck) Size() (n int)

func (*HealthCheck) String

func (m *HealthCheck) String() string

func (*HealthCheck) Unmarshal

func (m *HealthCheck) Unmarshal(dAtA []byte) error

func (*HealthCheck) Validate

func (m *HealthCheck) Validate() error

Validate checks the field values on HealthCheck with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type HealthCheckValidationError

type HealthCheckValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

HealthCheckValidationError is the validation error returned by HealthCheck.Validate if the designated constraints aren't met.

func (HealthCheckValidationError) Error

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

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