proto

package
v0.14.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use TLSConfig.ProtoReflect.Descriptor instead.

func (*TLSConfig) GetCaCertFile

func (x *TLSConfig) GetCaCertFile() string

func (*TLSConfig) GetDisableCertValidation

func (x *TLSConfig) GetDisableCertValidation() bool

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 (x *TLSConfig) GetReloadIntervalSec() int32

func (*TLSConfig) GetServerName

func (x *TLSConfig) GetServerName() string

func (*TLSConfig) GetTlsCertFile

func (x *TLSConfig) GetTlsCertFile() string

func (*TLSConfig) GetTlsKeyFile

func (x *TLSConfig) GetTlsKeyFile() string

func (*TLSConfig) ProtoMessage

func (*TLSConfig) ProtoMessage()

func (*TLSConfig) ProtoReflect

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

func (*TLSConfig) Reset

func (x *TLSConfig) Reset()

func (*TLSConfig) String

func (x *TLSConfig) String() string

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) UnmarshalJSON deprecated added in v0.14.0

func (x *TLSVersion) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL