Fix import paths

* github.com/Ennovar/gPanel -> github.com/kentonh/gPanel
This commit is contained in:
George Shaw 2018-09-21 20:13:49 -05:00
parent 4fb7f859fd
commit b9f7c5d065
48 changed files with 73 additions and 73 deletions

View file

@ -5,8 +5,8 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/gpserver"
"github.com/Ennovar/gPanel/pkg/router"
"github.com/kentonh/gPanel/pkg/gpserver"
"github.com/kentonh/gPanel/pkg/router"
)
func main() {

View file

@ -9,10 +9,10 @@ import (
"os"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/emailer"
"github.com/Ennovar/gPanel/pkg/encryption"
"github.com/Ennovar/gPanel/pkg/gpaccount"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/emailer"
"github.com/kentonh/gPanel/pkg/encryption"
"github.com/kentonh/gPanel/pkg/gpaccount"
"github.com/george-e-shaw-iv/nixtools"
)

View file

@ -7,8 +7,8 @@ import (
"os"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/gpaccount"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/gpaccount"
"github.com/george-e-shaw-iv/nixtools"
)

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/gpaccount"
"github.com/kentonh/gPanel/pkg/gpaccount"
)
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, bundles map[string]*gpaccount.Controller) bool {

View file

@ -3,7 +3,7 @@ package bundle
import (
"os"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func GetPorts(dir string) (error, int, int) {

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func Link(res http.ResponseWriter, req *http.Request, logger *log.Logger, PublicPort int) bool {

View file

@ -5,7 +5,7 @@ import (
"log"
"strconv"
"encoding/json"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func Unlink(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {

View file

@ -7,7 +7,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func Filter(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func Unfilter(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -7,7 +7,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/file"
"github.com/kentonh/gPanel/pkg/file"
)
// Read function is accessed from api/logs/read and will attempt to read

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/public"
"github.com/kentonh/gPanel/pkg/public"
)
// Maintenance function is called from /api/server/maintenance and will place the public server into

View file

@ -7,7 +7,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/public"
"github.com/kentonh/gPanel/pkg/public"
)
// Restart function is called from /api/server/restart and will attempt to shutdown, either gracefully

View file

@ -7,7 +7,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/public"
"github.com/kentonh/gPanel/pkg/public"
)
// Shutdown function is called from /api/server/shutdown and will attempt to shutdown, either gracefully

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/public"
"github.com/kentonh/gPanel/pkg/public"
)
// Start function is called from /api/server/start and turn the public server on.

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/public"
"github.com/kentonh/gPanel/pkg/public"
)
// Status function is called from api/server/status and will return the current status of

View file

@ -5,7 +5,7 @@ import (
"log"
"strconv"
"encoding/json"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func AddNameserver(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {

View file

@ -4,7 +4,7 @@ import (
"net/http"
"strconv"
"log"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
"encoding/json"
)

View file

@ -4,7 +4,7 @@ import (
"net/http"
"log"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
"encoding/json"
)

View file

@ -5,7 +5,7 @@ import (
"log"
"strconv"
"encoding/json"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func GetSMTP(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {

View file

@ -4,7 +4,7 @@ import (
"net/http"
"log"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
"encoding/json"
)

View file

@ -4,7 +4,7 @@ import (
"net/http"
"log"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
"encoding/json"
)

View file

@ -5,8 +5,8 @@ import (
"log"
"strconv"
"encoding/json"
"github.com/Ennovar/gPanel/pkg/emailer"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/emailer"
"github.com/kentonh/gPanel/pkg/database"
)
func SetSMTP(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func Add(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func Remove(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -10,8 +10,8 @@ import (
"strings"
"time"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/encryption"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/encryption"
jwt "github.com/dgrijalva/jwt-go"
)

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func Delete(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -1,7 +1,7 @@
// Package user is a child of package api to handle api calls concerning users
package user
import "github.com/Ennovar/gPanel/pkg/database"
import "github.com/kentonh/gPanel/pkg/database"
// GetSecret is not accessible from the any client side request. It is
// only used on the server side to help verify users are who they say they

View file

@ -6,7 +6,7 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -7,8 +7,8 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/encryption"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/encryption"
)
// Register function is accessed by an API call from the webhost root

View file

@ -6,8 +6,8 @@ import (
"net/http"
"strconv"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/encryption"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/encryption"
)
func UpdatePassword(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {

View file

@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"github.com/Ennovar/gPanel/pkg/emailer"
"github.com/kentonh/gPanel/pkg/emailer"
"github.com/boltdb/bolt"
)

View file

@ -5,14 +5,14 @@ import (
"net/http"
"strings"
"github.com/Ennovar/gPanel/pkg/api/domain"
"github.com/Ennovar/gPanel/pkg/api/ip"
logapi "github.com/Ennovar/gPanel/pkg/api/log"
"github.com/Ennovar/gPanel/pkg/api/server"
"github.com/Ennovar/gPanel/pkg/api/settings"
"github.com/Ennovar/gPanel/pkg/api/ssh"
"github.com/Ennovar/gPanel/pkg/api/subdomain"
"github.com/Ennovar/gPanel/pkg/api/user"
"github.com/kentonh/gPanel/pkg/api/domain"
"github.com/kentonh/gPanel/pkg/api/ip"
logapi "github.com/kentonh/gPanel/pkg/api/log"
"github.com/kentonh/gPanel/pkg/api/server"
"github.com/kentonh/gPanel/pkg/api/settings"
"github.com/kentonh/gPanel/pkg/api/ssh"
"github.com/kentonh/gPanel/pkg/api/subdomain"
"github.com/kentonh/gPanel/pkg/api/user"
)
func (con *Controller) apiHandler(res http.ResponseWriter, req *http.Request) (bool, bool) {

View file

@ -8,7 +8,7 @@ import (
"encoding/base64"
"encoding/json"
"github.com/Ennovar/gPanel/pkg/api/user"
"github.com/kentonh/gPanel/pkg/api/user"
jwt "github.com/dgrijalva/jwt-go"
)

View file

@ -9,7 +9,7 @@ import (
"strconv"
"time"
"github.com/Ennovar/gPanel/pkg/public"
"github.com/kentonh/gPanel/pkg/public"
)
type Controller struct {

View file

@ -8,7 +8,7 @@ import (
"strings"
"github.com/Ennovar/gPanel/pkg/routing"
"github.com/kentonh/gPanel/pkg/routing"
)
// ServeHTTP function routes all requests for the private webhost server. It is used in the main

View file

@ -8,12 +8,12 @@ import (
"net/http"
"strings"
"github.com/Ennovar/gPanel/pkg/api/bundle"
logapi "github.com/Ennovar/gPanel/pkg/api/log"
"github.com/Ennovar/gPanel/pkg/api/server"
"github.com/Ennovar/gPanel/pkg/api/user"
"github.com/Ennovar/gPanel/pkg/api/settings"
"github.com/Ennovar/gPanel/pkg/api/domain"
"github.com/kentonh/gPanel/pkg/api/bundle"
logapi "github.com/kentonh/gPanel/pkg/api/log"
"github.com/kentonh/gPanel/pkg/api/server"
"github.com/kentonh/gPanel/pkg/api/user"
"github.com/kentonh/gPanel/pkg/api/settings"
"github.com/kentonh/gPanel/pkg/api/domain"
)
func (con *Controller) apiHandler(res http.ResponseWriter, req *http.Request) (bool, bool) {

View file

@ -7,7 +7,7 @@ import (
"net/http"
"strings"
"github.com/Ennovar/gPanel/pkg/api/user"
"github.com/kentonh/gPanel/pkg/api/user"
jwt "github.com/dgrijalva/jwt-go"
)

View file

@ -4,8 +4,8 @@ import (
"fmt"
"io/ioutil"
"github.com/Ennovar/gPanel/pkg/api/bundle"
"github.com/Ennovar/gPanel/pkg/gpaccount"
"github.com/kentonh/gPanel/pkg/api/bundle"
"github.com/kentonh/gPanel/pkg/gpaccount"
)
func (con *Controller) detectBundles() error {

View file

@ -3,8 +3,8 @@ package gpserver
import (
"fmt"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/encryption"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/encryption"
)
func (con *Controller) setDefaults() {

View file

@ -5,7 +5,7 @@ import (
"log"
"os"
"github.com/Ennovar/gPanel/pkg/gpaccount"
"github.com/kentonh/gPanel/pkg/gpaccount"
)
type Controller struct {

View file

@ -8,7 +8,7 @@ import (
"strings"
"github.com/Ennovar/gPanel/pkg/routing"
"github.com/kentonh/gPanel/pkg/routing"
)
func (con *Controller) ServeHTTP(res http.ResponseWriter, req *http.Request) {

View file

@ -3,8 +3,8 @@ package public
import (
"net/http"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/networking"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/networking"
)
func (con *Controller) Filter(req *http.Request, ftype string) bool {

View file

@ -10,7 +10,7 @@ import (
"strconv"
"time"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
"golang.org/x/crypto/acme/autocert"
)

View file

@ -12,8 +12,8 @@ import (
"strings"
"time"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/Ennovar/gPanel/pkg/routing"
"github.com/kentonh/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/routing"
)
func (con *Controller) ServePHP(res http.ResponseWriter, path string) {

View file

@ -9,7 +9,7 @@ import (
"log"
"sync"
"github.com/Ennovar/gPanel/pkg/database"
"github.com/kentonh/gPanel/pkg/database"
)
type Router struct {