MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / SetPassword

Method SetPassword

store/cluster.go:93–99  ·  view source on GitHub ↗

SetPassword will set the password for all nodes in the cluster.

(password string)

Source from the content-addressed store, hash-verified

91
92// SetPassword will set the password for all nodes in the cluster.
93func (cluster *Cluster) SetPassword(password string) {
94 for i := 0; i < len(cluster.Shards); i++ {
95 for j := 0; j < len(cluster.Shards[i].Nodes); j++ {
96 cluster.Shards[i].Nodes[j].SetPassword(password)
97 }
98 }
99}
100
101func (cluster *Cluster) ToSlotString() (string, error) {
102 var builder strings.Builder

Callers 1

CreateMethod · 0.95

Calls 1

SetPasswordMethod · 0.65

Tested by

no test coverage detected