cluster: rename pkg/zones to pkg/cluster

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-10 19:01:36 +00:00
parent 046c9a508b
commit 5abb4c2f92
19 changed files with 33 additions and 31 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
package main
import "git.jpi.io/amery/jpictl/pkg/zones"
import "git.jpi.io/amery/jpictl/pkg/cluster"
// Config describes the repository
type Config struct {
@@ -14,9 +14,9 @@ var cfg = &Config{
}
// LoadZones loads all zones and machines in the config directory
func (cfg *Config) LoadZones(resolve bool) (*zones.Zones, error) {
return zones.New(cfg.Base, cfg.Domain,
zones.ResolvePublicAddresses(resolve),
zones.WithLogger(log),
func (cfg *Config) LoadZones(resolve bool) (*cluster.Zones, error) {
return cluster.New(cfg.Base, cfg.Domain,
cluster.ResolvePublicAddresses(resolve),
cluster.WithLogger(log),
)
}