Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KdsClientConfig ¶
type KdsClientConfig struct { // RootCAFile defines a path to a file with PEM-encoded Root CA. Client will verify server by using it. RootCAFile string `yaml:"rootCaFile" envconfig:"kuma_kds_client_root_ca_file"` }
func (KdsClientConfig) Sanitize ¶
func (k KdsClientConfig) Sanitize()
func (KdsClientConfig) Validate ¶
func (k KdsClientConfig) Validate() error
type KdsConfig ¶
type KdsConfig struct { // Server stores configuration for the KDS server part. Server *KdsServerConfig `yaml:"server"` // Client stores configuration for the KDS client part. Client *KdsClientConfig `yaml:"client"` }
Kuma Discovery Service (KDS) configuration.
func DefaultKdsConfig ¶
func DefaultKdsConfig() *KdsConfig
type KdsServerConfig ¶
type KdsServerConfig struct { // Port of a gRPC server that serves Kuma Discovery Service (KDS). GrpcPort uint32 `yaml:"grpcPort" envconfig:"kuma_kds_server_grpc_port"` // Interval for refreshing state of the world RefreshInterval time.Duration `yaml:"refreshInterval" envconfig:"kuma_kds_server_refresh_interval"` // TlsCertFile defines a path to a file with PEM-encoded TLS cert. TlsCertFile string `yaml:"tlsCertFile" envconfig:"kuma_kds_server_tls_cert_file"` // TlsKeyFile defines a path to a file with PEM-encoded TLS key. TlsKeyFile string `yaml:"tlsKeyFile" envconfig:"kuma_kds_server_tls_key_file"` }
func (*KdsServerConfig) Sanitize ¶
func (c *KdsServerConfig) Sanitize()
func (*KdsServerConfig) Validate ¶
func (c *KdsServerConfig) Validate() (errs error)
Click to show internal directories.
Click to hide internal directories.