etcd

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 1 Imported by: 4 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Embedded bool `long:"embedded" description:"Use embedded etcd instance instead of the external one. Note: use for testing only."`

	EmbeddedClientPort uint16 `long:"embedded_client_port" description:"Client port to use for the embedded instance. Note: use for testing only."`

	EmbeddedPeerPort uint16 `long:"embedded_peer_port" description:"Peer port to use for the embedded instance. Note: use for testing only."`

	EmbeddedLogFile string `long:"embedded_log_file" description:"Optional log file to use for embedded instance logs. note: use for testing only."`

	Host string `long:"host" description:"Etcd database host. Supports multiple hosts separated by a comma."`

	User string `long:"user" description:"Etcd database user."`

	Pass string `long:"pass" description:"Password for the database user."`

	Namespace string `long:"namespace" description:"The etcd namespace to use."`

	DisableTLS bool `long:"disabletls" description:"Disable TLS for etcd connection. Caution: use for development only."`

	CertFile string `long:"cert_file" description:"Path to the TLS certificate for etcd RPC."`

	KeyFile string `long:"key_file" description:"Path to the TLS private key for etcd RPC."`

	InsecureSkipVerify bool `long:"insecure_skip_verify" description:"Whether we intend to skip TLS verification"`

	CollectStats bool `long:"collect_stats" description:"Whether to collect etcd commit stats."`

	MaxMsgSize int `long:"max_msg_size" description:"The maximum message size in bytes that we may send to etcd."`

	// SingleWriter should be set to true if we intend to only allow a
	// single writer to the database at a time.
	SingleWriter bool
}

Config holds etcd configuration alongside with configuration related to our higher level interface.

func (*Config) CloneWithSingleWriter added in v1.0.2

func (c *Config) CloneWithSingleWriter() *Config

CloneWithSingleWriter clones the current configuration and returns a new instance with the single writer property set to true.

func (*Config) CloneWithSubNamespace added in v1.0.2

func (c *Config) CloneWithSubNamespace(subNamespace string) *Config

CloneWithSubNamespace clones the current configuration and returns a new instance with the given sub namespace applied by appending it to the main namespace.

Jump to

Keyboard shortcuts

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