Documentation
¶
Index ¶
- Variables
- type FileConfig
- func (*FileConfig) Descriptor() ([]byte, []int)deprecated
- func (x *FileConfig) GetCa() string
- func (x *FileConfig) GetCert() string
- func (x *FileConfig) GetKey() string
- func (*FileConfig) ProtoMessage()
- func (x *FileConfig) ProtoReflect() protoreflect.Message
- func (x *FileConfig) Reset()
- func (x *FileConfig) String() string
- func (m *FileConfig) Validate() error
- func (m *FileConfig) ValidateAll() error
- type FileConfigMultiError
- type FileConfigValidationError
- type PEMConfig
- func (*PEMConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PEMConfig) GetCa() []byte
- func (x *PEMConfig) GetCert() []byte
- func (x *PEMConfig) GetKey() []byte
- func (*PEMConfig) ProtoMessage()
- func (x *PEMConfig) ProtoReflect() protoreflect.Message
- func (x *PEMConfig) Reset()
- func (x *PEMConfig) String() string
- func (m *PEMConfig) Validate() error
- func (m *PEMConfig) ValidateAll() error
- type PEMConfigMultiError
- type PEMConfigValidationError
- type TLSConfig
- func (*TLSConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TLSConfig) GetCipherSuites() []string
- func (x *TLSConfig) GetClientCaFile() string
- func (x *TLSConfig) GetEnabled() bool
- func (x *TLSConfig) GetFile() *FileConfig
- func (x *TLSConfig) GetInsecureSkipVerify() bool
- func (x *TLSConfig) GetMinVersion() string
- func (x *TLSConfig) GetPem() *PEMConfig
- func (x *TLSConfig) GetRequireClientCert() bool
- func (x *TLSConfig) GetServerName() string
- func (*TLSConfig) ProtoMessage()
- func (x *TLSConfig) ProtoReflect() protoreflect.Message
- func (x *TLSConfig) Reset()
- func (x *TLSConfig) String() string
- func (m *TLSConfig) Validate() error
- func (m *TLSConfig) ValidateAll() error
- type TLSConfigMultiError
- type TLSConfigValidationError
Constants ¶
This section is empty.
Variables ¶
var File_runtime_security_transport_v1_tls_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileConfig ¶
type FileConfig struct {
// Path to certificate file
Cert string `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
// Path to private key file
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Path to CA certificate file (optional)
Ca string `protobuf:"bytes,3,opt,name=ca,proto3" json:"ca,omitempty"`
// contains filtered or unexported fields
}
File-based certificate configuration
func (*FileConfig) Descriptor
deprecated
func (*FileConfig) Descriptor() ([]byte, []int)
Deprecated: Use FileConfig.ProtoReflect.Descriptor instead.
func (*FileConfig) GetCa ¶
func (x *FileConfig) GetCa() string
func (*FileConfig) GetCert ¶
func (x *FileConfig) GetCert() string
func (*FileConfig) GetKey ¶
func (x *FileConfig) GetKey() string
func (*FileConfig) ProtoMessage ¶
func (*FileConfig) ProtoMessage()
func (*FileConfig) ProtoReflect ¶
func (x *FileConfig) ProtoReflect() protoreflect.Message
func (*FileConfig) Reset ¶
func (x *FileConfig) Reset()
func (*FileConfig) String ¶
func (x *FileConfig) String() string
func (*FileConfig) Validate ¶
func (m *FileConfig) Validate() error
Validate checks the field values on FileConfig 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 (*FileConfig) ValidateAll ¶
func (m *FileConfig) ValidateAll() error
ValidateAll checks the field values on FileConfig 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 FileConfigMultiError, or nil if none found.
type FileConfigMultiError ¶
type FileConfigMultiError []error
FileConfigMultiError is an error wrapping multiple validation errors returned by FileConfig.ValidateAll() if the designated constraints aren't met.
func (FileConfigMultiError) AllErrors ¶
func (m FileConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileConfigMultiError) Error ¶
func (m FileConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileConfigValidationError ¶
type FileConfigValidationError struct {
// contains filtered or unexported fields
}
FileConfigValidationError is the validation error returned by FileConfig.Validate if the designated constraints aren't met.
func (FileConfigValidationError) Cause ¶
func (e FileConfigValidationError) Cause() error
Cause function returns cause value.
func (FileConfigValidationError) Error ¶
func (e FileConfigValidationError) Error() string
Error satisfies the builtin error interface
func (FileConfigValidationError) ErrorName ¶
func (e FileConfigValidationError) ErrorName() string
ErrorName returns error name.
func (FileConfigValidationError) Field ¶
func (e FileConfigValidationError) Field() string
Field function returns field value.
func (FileConfigValidationError) Key ¶
func (e FileConfigValidationError) Key() bool
Key function returns key value.
func (FileConfigValidationError) Reason ¶
func (e FileConfigValidationError) Reason() string
Reason function returns reason value.
type PEMConfig ¶
type PEMConfig struct {
// Certificate data in PEM format
Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
// Private key data in PEM format
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// CA certificate data in PEM format (optional)
Ca []byte `protobuf:"bytes,3,opt,name=ca,proto3" json:"ca,omitempty"`
// contains filtered or unexported fields
}
Inline PEM certificate configuration
func (*PEMConfig) Descriptor
deprecated
func (*PEMConfig) ProtoMessage ¶
func (*PEMConfig) ProtoMessage()
func (*PEMConfig) ProtoReflect ¶
func (x *PEMConfig) ProtoReflect() protoreflect.Message
func (*PEMConfig) Validate ¶
Validate checks the field values on PEMConfig 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 (*PEMConfig) ValidateAll ¶
ValidateAll checks the field values on PEMConfig 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 PEMConfigMultiError, or nil if none found.
type PEMConfigMultiError ¶
type PEMConfigMultiError []error
PEMConfigMultiError is an error wrapping multiple validation errors returned by PEMConfig.ValidateAll() if the designated constraints aren't met.
func (PEMConfigMultiError) AllErrors ¶
func (m PEMConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PEMConfigMultiError) Error ¶
func (m PEMConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PEMConfigValidationError ¶
type PEMConfigValidationError struct {
// contains filtered or unexported fields
}
PEMConfigValidationError is the validation error returned by PEMConfig.Validate if the designated constraints aren't met.
func (PEMConfigValidationError) Cause ¶
func (e PEMConfigValidationError) Cause() error
Cause function returns cause value.
func (PEMConfigValidationError) Error ¶
func (e PEMConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PEMConfigValidationError) ErrorName ¶
func (e PEMConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PEMConfigValidationError) Field ¶
func (e PEMConfigValidationError) Field() string
Field function returns field value.
func (PEMConfigValidationError) Key ¶
func (e PEMConfigValidationError) Key() bool
Key function returns key value.
func (PEMConfigValidationError) Reason ¶
func (e PEMConfigValidationError) Reason() string
Reason function returns reason value.
type TLSConfig ¶
type TLSConfig struct {
// Whether TLS is enabled
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// Certificate configuration
// File-based certificate configuration
File *FileConfig `protobuf:"bytes,2,opt,name=file,proto3,oneof" json:"file,omitempty"`
// Inline PEM certificate data
Pem *PEMConfig `protobuf:"bytes,3,opt,name=pem,proto3,oneof" json:"pem,omitempty"`
// Minimum TLS version
// Allowed values: "1.0", "1.1", "1.2", "1.3"
// Default: "1.2"
MinVersion string `protobuf:"bytes,4,opt,name=min_version,proto3" json:"min_version,omitempty"`
// List of supported cipher suites
// Example: ["TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"]
CipherSuites []string `protobuf:"bytes,5,rep,name=cipher_suites,proto3" json:"cipher_suites,omitempty"`
// Require client certificate
// Default: false
RequireClientCert bool `protobuf:"varint,6,opt,name=require_client_cert,proto3" json:"require_client_cert,omitempty"`
// Client CA certificate file path (for client cert validation)
ClientCaFile string `protobuf:"bytes,7,opt,name=client_ca_file,proto3" json:"client_ca_file,omitempty"`
// Whether to skip server certificate verification
// Default: false
InsecureSkipVerify bool `protobuf:"varint,8,opt,name=insecure_skip_verify,proto3" json:"insecure_skip_verify,omitempty"`
// Server name for SNI (Server Name Indication), used by client
// Default: ""
ServerName string `protobuf:"bytes,9,opt,name=server_name,proto3" json:"server_name,omitempty"`
// contains filtered or unexported fields
}
TLS configuration for secure connections
func (*TLSConfig) Descriptor
deprecated
func (*TLSConfig) GetCipherSuites ¶
func (*TLSConfig) GetClientCaFile ¶
func (*TLSConfig) GetEnabled ¶
func (*TLSConfig) GetFile ¶
func (x *TLSConfig) GetFile() *FileConfig
func (*TLSConfig) GetInsecureSkipVerify ¶
func (*TLSConfig) GetMinVersion ¶
func (*TLSConfig) GetRequireClientCert ¶
func (*TLSConfig) GetServerName ¶
func (*TLSConfig) ProtoMessage ¶
func (*TLSConfig) ProtoMessage()
func (*TLSConfig) ProtoReflect ¶
func (x *TLSConfig) ProtoReflect() protoreflect.Message
func (*TLSConfig) Validate ¶
Validate checks the field values on TLSConfig 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 (*TLSConfig) ValidateAll ¶
ValidateAll checks the field values on TLSConfig 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 TLSConfigMultiError, or nil if none found.
type TLSConfigMultiError ¶
type TLSConfigMultiError []error
TLSConfigMultiError is an error wrapping multiple validation errors returned by TLSConfig.ValidateAll() if the designated constraints aren't met.
func (TLSConfigMultiError) AllErrors ¶
func (m TLSConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TLSConfigMultiError) Error ¶
func (m TLSConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TLSConfigValidationError ¶
type TLSConfigValidationError struct {
// contains filtered or unexported fields
}
TLSConfigValidationError is the validation error returned by TLSConfig.Validate if the designated constraints aren't met.
func (TLSConfigValidationError) Cause ¶
func (e TLSConfigValidationError) Cause() error
Cause function returns cause value.
func (TLSConfigValidationError) Error ¶
func (e TLSConfigValidationError) Error() string
Error satisfies the builtin error interface
func (TLSConfigValidationError) ErrorName ¶
func (e TLSConfigValidationError) ErrorName() string
ErrorName returns error name.
func (TLSConfigValidationError) Field ¶
func (e TLSConfigValidationError) Field() string
Field function returns field value.
func (TLSConfigValidationError) Key ¶
func (e TLSConfigValidationError) Key() bool
Key function returns key value.
func (TLSConfigValidationError) Reason ¶
func (e TLSConfigValidationError) Reason() string
Reason function returns reason value.