26c49dff72
Signed-off-by: Alejandro Mery <amery@jpi.io>
20 lines
372 B
Go
20 lines
372 B
Go
package main
|
|
|
|
import "git.jpi.io/amery/jpictl/pkg/zones"
|
|
|
|
// Config describes the repository
|
|
type Config struct {
|
|
Base string
|
|
Domain string
|
|
}
|
|
|
|
var cfg = &Config{
|
|
Base: "./m",
|
|
Domain: "m.jpi.cloud",
|
|
}
|
|
|
|
// LoadZones loads all zones and machines in the config directory
|
|
func (cfg *Config) LoadZones() (*zones.Zones, error) {
|
|
return zones.New(cfg.Base, cfg.Domain)
|
|
}
|