Documentation ¶
Index ¶
- Variables
- type CertSubject
- func (*CertSubject) Descriptor() ([]byte, []int)deprecated
- func (x *CertSubject) GetCommonName() string
- func (x *CertSubject) GetCountry() string
- func (x *CertSubject) GetLocality() string
- func (x *CertSubject) GetOrganization() string
- func (x *CertSubject) GetOrganizationUint() string
- func (x *CertSubject) GetStateOrProvince() string
- func (*CertSubject) ProtoMessage()
- func (x *CertSubject) ProtoReflect() protoreflect.Message
- func (x *CertSubject) Reset()
- func (x *CertSubject) String() string
- type Certificate
- func (*Certificate) Descriptor() ([]byte, []int)deprecated
- func (x *Certificate) GetData() *CertificateData
- func (x *Certificate) GetRaw() []byte
- func (x *Certificate) GetSignatureAlgorithm() string
- func (x *Certificate) GetSignatureHashAlgorithm() string
- func (*Certificate) ProtoMessage()
- func (x *Certificate) ProtoReflect() protoreflect.Message
- func (x *Certificate) Reset()
- func (x *Certificate) String() string
- type CertificateData
- func (*CertificateData) Descriptor() ([]byte, []int)deprecated
- func (x *CertificateData) GetExtensions() *Extensions
- func (x *CertificateData) GetIssuer() []*CertSubject
- func (x *CertificateData) GetSerialNumber() string
- func (x *CertificateData) GetSignatureAlgorithm() string
- func (x *CertificateData) GetSignatureHashAlgorithm() string
- func (x *CertificateData) GetSubject() []*CertSubject
- func (x *CertificateData) GetSubjectPublicKeyInfo() *SubjectPublicKeyInfo
- func (x *CertificateData) GetValidity() *Validity
- func (x *CertificateData) GetVersion() string
- func (*CertificateData) ProtoMessage()
- func (x *CertificateData) ProtoReflect() protoreflect.Message
- func (x *CertificateData) Reset()
- func (x *CertificateData) String() string
- type Extensions
- type SubjectPublicKeyInfo
- func (*SubjectPublicKeyInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectPublicKeyInfo) GetAlgorithm() string
- func (x *SubjectPublicKeyInfo) GetLength() string
- func (x *SubjectPublicKeyInfo) GetThumbprint() string
- func (x *SubjectPublicKeyInfo) GetThumbprintAlgorithm() string
- func (*SubjectPublicKeyInfo) ProtoMessage()
- func (x *SubjectPublicKeyInfo) ProtoReflect() protoreflect.Message
- func (x *SubjectPublicKeyInfo) Reset()
- func (x *SubjectPublicKeyInfo) String() string
- type TlsClient
- func (*TlsClient) Descriptor() ([]byte, []int)deprecated
- func (x *TlsClient) GetAllowRenegotiation() bool
- func (x *TlsClient) GetCaCertRef() *v1.ResourceRef
- func (x *TlsClient) GetSni() string
- func (x *TlsClient) GetSslCertRef() *v1.ResourceRef
- func (x *TlsClient) GetTlsMode() TlsMode
- func (*TlsClient) ProtoMessage()
- func (x *TlsClient) ProtoReflect() protoreflect.Message
- func (x *TlsClient) Reset()
- func (x *TlsClient) String() string
- type TlsMode
- type TlsParameters
- func (*TlsParameters) Descriptor() ([]byte, []int)deprecated
- func (x *TlsParameters) GetCipherSuites() []string
- func (x *TlsParameters) GetEcdhCurves() []string
- func (x *TlsParameters) GetMaximumProtocolVersion() TlsParameters_ProtocolVersion
- func (x *TlsParameters) GetMinimumProtocolVersion() TlsParameters_ProtocolVersion
- func (*TlsParameters) ProtoMessage()
- func (x *TlsParameters) ProtoReflect() protoreflect.Message
- func (x *TlsParameters) Reset()
- func (x *TlsParameters) String() string
- type TlsParameters_ProtocolVersion
- func (TlsParameters_ProtocolVersion) Descriptor() protoreflect.EnumDescriptor
- func (x TlsParameters_ProtocolVersion) Enum() *TlsParameters_ProtocolVersion
- func (TlsParameters_ProtocolVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x TlsParameters_ProtocolVersion) Number() protoreflect.EnumNumber
- func (x TlsParameters_ProtocolVersion) String() string
- func (TlsParameters_ProtocolVersion) Type() protoreflect.EnumType
- type TlsServer
- func (*TlsServer) Descriptor() ([]byte, []int)deprecated
- func (x *TlsServer) GetCaCertRef() *v1.ResourceRef
- func (x *TlsServer) GetRequireClientCertificate() bool
- func (x *TlsServer) GetSniDomains() []string
- func (x *TlsServer) GetSslCertRef() *v1.ResourceRef
- func (x *TlsServer) GetTlsMode() TlsMode
- func (*TlsServer) ProtoMessage()
- func (x *TlsServer) ProtoReflect() protoreflect.Message
- func (x *TlsServer) Reset()
- func (x *TlsServer) String() string
- type Validity
Constants ¶
This section is empty.
Variables ¶
var ( TlsMode_name = map[int32]string{ 0: "TLS_NONE", 1: "TLS_V1_SIMPLE", 2: "TLS_V1_MUTUAL", 3: "TLS_V1_PASS_THROUGH", 4: "TLS_V1_AUTO_PASS_THROUGH", } TlsMode_value = map[string]int32{ "TLS_NONE": 0, "TLS_V1_SIMPLE": 1, "TLS_V1_MUTUAL": 2, "TLS_V1_PASS_THROUGH": 3, "TLS_V1_AUTO_PASS_THROUGH": 4, } )
Enum value maps for TlsMode.
var ( TlsParameters_ProtocolVersion_name = map[int32]string{ 0: "TLS_AUTO", 1: "TLSv1_0", 2: "TLSv1_1", 3: "TLSv1_2", 4: "TLSv1_3", } TlsParameters_ProtocolVersion_value = map[string]int32{ "TLS_AUTO": 0, "TLSv1_0": 1, "TLSv1_1": 2, "TLSv1_2": 3, "TLSv1_3": 4, } )
Enum value maps for TlsParameters_ProtocolVersion.
var File_github_com_xdmybl_gate_type_proto_common_v1_certificate_proto protoreflect.FileDescriptor
var File_github_com_xdmybl_gate_type_proto_common_v1_tls_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CertSubject ¶ added in v0.0.6
type CertSubject struct { // CN CommonName string `protobuf:"bytes,1,opt,name=commonName,proto3" json:"commonName,omitempty"` // OU OrganizationUint string `protobuf:"bytes,2,opt,name=organizationUint,proto3" json:"organizationUint,omitempty"` // O Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` // C Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` // ST StateOrProvince string `protobuf:"bytes,5,opt,name=stateOrProvince,proto3" json:"stateOrProvince,omitempty"` // L Locality string `protobuf:"bytes,6,opt,name=locality,proto3" json:"locality,omitempty"` // contains filtered or unexported fields }
func (*CertSubject) Descriptor
deprecated
added in
v0.0.6
func (*CertSubject) Descriptor() ([]byte, []int)
Deprecated: Use CertSubject.ProtoReflect.Descriptor instead.
func (*CertSubject) GetCommonName ¶ added in v0.0.6
func (x *CertSubject) GetCommonName() string
func (*CertSubject) GetCountry ¶ added in v0.0.6
func (x *CertSubject) GetCountry() string
func (*CertSubject) GetLocality ¶ added in v0.0.6
func (x *CertSubject) GetLocality() string
func (*CertSubject) GetOrganization ¶ added in v0.0.6
func (x *CertSubject) GetOrganization() string
func (*CertSubject) GetOrganizationUint ¶ added in v0.0.6
func (x *CertSubject) GetOrganizationUint() string
func (*CertSubject) GetStateOrProvince ¶ added in v0.0.6
func (x *CertSubject) GetStateOrProvince() string
func (*CertSubject) ProtoMessage ¶ added in v0.0.6
func (*CertSubject) ProtoMessage()
func (*CertSubject) ProtoReflect ¶ added in v0.0.6
func (x *CertSubject) ProtoReflect() protoreflect.Message
func (*CertSubject) Reset ¶ added in v0.0.6
func (x *CertSubject) Reset()
func (*CertSubject) String ¶ added in v0.0.6
func (x *CertSubject) String() string
type Certificate ¶
type Certificate struct { // 证书文件bytes Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` Data *CertificateData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` SignatureAlgorithm string `protobuf:"bytes,3,opt,name=signatureAlgorithm,proto3" json:"signatureAlgorithm,omitempty"` SignatureHashAlgorithm string `protobuf:"bytes,4,opt,name=signatureHashAlgorithm,proto3" json:"signatureHashAlgorithm,omitempty"` // contains filtered or unexported fields }
func (*Certificate) Descriptor
deprecated
func (*Certificate) Descriptor() ([]byte, []int)
Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
func (*Certificate) GetData ¶
func (x *Certificate) GetData() *CertificateData
func (*Certificate) GetRaw ¶
func (x *Certificate) GetRaw() []byte
func (*Certificate) GetSignatureAlgorithm ¶
func (x *Certificate) GetSignatureAlgorithm() string
func (*Certificate) GetSignatureHashAlgorithm ¶
func (x *Certificate) GetSignatureHashAlgorithm() string
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) ProtoReflect ¶
func (x *Certificate) ProtoReflect() protoreflect.Message
func (*Certificate) Reset ¶
func (x *Certificate) Reset()
func (*Certificate) String ¶
func (x *Certificate) String() string
type CertificateData ¶
type CertificateData struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` SerialNumber string `protobuf:"bytes,2,opt,name=serialNumber,proto3" json:"serialNumber,omitempty"` SignatureAlgorithm string `protobuf:"bytes,3,opt,name=signatureAlgorithm,proto3" json:"signatureAlgorithm,omitempty"` SignatureHashAlgorithm string `protobuf:"bytes,4,opt,name=signatureHashAlgorithm,proto3" json:"signatureHashAlgorithm,omitempty"` // 发行者 发行证书的证书认证中心 (CA) 的标识信息 Issuer []*CertSubject `protobuf:"bytes,5,rep,name=issuer,proto3" json:"issuer,omitempty"` Validity *Validity `protobuf:"bytes,6,opt,name=validity,proto3" json:"validity,omitempty"` // subject Subject []*CertSubject `protobuf:"bytes,7,rep,name=subject,proto3" json:"subject,omitempty"` SubjectPublicKeyInfo *SubjectPublicKeyInfo `protobuf:"bytes,8,opt,name=subjectPublicKeyInfo,proto3" json:"subjectPublicKeyInfo,omitempty"` Extensions *Extensions `protobuf:"bytes,9,opt,name=extensions,proto3" json:"extensions,omitempty"` // contains filtered or unexported fields }
func (*CertificateData) Descriptor
deprecated
func (*CertificateData) Descriptor() ([]byte, []int)
Deprecated: Use CertificateData.ProtoReflect.Descriptor instead.
func (*CertificateData) GetExtensions ¶
func (x *CertificateData) GetExtensions() *Extensions
func (*CertificateData) GetIssuer ¶ added in v0.0.6
func (x *CertificateData) GetIssuer() []*CertSubject
func (*CertificateData) GetSerialNumber ¶
func (x *CertificateData) GetSerialNumber() string
func (*CertificateData) GetSignatureAlgorithm ¶
func (x *CertificateData) GetSignatureAlgorithm() string
func (*CertificateData) GetSignatureHashAlgorithm ¶
func (x *CertificateData) GetSignatureHashAlgorithm() string
func (*CertificateData) GetSubject ¶
func (x *CertificateData) GetSubject() []*CertSubject
func (*CertificateData) GetSubjectPublicKeyInfo ¶
func (x *CertificateData) GetSubjectPublicKeyInfo() *SubjectPublicKeyInfo
func (*CertificateData) GetValidity ¶
func (x *CertificateData) GetValidity() *Validity
func (*CertificateData) GetVersion ¶
func (x *CertificateData) GetVersion() string
func (*CertificateData) ProtoMessage ¶
func (*CertificateData) ProtoMessage()
func (*CertificateData) ProtoReflect ¶
func (x *CertificateData) ProtoReflect() protoreflect.Message
func (*CertificateData) Reset ¶
func (x *CertificateData) Reset()
func (*CertificateData) String ¶
func (x *CertificateData) String() string
type Extensions ¶
type Extensions struct { SubjectAlternativeNames []string `protobuf:"bytes,4,rep,name=subjectAlternativeNames,proto3" json:"subjectAlternativeNames,omitempty"` // contains filtered or unexported fields }
func (*Extensions) Descriptor
deprecated
func (*Extensions) Descriptor() ([]byte, []int)
Deprecated: Use Extensions.ProtoReflect.Descriptor instead.
func (*Extensions) GetSubjectAlternativeNames ¶
func (x *Extensions) GetSubjectAlternativeNames() []string
func (*Extensions) ProtoMessage ¶
func (*Extensions) ProtoMessage()
func (*Extensions) ProtoReflect ¶
func (x *Extensions) ProtoReflect() protoreflect.Message
func (*Extensions) Reset ¶
func (x *Extensions) Reset()
func (*Extensions) String ¶
func (x *Extensions) String() string
type SubjectPublicKeyInfo ¶
type SubjectPublicKeyInfo struct { Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"` Length string `protobuf:"bytes,2,opt,name=length,proto3" json:"length,omitempty"` Thumbprint string `protobuf:"bytes,3,opt,name=thumbprint,proto3" json:"thumbprint,omitempty"` ThumbprintAlgorithm string `protobuf:"bytes,4,opt,name=thumbprintAlgorithm,proto3" json:"thumbprintAlgorithm,omitempty"` // contains filtered or unexported fields }
func (*SubjectPublicKeyInfo) Descriptor
deprecated
func (*SubjectPublicKeyInfo) Descriptor() ([]byte, []int)
Deprecated: Use SubjectPublicKeyInfo.ProtoReflect.Descriptor instead.
func (*SubjectPublicKeyInfo) GetAlgorithm ¶
func (x *SubjectPublicKeyInfo) GetAlgorithm() string
func (*SubjectPublicKeyInfo) GetLength ¶
func (x *SubjectPublicKeyInfo) GetLength() string
func (*SubjectPublicKeyInfo) GetThumbprint ¶
func (x *SubjectPublicKeyInfo) GetThumbprint() string
func (*SubjectPublicKeyInfo) GetThumbprintAlgorithm ¶
func (x *SubjectPublicKeyInfo) GetThumbprintAlgorithm() string
func (*SubjectPublicKeyInfo) ProtoMessage ¶
func (*SubjectPublicKeyInfo) ProtoMessage()
func (*SubjectPublicKeyInfo) ProtoReflect ¶
func (x *SubjectPublicKeyInfo) ProtoReflect() protoreflect.Message
func (*SubjectPublicKeyInfo) Reset ¶
func (x *SubjectPublicKeyInfo) Reset()
func (*SubjectPublicKeyInfo) String ¶
func (x *SubjectPublicKeyInfo) String() string
type TlsClient ¶
type TlsClient struct { TlsMode TlsMode `protobuf:"varint,1,opt,name=tlsMode,proto3,enum=common.v1.TlsMode" json:"tlsMode,omitempty"` CaCertRef *v1.ResourceRef `protobuf:"bytes,2,opt,name=caCertRef,proto3" json:"caCertRef,omitempty"` SslCertRef *v1.ResourceRef `protobuf:"bytes,3,opt,name=sslCertRef,proto3" json:"sslCertRef,omitempty"` // Optional Sni string `protobuf:"bytes,4,opt,name=sni,proto3" json:"sni,omitempty"` AllowRenegotiation bool `protobuf:"varint,5,opt,name=allowRenegotiation,proto3" json:"allowRenegotiation,omitempty"` // contains filtered or unexported fields }
For Upstream
func (*TlsClient) Descriptor
deprecated
func (*TlsClient) GetAllowRenegotiation ¶
func (*TlsClient) GetCaCertRef ¶
func (x *TlsClient) GetCaCertRef() *v1.ResourceRef
func (*TlsClient) GetSslCertRef ¶
func (x *TlsClient) GetSslCertRef() *v1.ResourceRef
func (*TlsClient) GetTlsMode ¶
func (*TlsClient) ProtoMessage ¶
func (*TlsClient) ProtoMessage()
func (*TlsClient) ProtoReflect ¶
func (x *TlsClient) ProtoReflect() protoreflect.Message
type TlsMode ¶
type TlsMode int32
func (TlsMode) Descriptor ¶
func (TlsMode) Descriptor() protoreflect.EnumDescriptor
func (TlsMode) EnumDescriptor
deprecated
func (TlsMode) Number ¶
func (x TlsMode) Number() protoreflect.EnumNumber
func (TlsMode) Type ¶
func (TlsMode) Type() protoreflect.EnumType
type TlsParameters ¶
type TlsParameters struct { MinimumProtocolVersion TlsParameters_ProtocolVersion `` /* 143-byte string literal not displayed */ MaximumProtocolVersion TlsParameters_ProtocolVersion `` /* 143-byte string literal not displayed */ CipherSuites []string `protobuf:"bytes,3,rep,name=cipherSuites,proto3" json:"cipherSuites,omitempty"` EcdhCurves []string `protobuf:"bytes,4,rep,name=ecdhCurves,proto3" json:"ecdhCurves,omitempty"` // contains filtered or unexported fields }
General TLS parameters. See the [envoy docs](https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/auth/cert.proto#envoy-api-enum-auth-tlsparameters-tlsprotocol) for more information on the meaning of these values. nochange
func (*TlsParameters) Descriptor
deprecated
func (*TlsParameters) Descriptor() ([]byte, []int)
Deprecated: Use TlsParameters.ProtoReflect.Descriptor instead.
func (*TlsParameters) GetCipherSuites ¶
func (x *TlsParameters) GetCipherSuites() []string
func (*TlsParameters) GetEcdhCurves ¶
func (x *TlsParameters) GetEcdhCurves() []string
func (*TlsParameters) GetMaximumProtocolVersion ¶
func (x *TlsParameters) GetMaximumProtocolVersion() TlsParameters_ProtocolVersion
func (*TlsParameters) GetMinimumProtocolVersion ¶
func (x *TlsParameters) GetMinimumProtocolVersion() TlsParameters_ProtocolVersion
func (*TlsParameters) ProtoMessage ¶
func (*TlsParameters) ProtoMessage()
func (*TlsParameters) ProtoReflect ¶
func (x *TlsParameters) ProtoReflect() protoreflect.Message
func (*TlsParameters) Reset ¶
func (x *TlsParameters) Reset()
func (*TlsParameters) String ¶
func (x *TlsParameters) String() string
type TlsParameters_ProtocolVersion ¶
type TlsParameters_ProtocolVersion int32
const ( // Envoy will choose the optimal TLS version. TlsParameters_TLS_AUTO TlsParameters_ProtocolVersion = 0 // TLS 1.0 TlsParameters_TLSv1_0 TlsParameters_ProtocolVersion = 1 // TLS 1.1 TlsParameters_TLSv1_1 TlsParameters_ProtocolVersion = 2 // TLS 1.2 TlsParameters_TLSv1_2 TlsParameters_ProtocolVersion = 3 // TLS 1.3 TlsParameters_TLSv1_3 TlsParameters_ProtocolVersion = 4 )
func (TlsParameters_ProtocolVersion) Descriptor ¶
func (TlsParameters_ProtocolVersion) Descriptor() protoreflect.EnumDescriptor
func (TlsParameters_ProtocolVersion) Enum ¶
func (x TlsParameters_ProtocolVersion) Enum() *TlsParameters_ProtocolVersion
func (TlsParameters_ProtocolVersion) EnumDescriptor
deprecated
func (TlsParameters_ProtocolVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use TlsParameters_ProtocolVersion.Descriptor instead.
func (TlsParameters_ProtocolVersion) Number ¶
func (x TlsParameters_ProtocolVersion) Number() protoreflect.EnumNumber
func (TlsParameters_ProtocolVersion) String ¶
func (x TlsParameters_ProtocolVersion) String() string
func (TlsParameters_ProtocolVersion) Type ¶
func (TlsParameters_ProtocolVersion) Type() protoreflect.EnumType
type TlsServer ¶
type TlsServer struct { TlsMode TlsMode `protobuf:"varint,1,opt,name=tlsMode,proto3,enum=common.v1.TlsMode" json:"tlsMode,omitempty"` CaCertRef *v1.ResourceRef `protobuf:"bytes,2,opt,name=caCertRef,proto3" json:"caCertRef,omitempty"` SslCertRef *v1.ResourceRef `protobuf:"bytes,3,opt,name=sslCertRef,proto3" json:"sslCertRef,omitempty"` // optional. the SNI domains that should be considered for TLS connections SniDomains []string `protobuf:"bytes,4,rep,name=sniDomains,proto3" json:"sniDomains,omitempty"` RequireClientCertificate bool `protobuf:"varint,5,opt,name=requireClientCertificate,proto3" json:"requireClientCertificate,omitempty"` // contains filtered or unexported fields }
For Gateway(Downstream)
func (*TlsServer) Descriptor
deprecated
func (*TlsServer) GetCaCertRef ¶
func (x *TlsServer) GetCaCertRef() *v1.ResourceRef
func (*TlsServer) GetRequireClientCertificate ¶
func (*TlsServer) GetSniDomains ¶
func (*TlsServer) GetSslCertRef ¶
func (x *TlsServer) GetSslCertRef() *v1.ResourceRef
func (*TlsServer) GetTlsMode ¶
func (*TlsServer) ProtoMessage ¶
func (*TlsServer) ProtoMessage()
func (*TlsServer) ProtoReflect ¶
func (x *TlsServer) ProtoReflect() protoreflect.Message
type Validity ¶
type Validity struct { NotBefore *v1.Timestamp `protobuf:"bytes,1,opt,name=notBefore,proto3" json:"notBefore,omitempty"` NotAfter *v1.Timestamp `protobuf:"bytes,2,opt,name=notAfter,proto3" json:"notAfter,omitempty"` // contains filtered or unexported fields }
func (*Validity) Descriptor
deprecated
func (*Validity) GetNotAfter ¶
func (*Validity) GetNotBefore ¶
func (*Validity) ProtoMessage ¶
func (*Validity) ProtoMessage()
func (*Validity) ProtoReflect ¶
func (x *Validity) ProtoReflect() protoreflect.Message