mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
examples: fixed illegal character in dnsmasq template
This commit is contained in:
parent
3a3e00ce12
commit
cd40fd194f
2 changed files with 20 additions and 1 deletions
19
examples/plugin/test.go
Normal file
19
examples/plugin/test.go
Normal 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
|
||||||
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue