kds

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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

func (*KdsConfig) Sanitize

func (c *KdsConfig) Sanitize()

func (*KdsConfig) Validate

func (c *KdsConfig) Validate() (errs error)

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)

Jump to

Keyboard shortcuts

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