package starttlsv3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/starttls/v3"

Index

Variables

var File_envoy_extensions_transport_sockets_starttls_v3_starttls_proto protoreflect.FileDescriptor

Types

type StartTlsConfig

type StartTlsConfig struct {

	// (optional) Configuration for clear-text socket used at the beginning of the session.
	CleartextSocketConfig *v3.RawBuffer `protobuf:"bytes,1,opt,name=cleartext_socket_config,json=cleartextSocketConfig,proto3" json:"cleartext_socket_config,omitempty"`
	// Configuration for a downstream TLS socket.
	TlsSocketConfig *v31.DownstreamTlsContext `protobuf:"bytes,2,opt,name=tls_socket_config,json=tlsSocketConfig,proto3" json:"tls_socket_config,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a downstream StartTls transport socket. StartTls transport socket wraps two sockets: * raw_buffer socket which is used at the beginning of the session * TLS socket used when a protocol negotiates a switch to encrypted traffic.

func (*StartTlsConfig) Descriptor

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

Deprecated: Use StartTlsConfig.ProtoReflect.Descriptor instead.

func (*StartTlsConfig) GetCleartextSocketConfig

func (x *StartTlsConfig) GetCleartextSocketConfig() *v3.RawBuffer

func (*StartTlsConfig) GetTlsSocketConfig

func (x *StartTlsConfig) GetTlsSocketConfig() *v31.DownstreamTlsContext

func (*StartTlsConfig) ProtoMessage

func (*StartTlsConfig) ProtoMessage()

func (*StartTlsConfig) ProtoReflect

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

func (*StartTlsConfig) Reset

func (x *StartTlsConfig) Reset()

func (*StartTlsConfig) String

func (x *StartTlsConfig) String() string

func (*StartTlsConfig) Validate

func (m *StartTlsConfig) Validate() error

Validate checks the field values on StartTlsConfig 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 (*StartTlsConfig) ValidateAll

func (m *StartTlsConfig) ValidateAll() error

ValidateAll checks the field values on StartTlsConfig 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 StartTlsConfigMultiError, or nil if none found.

type StartTlsConfigMultiError

type StartTlsConfigMultiError []error

StartTlsConfigMultiError is an error wrapping multiple validation errors returned by StartTlsConfig.ValidateAll() if the designated constraints aren't met.

func (StartTlsConfigMultiError) AllErrors

func (m StartTlsConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StartTlsConfigMultiError) Error

func (m StartTlsConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StartTlsConfigValidationError

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

StartTlsConfigValidationError is the validation error returned by StartTlsConfig.Validate if the designated constraints aren't met.

func (StartTlsConfigValidationError) Cause

Cause function returns cause value.

func (StartTlsConfigValidationError) Error

Error satisfies the builtin error interface

func (StartTlsConfigValidationError) ErrorName

func (e StartTlsConfigValidationError) ErrorName() string

ErrorName returns error name.

func (StartTlsConfigValidationError) Field

Field function returns field value.

func (StartTlsConfigValidationError) Key

Key function returns key value.

func (StartTlsConfigValidationError) Reason

Reason function returns reason value.

type UpstreamStartTlsConfig

type UpstreamStartTlsConfig struct {

	// (optional) Configuration for clear-text socket used at the beginning of the session.
	CleartextSocketConfig *v3.RawBuffer `protobuf:"bytes,1,opt,name=cleartext_socket_config,json=cleartextSocketConfig,proto3" json:"cleartext_socket_config,omitempty"`
	// Configuration for an upstream TLS socket.
	TlsSocketConfig *v31.UpstreamTlsContext `protobuf:"bytes,2,opt,name=tls_socket_config,json=tlsSocketConfig,proto3" json:"tls_socket_config,omitempty"`
	// contains filtered or unexported fields
}

Configuration for an upstream StartTls transport socket. StartTls transport socket wraps two sockets: * raw_buffer socket which is used at the beginning of the session * TLS socket used when a protocol negotiates a switch to encrypted traffic.

func (*UpstreamStartTlsConfig) Descriptor

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

Deprecated: Use UpstreamStartTlsConfig.ProtoReflect.Descriptor instead.

func (*UpstreamStartTlsConfig) GetCleartextSocketConfig

func (x *UpstreamStartTlsConfig) GetCleartextSocketConfig() *v3.RawBuffer

func (*UpstreamStartTlsConfig) GetTlsSocketConfig

func (x *UpstreamStartTlsConfig) GetTlsSocketConfig() *v31.UpstreamTlsContext

func (*UpstreamStartTlsConfig) ProtoMessage

func (*UpstreamStartTlsConfig) ProtoMessage()

func (*UpstreamStartTlsConfig) ProtoReflect

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

func (*UpstreamStartTlsConfig) Reset

func (x *UpstreamStartTlsConfig) Reset()

func (*UpstreamStartTlsConfig) String

func (x *UpstreamStartTlsConfig) String() string

func (*UpstreamStartTlsConfig) Validate

func (m *UpstreamStartTlsConfig) Validate() error

Validate checks the field values on UpstreamStartTlsConfig 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 (*UpstreamStartTlsConfig) ValidateAll

func (m *UpstreamStartTlsConfig) ValidateAll() error

ValidateAll checks the field values on UpstreamStartTlsConfig 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 UpstreamStartTlsConfigMultiError, or nil if none found.

type UpstreamStartTlsConfigMultiError

type UpstreamStartTlsConfigMultiError []error

UpstreamStartTlsConfigMultiError is an error wrapping multiple validation errors returned by UpstreamStartTlsConfig.ValidateAll() if the designated constraints aren't met.

func (UpstreamStartTlsConfigMultiError) AllErrors

func (m UpstreamStartTlsConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpstreamStartTlsConfigMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpstreamStartTlsConfigValidationError

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

UpstreamStartTlsConfigValidationError is the validation error returned by UpstreamStartTlsConfig.Validate if the designated constraints aren't met.

func (UpstreamStartTlsConfigValidationError) Cause

Cause function returns cause value.

func (UpstreamStartTlsConfigValidationError) Error

Error satisfies the builtin error interface

func (UpstreamStartTlsConfigValidationError) ErrorName

ErrorName returns error name.

func (UpstreamStartTlsConfigValidationError) Field

Field function returns field value.

func (UpstreamStartTlsConfigValidationError) Key

Key function returns key value.

func (UpstreamStartTlsConfigValidationError) Reason

Reason function returns reason value.

Source Files

starttls.pb.go starttls.pb.validate.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
20 packages
Last checked
3 hours ago

Tools for package owners.