Renamed warewulfd-response package to just response
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package warewulfd_responses
|
package response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package warewulfd_responses
|
package response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hpcng/warewulf/internal/pkg/config"
|
"github.com/hpcng/warewulf/internal/pkg/config"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package warewulfd_responses
|
package response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hpcng/warewulf/internal/pkg/config"
|
"github.com/hpcng/warewulf/internal/pkg/config"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package warewulfd_responses
|
package response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package warewulfd_responses
|
package response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hpcng/warewulf/internal/pkg/config"
|
"github.com/hpcng/warewulf/internal/pkg/config"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package warewulfd_responses
|
package response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hpcng/warewulf/internal/pkg/assets"
|
"github.com/hpcng/warewulf/internal/pkg/assets"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package warewulfd_responses
|
package response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hpcng/warewulf/internal/pkg/config"
|
"github.com/hpcng/warewulf/internal/pkg/config"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package warewulfd
|
package warewulfd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
warewulfd_responses "github.com/hpcng/warewulf/internal/app/warewulfd/warewulfd-reponses"
|
"github.com/hpcng/warewulf/internal/app/warewulfd/response"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
@@ -9,17 +9,14 @@ import (
|
|||||||
// TODO: https://github.com/danderson/netboot/blob/master/pixiecore/dhcp.go
|
// TODO: https://github.com/danderson/netboot/blob/master/pixiecore/dhcp.go
|
||||||
// TODO: https://github.com/pin/tftp
|
// TODO: https://github.com/pin/tftp
|
||||||
|
|
||||||
//const LocalStateDir = "/var/warewulf"
|
|
||||||
|
|
||||||
|
|
||||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||||
|
|
||||||
http.HandleFunc("/ipxe/", warewulfd_responses.IpxeSend)
|
http.HandleFunc("/ipxe/", response.IpxeSend)
|
||||||
http.HandleFunc("/kernel/", warewulfd_responses.KernelSend)
|
http.HandleFunc("/kernel/", response.KernelSend)
|
||||||
http.HandleFunc("/kmods/", warewulfd_responses.KmodsSend)
|
http.HandleFunc("/kmods/", response.KmodsSend)
|
||||||
http.HandleFunc("/vnfs/", warewulfd_responses.VnfsSend)
|
http.HandleFunc("/vnfs/", response.VnfsSend)
|
||||||
http.HandleFunc("/overlay-system/", warewulfd_responses.SystemOverlaySend)
|
http.HandleFunc("/overlay-system/", response.SystemOverlaySend)
|
||||||
http.HandleFunc("/overlay-runtime", warewulfd_responses.RuntimeOverlaySend)
|
http.HandleFunc("/overlay-runtime", response.RuntimeOverlaySend)
|
||||||
|
|
||||||
http.ListenAndServe(":9873", nil)
|
http.ListenAndServe(":9873", nil)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user