You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
453 B
22 lines
453 B
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(resolve bool) (*zones.Zones, error) { |
|
return zones.New(cfg.Base, cfg.Domain, |
|
zones.ResolvePublicAddresses(resolve), |
|
zones.WithLogger(log), |
|
) |
|
}
|
|
|