Update generator interface and plugins

This commit is contained in:
David Allen 2024-06-26 13:41:14 -06:00
parent 30c8336ca6
commit e92a883c89
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
9 changed files with 85 additions and 5 deletions

View file

@ -14,6 +14,14 @@ func (g *Dhcpd) GetName() string {
return "dhcpd"
}
func (g *Dhcpd) GetVersion() string {
return util.GitCommit()
}
func (g *Dhcpd) GetDescription() string {
return fmt.Sprintf("Configurator generator plugin for '%s'.", g.GetName())
}
func (g *Dhcpd) Generate(config *configurator.Config, opts ...util.Option) (generator.Files, error) {
var (
params = generator.GetParams(opts...)