diff --git a/pkg/backup/interface.go b/pkg/backup/interface.go index 2e5c603..90e6340 100644 --- a/pkg/backup/interface.go +++ b/pkg/backup/interface.go @@ -54,7 +54,7 @@ func GenerateCertForDomain(domain string) { certManager := autocert.Manager{ Prompt: autocert.AcceptTOS, Cache: autocert.DirCache("certs"), // Stores certificates in ./certs - HostPolicy: autocert.HostWhitelist(domain), // Replace with your domain + HostPolicy: autocert.HostWhitelist(domain), } server := &http.Server{ @@ -126,7 +126,6 @@ func SendCommandToNode(nodeAddress, action, nodeName, value string) { } defer resp.Body.Close() - // Optionally, read the response body // Note: As of Go 1.16, ioutil.ReadAll is deprecated. Use io.ReadAll instead. responseBody, err := io.ReadAll(resp.Body) if err != nil { @@ -166,7 +165,7 @@ func HandleCommand(w http.ResponseWriter, r *http.Request) { return } - // Example: Extracting command from the request body + // Extracting command from the request body // You'll need to define the structure of your request body var req struct { NodeAddress string `json:"nodeAddress"`