26 lines
595 B
Go
26 lines
595 B
Go
package generator
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"git.towk2.me/towk/configurator/pkg/config"
|
|
"git.towk2.me/towk/configurator/pkg/util"
|
|
)
|
|
|
|
type CoreDhcp struct{}
|
|
|
|
func (g *CoreDhcp) GetName() string {
|
|
return "coredhcp"
|
|
}
|
|
|
|
func (g *CoreDhcp) GetVersion() string {
|
|
return util.GitCommit()
|
|
}
|
|
|
|
func (g *CoreDhcp) GetDescription() string {
|
|
return fmt.Sprintf("Configurator generator plugin for '%s' to generate config files. (WIP)", g.GetName())
|
|
}
|
|
|
|
func (g *CoreDhcp) Generate(config *config.Config, params Params) (FileMap, error) {
|
|
return nil, fmt.Errorf("plugin does not implement generation function")
|
|
}
|