Update generator interface and plugins
This commit is contained in:
parent
30c8336ca6
commit
e92a883c89
9 changed files with 85 additions and 5 deletions
|
|
@ -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...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue