...
Package api
Overview ▹
Index ▹
func EnableCapability ¶
func EnableCapability(c Capability)
func IsCapabilityEnabled ¶
func IsCapabilityEnabled(c Capability) bool
func UpdateCapability ¶
func UpdateCapability(v *semver.Version)
UpdateCapability updates the enabledMap when the cluster version increases.
type Capability ¶
type Capability string
const (
AuthCapability Capability = "auth"
V3rpcCapability Capability = "v3rpc"
)
type Cluster ¶
Cluster is an interface representing a collection of members in one etcd 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
// IsIDRemoved checks whether the given ID has been removed from this
// cluster at some point in the past
IsIDRemoved(id types.ID) bool
// Version is the cluster-wide minimum major.minor version.
Version() *semver.Version
}
Subdirectories
| Name | Synopsis |
|---|---|
| .. | |
| v2http | Package v2http provides etcd client and server implementations. |
| httptypes | Package httptypes defines how etcd's HTTP API entities are serialized to and deserialized from JSON. |
| v3client | Package v3client provides clientv3 interfaces from an etcdserver. |
| v3election | Package v3election provides a v3 election service from an etcdserver. |
| v3electionpb | Package v3electionpb is a generated protocol buffer package. |
| gw | Package v3electionpb is a reverse proxy. |
| v3lock | Package v3lock provides a v3 locking service from an etcdserver. |
| v3lockpb | Package v3lockpb is a generated protocol buffer package. |
| gw | Package v3lockpb is a reverse proxy. |
| v3rpc | Package v3rpc implements etcd v3 RPC system based on gRPC. |
| rpctypes | Package rpctypes has types and values shared by the etcd server and client for v3 RPC interaction. |
ActiveGo 1.8