api

package
v3.0.0-...-eac99ac Latest Latest
Warning

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

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

Documentation

Overview

Package api manages the capabilities and features that are exposed to clients by the etcd cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableCapability

func EnableCapability(c Capability)

func IsCapabilityEnabled

func IsCapabilityEnabled(c Capability) bool

func UpdateCapability

func UpdateCapability(lg *zap.Logger, v *semver.Version)

UpdateCapability updates the enabledMap when the cluster version increases.

Types

type Capability

type Capability string
const (
	AuthCapability  Capability = "auth"
	V3rpcCapability Capability = "v3rpc"
)

type Cluster

type Cluster interface {
	// ID returns the cluster ID
	ID() types.ID
	// ClientURLs returns an aggregate set of all URLs on which this
	// cluster is listening for client requests
	ClientURLs() []string
	// Members returns a slice of members sorted by their ID
	Members() []*membership.Member
	// Member retrieves a particular member based on ID, or nil if the
	// member does not exist in the cluster
	Member(id types.ID) *membership.Member
	// Version is the cluster-wide minimum major.minor version.
	Version() *semver.Version
}

Cluster is an interface representing a collection of members in one etcd cluster.

Directories

Path Synopsis
Package etcdhttp implements HTTP transportation layer for etcdserver.
Package etcdhttp implements HTTP transportation layer for etcdserver.
Package membership describes individual etcd members and clusters of members.
Package membership describes individual etcd members and clusters of members.
Package rafthttp implements HTTP transportation layer for etcd/raft pkg.
Package rafthttp implements HTTP transportation layer for etcd/raft pkg.
Package snap handles Raft nodes' states with snapshots.
Package snap handles Raft nodes' states with snapshots.
Package v2discovery provides an implementation of the cluster discovery that is used by etcd with v2 client.
Package v2discovery provides an implementation of the cluster discovery that is used by etcd with v2 client.
Package v2error describes errors in etcd project.
Package v2error describes errors in etcd project.
Package v2store defines etcd's in-memory key/value store in v2 API.
Package v2store defines etcd's in-memory key/value store in v2 API.
Package v3alarm manages health status alarms in etcd.
Package v3alarm manages health status alarms in etcd.
Package v3client provides clientv3 interfaces from an etcdserver.
Package v3client provides clientv3 interfaces from an etcdserver.
Package v3compactor implements automated policies for compacting etcd's mvcc storage.
Package v3compactor implements automated policies for compacting etcd's mvcc storage.
Package v3discovery provides an implementation of the cluster discovery that is used by etcd with v3 client.
Package v3discovery provides an implementation of the cluster discovery that is used by etcd with v3 client.
Package v3election provides a v3 election service from an etcdserver.
Package v3election provides a v3 election service from an etcdserver.
v3electionpb/gw
Package v3electionpb is a reverse proxy.
Package v3electionpb is a reverse proxy.
Package v3lock provides a v3 locking service from an etcdserver.
Package v3lock provides a v3 locking service from an etcdserver.
v3lockpb/gw
Package v3lockpb is a reverse proxy.
Package v3lockpb is a reverse proxy.
Package v3rpc implements etcd v3 RPC system based on gRPC.
Package v3rpc implements etcd v3 RPC system based on gRPC.

Jump to

Keyboard shortcuts

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