cluster: rename Zones to Cluster
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
package cluster
|
||||
|
||||
// SyncAll updates all config files
|
||||
func (m *Zones) SyncAll() error {
|
||||
func (m *Cluster) SyncAll() error {
|
||||
for _, fn := range []func() error{
|
||||
m.SyncAllWireguard,
|
||||
m.SyncAllCeph,
|
||||
@@ -15,7 +15,7 @@ func (m *Zones) SyncAll() error {
|
||||
}
|
||||
|
||||
// SyncAllWireguard updates all wireguard config files
|
||||
func (m *Zones) SyncAllWireguard() error {
|
||||
func (m *Cluster) SyncAllWireguard() error {
|
||||
var err error
|
||||
|
||||
for ring := 0; ring < RingsCount; ring++ {
|
||||
@@ -34,7 +34,7 @@ func (m *Zones) SyncAllWireguard() error {
|
||||
}
|
||||
|
||||
// SyncAllCeph updates the ceph.conf file
|
||||
func (m *Zones) SyncAllCeph() error {
|
||||
func (m *Cluster) SyncAllCeph() error {
|
||||
cfg, err := m.GenCephConfig()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user