Documentation
¶
Index ¶
- Variables
- type TLSConfig
- func (*TLSConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TLSConfig) GetCaCertFile() string
- func (x *TLSConfig) GetDisableCertValidation() bool
- func (x *TLSConfig) GetMaxTlsVersion() TLSVersion
- func (x *TLSConfig) GetMinTlsVersion() TLSVersion
- func (x *TLSConfig) GetReloadIntervalSec() int32
- func (x *TLSConfig) GetServerName() string
- func (x *TLSConfig) GetTlsCertFile() string
- func (x *TLSConfig) GetTlsKeyFile() string
- func (*TLSConfig) ProtoMessage()
- func (x *TLSConfig) ProtoReflect() protoreflect.Message
- func (x *TLSConfig) Reset()
- func (x *TLSConfig) String() string
- type TLSVersion
- func (TLSVersion) Descriptor() protoreflect.EnumDescriptor
- func (x TLSVersion) Enum() *TLSVersion
- func (TLSVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x TLSVersion) Number() protoreflect.EnumNumber
- func (x TLSVersion) String() string
- func (TLSVersion) Type() protoreflect.EnumType
- func (x *TLSVersion) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TLSVersion_name = map[int32]string{ 0: "TLS_AUTO", 1: "TLS_1_0", 2: "TLS_1_1", 3: "TLS_1_2", 4: "TLS_1_3", } TLSVersion_value = map[string]int32{ "TLS_AUTO": 0, "TLS_1_0": 1, "TLS_1_1": 2, "TLS_1_2": 3, "TLS_1_3": 4, } )
Enum value maps for TLSVersion.
View Source
var File_github_com_cloudprober_cloudprober_common_tlsconfig_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TLSConfig ¶
type TLSConfig struct {
// CA certificate file to verify certificates provided by the other party.
CaCertFile *string `protobuf:"bytes,1,opt,name=ca_cert_file,json=caCertFile" json:"ca_cert_file,omitempty"`
// Local certificate file.
TlsCertFile *string `protobuf:"bytes,2,opt,name=tls_cert_file,json=tlsCertFile" json:"tls_cert_file,omitempty"`
// Private key file corresponding to the certificate above.
TlsKeyFile *string `protobuf:"bytes,3,opt,name=tls_key_file,json=tlsKeyFile" json:"tls_key_file,omitempty"`
// Whether to ignore the cert validation.
DisableCertValidation *bool `protobuf:"varint,4,opt,name=disable_cert_validation,json=disableCertValidation" json:"disable_cert_validation,omitempty"`
// ServerName override
ServerName *string `protobuf:"bytes,5,opt,name=server_name,json=serverName" json:"server_name,omitempty"`
MinTlsVersion *TLSVersion `` /* 134-byte string literal not displayed */
MaxTlsVersion *TLSVersion `` /* 134-byte string literal not displayed */
// Certificate reload interval in seconds. If configured, the TLS cert will
// be reloaded every reload_interval_sec seconds. This is useful when
// certificates are generated and refreshed dynamically.
ReloadIntervalSec *int32 `protobuf:"varint,6,opt,name=reload_interval_sec,json=reloadIntervalSec" json:"reload_interval_sec,omitempty"`
// contains filtered or unexported fields
}
func (*TLSConfig) Descriptor
deprecated
func (*TLSConfig) GetCaCertFile ¶
func (*TLSConfig) GetDisableCertValidation ¶
func (*TLSConfig) GetMaxTlsVersion ¶ added in v0.14.0
func (x *TLSConfig) GetMaxTlsVersion() TLSVersion
func (*TLSConfig) GetMinTlsVersion ¶ added in v0.14.0
func (x *TLSConfig) GetMinTlsVersion() TLSVersion
func (*TLSConfig) GetReloadIntervalSec ¶ added in v0.12.9
func (*TLSConfig) GetServerName ¶
func (*TLSConfig) GetTlsCertFile ¶
func (*TLSConfig) GetTlsKeyFile ¶
func (*TLSConfig) ProtoMessage ¶
func (*TLSConfig) ProtoMessage()
func (*TLSConfig) ProtoReflect ¶
func (x *TLSConfig) ProtoReflect() protoreflect.Message
type TLSVersion ¶ added in v0.14.0
type TLSVersion int32
const ( TLSVersion_TLS_AUTO TLSVersion = 0 TLSVersion_TLS_1_0 TLSVersion = 1 TLSVersion_TLS_1_1 TLSVersion = 2 TLSVersion_TLS_1_2 TLSVersion = 3 TLSVersion_TLS_1_3 TLSVersion = 4 )
func (TLSVersion) Descriptor ¶ added in v0.14.0
func (TLSVersion) Descriptor() protoreflect.EnumDescriptor
func (TLSVersion) Enum ¶ added in v0.14.0
func (x TLSVersion) Enum() *TLSVersion
func (TLSVersion) EnumDescriptor
deprecated
added in
v0.14.0
func (TLSVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use TLSVersion.Descriptor instead.
func (TLSVersion) Number ¶ added in v0.14.0
func (x TLSVersion) Number() protoreflect.EnumNumber
func (TLSVersion) String ¶ added in v0.14.0
func (x TLSVersion) String() string
func (TLSVersion) Type ¶ added in v0.14.0
func (TLSVersion) Type() protoreflect.EnumType
func (*TLSVersion) UnmarshalJSON
deprecated
added in
v0.14.0
func (x *TLSVersion) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.