Documentation ¶
Index ¶
- Variables
- type PostgresProxy
- func (*PostgresProxy) Descriptor() ([]byte, []int)deprecated
- func (x *PostgresProxy) GetEnableSqlParsing() *wrappers.BoolValue
- func (x *PostgresProxy) GetStatPrefix() string
- func (x *PostgresProxy) GetTerminateSsl() bool
- func (x *PostgresProxy) GetUpstreamSsl() PostgresProxy_SSLMode
- func (*PostgresProxy) ProtoMessage()
- func (x *PostgresProxy) ProtoReflect() protoreflect.Message
- func (x *PostgresProxy) Reset()
- func (x *PostgresProxy) String() string
- func (m *PostgresProxy) Validate() error
- func (m *PostgresProxy) ValidateAll() error
- type PostgresProxyMultiError
- type PostgresProxyValidationError
- func (e PostgresProxyValidationError) Cause() error
- func (e PostgresProxyValidationError) Error() string
- func (e PostgresProxyValidationError) ErrorName() string
- func (e PostgresProxyValidationError) Field() string
- func (e PostgresProxyValidationError) Key() bool
- func (e PostgresProxyValidationError) Reason() string
- type PostgresProxy_SSLMode
- func (PostgresProxy_SSLMode) Descriptor() protoreflect.EnumDescriptor
- func (x PostgresProxy_SSLMode) Enum() *PostgresProxy_SSLMode
- func (PostgresProxy_SSLMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x PostgresProxy_SSLMode) Number() protoreflect.EnumNumber
- func (x PostgresProxy_SSLMode) String() string
- func (PostgresProxy_SSLMode) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( PostgresProxy_SSLMode_name = map[int32]string{ 0: "DISABLE", 1: "REQUIRE", } PostgresProxy_SSLMode_value = map[string]int32{ "DISABLE": 0, "REQUIRE": 1, } )
Enum value maps for PostgresProxy_SSLMode.
var File_contrib_envoy_extensions_filters_network_postgres_proxy_v3alpha_postgres_proxy_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PostgresProxy ¶
type PostgresProxy struct { // The human readable prefix to use when emitting :ref:`statistics // <config_network_filters_postgres_proxy_stats>`. StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` // Controls whether SQL statements received in Frontend Query messages // are parsed. Parsing is required to produce Postgres proxy filter // metadata. Defaults to true. EnableSqlParsing *wrappers.BoolValue `protobuf:"bytes,2,opt,name=enable_sql_parsing,json=enableSqlParsing,proto3" json:"enable_sql_parsing,omitempty"` // Controls whether to terminate SSL session initiated by a client. // If the value is false, the Postgres proxy filter will not try to // terminate SSL session, but will pass all the packets to the upstream server. // If the value is true, the Postgres proxy filter will try to terminate SSL // session. In order to do that, the filter chain must use :ref:`starttls transport socket // <envoy_v3_api_msg_extensions.transport_sockets.starttls.v3.StartTlsConfig>`. // If the filter does not manage to terminate the SSL session, it will close the connection from the client. // Refer to official documentation for details // `SSL Session Encryption Message Flow <https://www.postgresql.org/docs/current/protocol-flow.html#id-1.10.5.7.11>`_. TerminateSsl bool `protobuf:"varint,3,opt,name=terminate_ssl,json=terminateSsl,proto3" json:"terminate_ssl,omitempty"` // Controls whether to establish upstream SSL connection to the server. // Envoy will try to establish upstream SSL connection to the server only when // Postgres filter is able to read Postgres payload in clear-text. It happens when // a client established a clear-text connection to Envoy or when a client established // SSL connection to Envoy and Postgres filter is configured to terminate SSL. // Defaults to SSL_DISABLE. UpstreamSsl PostgresProxy_SSLMode `` /* 178-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PostgresProxy) Descriptor
deprecated
func (*PostgresProxy) Descriptor() ([]byte, []int)
Deprecated: Use PostgresProxy.ProtoReflect.Descriptor instead.
func (*PostgresProxy) GetEnableSqlParsing ¶
func (x *PostgresProxy) GetEnableSqlParsing() *wrappers.BoolValue
func (*PostgresProxy) GetStatPrefix ¶
func (x *PostgresProxy) GetStatPrefix() string
func (*PostgresProxy) GetTerminateSsl ¶
func (x *PostgresProxy) GetTerminateSsl() bool
func (*PostgresProxy) GetUpstreamSsl ¶
func (x *PostgresProxy) GetUpstreamSsl() PostgresProxy_SSLMode
func (*PostgresProxy) ProtoMessage ¶
func (*PostgresProxy) ProtoMessage()
func (*PostgresProxy) ProtoReflect ¶
func (x *PostgresProxy) ProtoReflect() protoreflect.Message
func (*PostgresProxy) Reset ¶
func (x *PostgresProxy) Reset()
func (*PostgresProxy) String ¶
func (x *PostgresProxy) String() string
func (*PostgresProxy) Validate ¶
func (m *PostgresProxy) Validate() error
Validate checks the field values on PostgresProxy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PostgresProxy) ValidateAll ¶
func (m *PostgresProxy) ValidateAll() error
ValidateAll checks the field values on PostgresProxy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PostgresProxyMultiError, or nil if none found.
type PostgresProxyMultiError ¶
type PostgresProxyMultiError []error
PostgresProxyMultiError is an error wrapping multiple validation errors returned by PostgresProxy.ValidateAll() if the designated constraints aren't met.
func (PostgresProxyMultiError) AllErrors ¶
func (m PostgresProxyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PostgresProxyMultiError) Error ¶
func (m PostgresProxyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PostgresProxyValidationError ¶
type PostgresProxyValidationError struct {
// contains filtered or unexported fields
}
PostgresProxyValidationError is the validation error returned by PostgresProxy.Validate if the designated constraints aren't met.
func (PostgresProxyValidationError) Cause ¶
func (e PostgresProxyValidationError) Cause() error
Cause function returns cause value.
func (PostgresProxyValidationError) Error ¶
func (e PostgresProxyValidationError) Error() string
Error satisfies the builtin error interface
func (PostgresProxyValidationError) ErrorName ¶
func (e PostgresProxyValidationError) ErrorName() string
ErrorName returns error name.
func (PostgresProxyValidationError) Field ¶
func (e PostgresProxyValidationError) Field() string
Field function returns field value.
func (PostgresProxyValidationError) Key ¶
func (e PostgresProxyValidationError) Key() bool
Key function returns key value.
func (PostgresProxyValidationError) Reason ¶
func (e PostgresProxyValidationError) Reason() string
Reason function returns reason value.
type PostgresProxy_SSLMode ¶
type PostgresProxy_SSLMode int32
Upstream SSL operational modes.
const ( // Do not encrypt upstream connection to the server. PostgresProxy_DISABLE PostgresProxy_SSLMode = 0 // Establish upstream SSL connection to the server. If the server does not // accept the request for SSL connection, the session is terminated. PostgresProxy_REQUIRE PostgresProxy_SSLMode = 1 )
func (PostgresProxy_SSLMode) Descriptor ¶
func (PostgresProxy_SSLMode) Descriptor() protoreflect.EnumDescriptor
func (PostgresProxy_SSLMode) Enum ¶
func (x PostgresProxy_SSLMode) Enum() *PostgresProxy_SSLMode
func (PostgresProxy_SSLMode) EnumDescriptor
deprecated
func (PostgresProxy_SSLMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use PostgresProxy_SSLMode.Descriptor instead.
func (PostgresProxy_SSLMode) Number ¶
func (x PostgresProxy_SSLMode) Number() protoreflect.EnumNumber
func (PostgresProxy_SSLMode) String ¶
func (x PostgresProxy_SSLMode) String() string
func (PostgresProxy_SSLMode) Type ¶
func (PostgresProxy_SSLMode) Type() protoreflect.EnumType