diff --git a/internal/generator/plugins/hostfile/hostfile_test.go b/internal/generator/plugins/hostfile/hostfile_test.go deleted file mode 100644 index 06ab7d0..0000000 --- a/internal/generator/plugins/hostfile/hostfile_test.go +++ /dev/null @@ -1 +0,0 @@ -package main diff --git a/internal/schema.go b/internal/schema.go deleted file mode 100644 index dc794a1..0000000 --- a/internal/schema.go +++ /dev/null @@ -1,2 +0,0 @@ -// TODO: implement a way to fetch schemas from node orchestrator -package configurator diff --git a/internal/auth.go b/pkg/auth.go similarity index 100% rename from internal/auth.go rename to pkg/auth.go diff --git a/internal/client.go b/pkg/client.go similarity index 100% rename from internal/client.go rename to pkg/client.go diff --git a/internal/config.go b/pkg/config.go similarity index 100% rename from internal/config.go rename to pkg/config.go diff --git a/internal/configurator.go b/pkg/configurator.go similarity index 100% rename from internal/configurator.go rename to pkg/configurator.go diff --git a/internal/generator/generator.go b/pkg/generator/generator.go similarity index 100% rename from internal/generator/generator.go rename to pkg/generator/generator.go diff --git a/internal/generator/plugins/conman/conman.go b/pkg/generator/plugins/conman/conman.go similarity index 100% rename from internal/generator/plugins/conman/conman.go rename to pkg/generator/plugins/conman/conman.go diff --git a/internal/generator/plugins/coredhcp/coredhcp.go b/pkg/generator/plugins/coredhcp/coredhcp.go similarity index 100% rename from internal/generator/plugins/coredhcp/coredhcp.go rename to pkg/generator/plugins/coredhcp/coredhcp.go diff --git a/internal/generator/plugins/dhcpd/dhcpd.go b/pkg/generator/plugins/dhcpd/dhcpd.go similarity index 100% rename from internal/generator/plugins/dhcpd/dhcpd.go rename to pkg/generator/plugins/dhcpd/dhcpd.go diff --git a/internal/generator/plugins/dnsmasq/dnsmasq.go b/pkg/generator/plugins/dnsmasq/dnsmasq.go similarity index 100% rename from internal/generator/plugins/dnsmasq/dnsmasq.go rename to pkg/generator/plugins/dnsmasq/dnsmasq.go diff --git a/internal/generator/plugins/example/example.go b/pkg/generator/plugins/example/example.go similarity index 100% rename from internal/generator/plugins/example/example.go rename to pkg/generator/plugins/example/example.go diff --git a/internal/generator/plugins/hostfile/hostfile.go b/pkg/generator/plugins/hostfile/hostfile.go similarity index 100% rename from internal/generator/plugins/hostfile/hostfile.go rename to pkg/generator/plugins/hostfile/hostfile.go diff --git a/internal/generator/plugins/powerman/powerman.go b/pkg/generator/plugins/powerman/powerman.go similarity index 100% rename from internal/generator/plugins/powerman/powerman.go rename to pkg/generator/plugins/powerman/powerman.go diff --git a/internal/generator/plugins/syslog/syslog.go b/pkg/generator/plugins/syslog/syslog.go similarity index 100% rename from internal/generator/plugins/syslog/syslog.go rename to pkg/generator/plugins/syslog/syslog.go diff --git a/internal/generator/plugins/warewulf/warewulf.go b/pkg/generator/plugins/warewulf/warewulf.go similarity index 100% rename from internal/generator/plugins/warewulf/warewulf.go rename to pkg/generator/plugins/warewulf/warewulf.go diff --git a/internal/server/server.go b/pkg/server/server.go similarity index 99% rename from internal/server/server.go rename to pkg/server/server.go index 425a594..0e63a24 100644 --- a/internal/server/server.go +++ b/pkg/server/server.go @@ -108,6 +108,10 @@ func (s *Server) Serve() error { return s.ListenAndServe() } +func (s *Server) Close() { + +} + // This is the corresponding service function to generate templated files, that // works similarly to the CLI variant. This function takes similiar arguments as // query parameters that are included in the HTTP request URL. diff --git a/internal/util/params.go b/pkg/util/params.go similarity index 100% rename from internal/util/params.go rename to pkg/util/params.go diff --git a/internal/util/util.go b/pkg/util/util.go similarity index 100% rename from internal/util/util.go rename to pkg/util/util.go