etcd

package
v0.1.89 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 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

func ClientServiceName

func ClientServiceName(shardName string) string

ClientServiceName returns the client service name for a shard. shardName must be "etcd" (the default shard) or "etcd-<suffix>" (a named shard).

func DiscoveryServiceName

func DiscoveryServiceName(shardName string) string

DiscoveryServiceName returns the discovery service name for a shard. shardName must be "etcd" (the default shard) or "etcd-<suffix>" (a named shard).

Types

type ManagedEffectiveShard

type ManagedEffectiveShard struct {
	Name             string
	ResourcePrefixes []string
	Storage          hyperv1.ManagedEtcdShardStorageSpec
	Replicas         int32 // 0 means "use framework default" (for the default shard)
	Scheduling       hyperv1.EtcdShardSchedulingSpec
	IsDefault        bool
}

ManagedEffectiveShard represents a resolved etcd shard with all configuration needed to create the corresponding component.

func EffectiveShards

func EffectiveShards(managed *hyperv1.ManagedEtcdSpec) []ManagedEffectiveShard

EffectiveShards returns the full list of etcd shards for a managed etcd configuration. It always synthesizes a default shard from the top-level Storage field that handles all resources ("/"), then appends any explicitly configured non-default shards. When no shards are configured, the returned list contains only the default shard, which is identical to today's single-etcd behavior.

type UnmanagedEffectiveShard

type UnmanagedEffectiveShard struct {
	Name             string
	ResourcePrefixes []string
	Endpoint         string
	IsDefault        bool
}

UnmanagedEffectiveShard represents a resolved etcd shard for unmanaged etcd.

func UnmanagedEffectiveShards

func UnmanagedEffectiveShards(unmanaged *hyperv1.UnmanagedEtcdSpec) []UnmanagedEffectiveShard

UnmanagedEffectiveShards returns the full list of etcd shards for unmanaged etcd.

Jump to

Keyboard shortcuts

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