examples: fixed illegal character in dnsmasq template

This commit is contained in:
David Allen 2025-01-07 12:54:45 -07:00
parent 3a3e00ce12
commit cd40fd194f
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 20 additions and 1 deletions

19
examples/plugin/test.go Normal file
View file

@ -0,0 +1,19 @@
package main
import (
"github.com/OpenCHAMI/configurator/pkg/config"
"github.com/OpenCHAMI/configurator/pkg/generator"
)
type TestGenerator struct{}
func (g *TestGenerator) GetName() string { return "test" }
func (g *TestGenerator) GetVersion() string { return "v1.0.0" }
func (g *TestGenerator) GetDescription() string {
return "This is a plugin creating for running tests."
}
func (g *TestGenerator) Generate(config *config.Config, params generator.Params) (generator.FileMap, error) {
return generator.FileMap{"test": []byte("test")}, nil
}
var Generator TestGenerator

View file

@ -7,4 +7,4 @@
# Source code: https://github.com/OpenCHAMI/configurator # Source code: https://github.com/OpenCHAMI/configurator
# Creating plugins: https://github.com/OpenCHAMI/configurator/blob/main/README.md#creating-generator-plugins # Creating plugins: https://github.com/OpenCHAMI/configurator/blob/main/README.md#creating-generator-plugins
# #
{{ dhcp-hosts }} {{ dhcp_hosts }}