29 lines
678 B
Go
29 lines
678 B
Go
//go:build coredhcp || plugins
|
|
// +build coredhcp plugins
|
|
|
|
package generator
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
configurator "github.com/OpenCHAMI/configurator/pkg"
|
|
"github.com/OpenCHAMI/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 *configurator.Config, opts ...util.Option) (FileMap, error) {
|
|
return nil, fmt.Errorf("plugin does not implement generation function")
|
|
}
|