Documentation
¶
Index ¶
- func FindNonLocalhost(addrs []string) (string, error)
- func IsLearnerReady(leaderStatus, learnerStatus *clientv3.StatusResponse) bool
- type APIMember
- type APIMemberInput
- type APIMemberJoinInput
- type APIMemberJoinOutput
- type APIMembersOutput
- type ClusterStatus
- type LeaderClusterReconciler
- func (lcr *LeaderClusterReconciler) ClusterStatus(ctx context.Context) (*ClusterStatus, error)
- func (lcr *LeaderClusterReconciler) MemberAdded(m *etcdserverpb.Member)
- func (lcr *LeaderClusterReconciler) MemberRemoved(id uint64)
- func (lcr *LeaderClusterReconciler) Reconcile()
- func (lcr *LeaderClusterReconciler) Start()
- func (lcr *LeaderClusterReconciler) Stop()
- type Role
- func (r *Role) APIClusterJoin() usecase.Interactor
- func (r *Role) APIClusterMembers() usecase.Interactor
- func (r *Role) APIClusterMoveLeader() usecase.Interactor
- func (r *Role) APIClusterRemove() usecase.Interactor
- func (ee *Role) Config() *embed.Config
- func (ee *Role) Start(ctx context.Context, cfg []byte) error
- func (ee *Role) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNonLocalhost ¶ added in v0.28.0
func IsLearnerReady ¶ added in v0.28.0
func IsLearnerReady(leaderStatus, learnerStatus *clientv3.StatusResponse) bool
Types ¶
type APIMemberInput ¶ added in v0.28.0
type APIMemberInput struct {
PeerID string `query:"peerID" required:"true"`
}
type APIMemberJoinInput ¶ added in v0.28.0
type APIMemberJoinOutput ¶ added in v0.28.0
type APIMemberJoinOutput struct {
EtcdInitialCluster string `json:"etcdInitialCluster"`
}
type APIMembersOutput ¶ added in v0.28.0
type APIMembersOutput struct {
Members []APIMember `json:"members"`
}
type ClusterStatus ¶ added in v0.28.0
type ClusterStatus struct {
Healthy error
MemberStatus map[uint64]*clientv3.StatusResponse
}
func (*ClusterStatus) FindLeaderStatus ¶ added in v0.28.0
func (cst *ClusterStatus) FindLeaderStatus() *clientv3.StatusResponse
func (*ClusterStatus) FindLearnerStatus ¶ added in v0.28.0
func (cst *ClusterStatus) FindLearnerStatus() *clientv3.StatusResponse
type LeaderClusterReconciler ¶ added in v0.28.0
type LeaderClusterReconciler struct {
// contains filtered or unexported fields
}
func NewLeaderClusterConciler ¶ added in v0.28.0
func NewLeaderClusterConciler(i roles.Instance) *LeaderClusterReconciler
func (*LeaderClusterReconciler) ClusterStatus ¶ added in v0.28.0
func (lcr *LeaderClusterReconciler) ClusterStatus(ctx context.Context) (*ClusterStatus, error)
func (*LeaderClusterReconciler) MemberAdded ¶ added in v0.28.0
func (lcr *LeaderClusterReconciler) MemberAdded(m *etcdserverpb.Member)
func (*LeaderClusterReconciler) MemberRemoved ¶ added in v0.28.0
func (lcr *LeaderClusterReconciler) MemberRemoved(id uint64)
func (*LeaderClusterReconciler) Reconcile ¶ added in v0.28.0
func (lcr *LeaderClusterReconciler) Reconcile()
func (*LeaderClusterReconciler) Start ¶ added in v0.28.0
func (lcr *LeaderClusterReconciler) Start()
func (*LeaderClusterReconciler) Stop ¶ added in v0.28.0
func (lcr *LeaderClusterReconciler) Stop()
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func (*Role) APIClusterJoin ¶ added in v0.28.0
func (r *Role) APIClusterJoin() usecase.Interactor
func (*Role) APIClusterMembers ¶ added in v0.28.0
func (r *Role) APIClusterMembers() usecase.Interactor
func (*Role) APIClusterMoveLeader ¶ added in v0.28.0
func (r *Role) APIClusterMoveLeader() usecase.Interactor
func (*Role) APIClusterRemove ¶ added in v0.28.0
func (r *Role) APIClusterRemove() usecase.Interactor
Click to show internal directories.
Click to hide internal directories.