Added DHCPD and hostfile plugins
This commit is contained in:
parent
f443558b50
commit
a7d78e8240
3 changed files with 86 additions and 0 deletions
20
internal/generator/plugins/hostfile/hostfile.go
Normal file
20
internal/generator/plugins/hostfile/hostfile.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
configurator "github.com/OpenCHAMI/configurator/internal"
|
||||
"github.com/OpenCHAMI/configurator/internal/util"
|
||||
)
|
||||
|
||||
type Hostfile struct{}
|
||||
|
||||
func (g *Hostfile) GetName() string {
|
||||
return "hostfile"
|
||||
}
|
||||
|
||||
func (g *Hostfile) Generate(config *configurator.Config, opts ...util.Option) (map[string][]byte, error) {
|
||||
return nil, fmt.Errorf("plugin does not implement generation function")
|
||||
}
|
||||
|
||||
var Generator Hostfile
|
||||
1
internal/generator/plugins/hostfile/hostfile_test.go
Normal file
1
internal/generator/plugins/hostfile/hostfile_test.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
package main
|
||||
Loading…
Add table
Add a link
Reference in a new issue