Merge pull request #85 from pterodactyl/schrej/formatting

organize imports with gopls format
This commit is contained in:
Dane Everitt 2021-01-09 17:31:46 -08:00 committed by GitHub
commit 217ca72eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
48 changed files with 175 additions and 127 deletions

View File

@ -2,17 +2,18 @@ package api
import ( import (
"bytes" "bytes"
"emperror.dev/errors"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/apex/log"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/system"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"strings" "strings"
"time" "time"
"emperror.dev/errors"
"github.com/apex/log"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/system"
) )
// Initializes the requester instance. // Initializes the requester instance.

View File

@ -2,10 +2,11 @@ package api
import ( import (
"encoding/json" "encoding/json"
"github.com/apex/log"
"github.com/pterodactyl/wings/parser"
"regexp" "regexp"
"strings" "strings"
"github.com/apex/log"
"github.com/pterodactyl/wings/parser"
) )
type OutputLineMatcher struct { type OutputLineMatcher struct {

View File

@ -4,11 +4,12 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"strconv"
"sync"
"github.com/apex/log" "github.com/apex/log"
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
"strconv"
"sync"
) )
const ( const (

View File

@ -1,9 +1,10 @@
package api package api
import ( import (
"regexp"
"emperror.dev/errors" "emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"regexp"
) )
type SftpAuthRequest struct { type SftpAuthRequest struct {

View File

@ -1,9 +1,10 @@
package cmd package cmd
import ( import (
"github.com/pterodactyl/wings/config"
"os" "os"
"path/filepath" "path/filepath"
"github.com/pterodactyl/wings/config"
) )
// We've gone through a couple of iterations of where the configuration is stored. This // We've gone through a couple of iterations of where the configuration is stored. This

View File

@ -4,10 +4,6 @@ import (
"crypto/tls" "crypto/tls"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/pterodactyl/wings/config"
"github.com/spf13/cobra"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"net/url" "net/url"
@ -15,6 +11,11 @@ import (
"path" "path"
"regexp" "regexp"
"time" "time"
"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/pterodactyl/wings/config"
"github.com/spf13/cobra"
) )
var ( var (

View File

@ -5,7 +5,6 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/pterodactyl/wings/environment"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
@ -16,6 +15,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/pterodactyl/wings/environment"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal" "github.com/AlecAivazis/survey/v2/terminal"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"

View File

@ -2,8 +2,15 @@ package cmd
import ( import (
"crypto/tls" "crypto/tls"
"emperror.dev/errors"
"fmt" "fmt"
log2 "log"
"net/http"
"os"
"path"
"path/filepath"
"strings"
"emperror.dev/errors"
"github.com/NYTimes/logrotate" "github.com/NYTimes/logrotate"
"github.com/apex/log" "github.com/apex/log"
"github.com/apex/log/handlers/multi" "github.com/apex/log/handlers/multi"
@ -21,12 +28,6 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/crypto/acme" "golang.org/x/crypto/acme"
"golang.org/x/crypto/acme/autocert" "golang.org/x/crypto/acme/autocert"
log2 "log"
"net/http"
"os"
"path"
"path/filepath"
"strings"
) )
var ( var (

View File

@ -1,12 +1,7 @@
package config package config
import ( import (
"emperror.dev/errors"
"fmt" "fmt"
"github.com/cobaugh/osrelease"
"github.com/creasty/defaults"
"github.com/gbrlsnchs/jwt/v3"
"gopkg.in/yaml.v2"
"io/ioutil" "io/ioutil"
"os" "os"
"os/exec" "os/exec"
@ -14,6 +9,12 @@ import (
"strconv" "strconv"
"strings" "strings"
"sync" "sync"
"emperror.dev/errors"
"github.com/cobaugh/osrelease"
"github.com/creasty/defaults"
"github.com/gbrlsnchs/jwt/v3"
"gopkg.in/yaml.v2"
) )
const DefaultLocation = "/etc/pterodactyl/config.yml" const DefaultLocation = "/etc/pterodactyl/config.yml"

View File

@ -3,6 +3,7 @@ package config
import ( import (
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
) )

View File

@ -2,9 +2,7 @@ package config
import ( import (
"context" "context"
"emperror.dev/errors"
"fmt" "fmt"
"github.com/apex/log"
"html/template" "html/template"
"io/ioutil" "io/ioutil"
"os" "os"
@ -13,6 +11,9 @@ import (
"path/filepath" "path/filepath"
"regexp" "regexp"
"time" "time"
"emperror.dev/errors"
"github.com/apex/log"
) )
// Defines basic system configuration settings. // Defines basic system configuration settings.

View File

@ -2,9 +2,10 @@ package environment
import ( import (
"fmt" "fmt"
"strconv"
"github.com/docker/go-connections/nat" "github.com/docker/go-connections/nat"
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"strconv"
) )
// Defines the allocations available for a given server. When using the Docker environment // Defines the allocations available for a given server. When using the Docker environment

View File

@ -2,10 +2,11 @@ package environment
import ( import (
"context" "context"
"github.com/apex/log"
"strconv" "strconv"
"sync" "sync"
"github.com/apex/log"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/network" "github.com/docker/docker/api/types/network"
"github.com/docker/docker/client" "github.com/docker/docker/client"

View File

@ -1,8 +1,9 @@
package environment package environment
import ( import (
"github.com/pterodactyl/wings/events"
"os" "os"
"github.com/pterodactyl/wings/events"
) )
const ( const (

View File

@ -2,9 +2,10 @@ package environment
import ( import (
"fmt" "fmt"
"github.com/apex/log"
"math" "math"
"strconv" "strconv"
"github.com/apex/log"
) )
type Mount struct { type Mount struct {

View File

@ -2,9 +2,10 @@ package events
import ( import (
"encoding/json" "encoding/json"
"github.com/gammazero/workerpool"
"strings" "strings"
"sync" "sync"
"github.com/gammazero/workerpool"
) )
type Event struct { type Event struct {

View File

@ -1,8 +1,9 @@
package events package events
import ( import (
"github.com/gammazero/workerpool"
"reflect" "reflect"
"github.com/gammazero/workerpool"
) )
type CallbackPool struct { type CallbackPool struct {

View File

@ -1,8 +1,9 @@
package installer package installer
import ( import (
"emperror.dev/errors"
"encoding/json" "encoding/json"
"emperror.dev/errors"
"github.com/asaskevich/govalidator" "github.com/asaskevich/govalidator"
"github.com/buger/jsonparser" "github.com/buger/jsonparser"
"github.com/pterodactyl/wings/api" "github.com/pterodactyl/wings/api"

View File

@ -2,16 +2,17 @@ package parser
import ( import (
"bytes" "bytes"
"emperror.dev/errors"
"github.com/Jeffail/gabs/v2"
"github.com/apex/log"
"github.com/buger/jsonparser"
"github.com/iancoleman/strcase"
"io/ioutil" "io/ioutil"
"os" "os"
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"emperror.dev/errors"
"github.com/Jeffail/gabs/v2"
"github.com/apex/log"
"github.com/buger/jsonparser"
"github.com/iancoleman/strcase"
) )
// Regex to match anything that has a value matching the format of {{ config.$1 }} which // Regex to match anything that has a value matching the format of {{ config.$1 }} which

View File

@ -2,8 +2,14 @@ package parser
import ( import (
"bufio" "bufio"
"emperror.dev/errors"
"encoding/json" "encoding/json"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/beevik/etree" "github.com/beevik/etree"
"github.com/buger/jsonparser" "github.com/buger/jsonparser"
@ -12,11 +18,6 @@ import (
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"gopkg.in/ini.v1" "gopkg.in/ini.v1"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
) )
// The file parsing options that are available for a server configuration file. // The file parsing options that are available for a server configuration file.

View File

@ -1,16 +1,17 @@
package router package router
import ( import (
"emperror.dev/errors"
"fmt" "fmt"
"net/http"
"os"
"strings"
"emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/pterodactyl/wings/server" "github.com/pterodactyl/wings/server"
"github.com/pterodactyl/wings/server/filesystem" "github.com/pterodactyl/wings/server/filesystem"
"net/http"
"os"
"strings"
) )
type RequestError struct { type RequestError struct {

View File

@ -1,14 +1,15 @@
package router package router
import ( import (
"io"
"net/http"
"strings"
"emperror.dev/errors" "emperror.dev/errors"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/server" "github.com/pterodactyl/wings/server"
"io"
"net/http"
"strings"
) )
type Middleware struct{} type Middleware struct{}

View File

@ -3,12 +3,13 @@ package router
import ( import (
"bufio" "bufio"
"errors" "errors"
"github.com/gin-gonic/gin"
"github.com/pterodactyl/wings/router/tokens"
"github.com/pterodactyl/wings/server/backup"
"net/http" "net/http"
"os" "os"
"strconv" "strconv"
"github.com/gin-gonic/gin"
"github.com/pterodactyl/wings/router/tokens"
"github.com/pterodactyl/wings/server/backup"
) )
// Handle a download request for a server backup. // Handle a download request for a server backup.

View File

@ -3,15 +3,16 @@ package router
import ( import (
"bytes" "bytes"
"context" "context"
"net/http"
"os"
"strconv"
"emperror.dev/errors" "emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/pterodactyl/wings/router/downloader" "github.com/pterodactyl/wings/router/downloader"
"github.com/pterodactyl/wings/router/tokens" "github.com/pterodactyl/wings/router/tokens"
"github.com/pterodactyl/wings/server" "github.com/pterodactyl/wings/server"
"net/http"
"os"
"strconv"
) )
type serverProcData struct { type serverProcData struct {

View File

@ -1,13 +1,14 @@
package router package router
import ( import (
"emperror.dev/errors"
"fmt" "fmt"
"net/http"
"os"
"emperror.dev/errors"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/pterodactyl/wings/server" "github.com/pterodactyl/wings/server"
"github.com/pterodactyl/wings/server/backup" "github.com/pterodactyl/wings/server/backup"
"net/http"
"os"
) )
// Backs up a server. // Backs up a server.

View File

@ -3,10 +3,11 @@ package router
import ( import (
"context" "context"
"encoding/json" "encoding/json"
"time"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
ws "github.com/gorilla/websocket" ws "github.com/gorilla/websocket"
"github.com/pterodactyl/wings/router/websocket" "github.com/pterodactyl/wings/router/websocket"
"time"
) )
// Upgrades a connection to a websocket and passes events along between. // Upgrades a connection to a websocket and passes events along between.

View File

@ -2,14 +2,15 @@ package router
import ( import (
"bytes" "bytes"
"net/http"
"strings"
"github.com/apex/log" "github.com/apex/log"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/installer" "github.com/pterodactyl/wings/installer"
"github.com/pterodactyl/wings/server" "github.com/pterodactyl/wings/server"
"github.com/pterodactyl/wings/system" "github.com/pterodactyl/wings/system"
"net/http"
"strings"
) )
// Returns information about the system that wings is running on. // Returns information about the system that wings is running on.

View File

@ -3,10 +3,19 @@ package router
import ( import (
"bufio" "bufio"
"crypto/sha256" "crypto/sha256"
"emperror.dev/errors"
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
"io"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"sync/atomic"
"time"
"emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/google/uuid" "github.com/google/uuid"
@ -19,14 +28,6 @@ import (
"github.com/pterodactyl/wings/router/tokens" "github.com/pterodactyl/wings/router/tokens"
"github.com/pterodactyl/wings/server" "github.com/pterodactyl/wings/server"
"github.com/pterodactyl/wings/system" "github.com/pterodactyl/wings/system"
"io"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"sync/atomic"
"time"
) )
// Number of ticks in the progress bar // Number of ticks in the progress bar

View File

@ -2,15 +2,16 @@ package server
import ( import (
"crypto/sha256" "crypto/sha256"
"emperror.dev/errors"
"encoding/hex" "encoding/hex"
"github.com/mholt/archiver/v3"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/server/filesystem"
"io" "io"
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"emperror.dev/errors"
"github.com/mholt/archiver/v3"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/server/filesystem"
) )
// Archiver represents a Server Archiver. // Archiver represents a Server Archiver.

View File

@ -1,12 +1,13 @@
package server package server
import ( import (
"io/ioutil"
"os"
"emperror.dev/errors" "emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/pterodactyl/wings/api" "github.com/pterodactyl/wings/api"
"github.com/pterodactyl/wings/server/backup" "github.com/pterodactyl/wings/server/backup"
"io/ioutil"
"os"
) )
// Notifies the panel of a backup's state and returns an error if one is encountered // Notifies the panel of a backup's state and returns an error if one is encountered

View File

@ -1,8 +1,9 @@
package server package server
import ( import (
"github.com/gammazero/workerpool"
"runtime" "runtime"
"github.com/gammazero/workerpool"
) )
// Parent function that will update all of the defined configuration files for a server // Parent function that will update all of the defined configuration files for a server

View File

@ -1,8 +1,9 @@
package server package server
import ( import (
"github.com/pterodactyl/wings/environment"
"sync" "sync"
"github.com/pterodactyl/wings/environment"
) )
type Configuration struct { type Configuration struct {

View File

@ -2,14 +2,15 @@ package server
import ( import (
"context" "context"
"emperror.dev/errors"
"fmt" "fmt"
"github.com/mitchellh/colorstring"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/system"
"sync" "sync"
"sync/atomic" "sync/atomic"
"time" "time"
"emperror.dev/errors"
"github.com/mitchellh/colorstring"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/system"
) )
var ErrTooMuchConsoleData = errors.New("console is outputting too much data") var ErrTooMuchConsoleData = errors.New("console is outputting too much data")

View File

@ -2,11 +2,12 @@ package server
import ( import (
"fmt" "fmt"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment"
"strconv" "strconv"
"sync" "sync"
"time" "time"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment"
) )
type CrashHandler struct { type CrashHandler struct {

View File

@ -1,8 +1,9 @@
package server package server
import ( import (
"github.com/pterodactyl/wings/server/filesystem"
"os" "os"
"github.com/pterodactyl/wings/server/filesystem"
) )
func (s *Server) Filesystem() *filesystem.Filesystem { func (s *Server) Filesystem() *filesystem.Filesystem {

View File

@ -4,6 +4,13 @@ import (
"bufio" "bufio"
"bytes" "bytes"
"context" "context"
"html/template"
"io"
"os"
"path/filepath"
"strconv"
"strings"
"emperror.dev/errors" "emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
@ -14,12 +21,6 @@ import (
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment" "github.com/pterodactyl/wings/environment"
"github.com/pterodactyl/wings/system" "github.com/pterodactyl/wings/system"
"html/template"
"io"
"os"
"path/filepath"
"strconv"
"strings"
) )
// Executes the installation stack for a server process. Bubbles any errors up to the calling // Executes the installation stack for a server process. Bubbles any errors up to the calling

View File

@ -2,14 +2,15 @@ package server
import ( import (
"encoding/json" "encoding/json"
"regexp"
"strconv"
"sync"
"github.com/apex/log" "github.com/apex/log"
"github.com/pterodactyl/wings/api" "github.com/pterodactyl/wings/api"
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment" "github.com/pterodactyl/wings/environment"
"github.com/pterodactyl/wings/events" "github.com/pterodactyl/wings/events"
"regexp"
"strconv"
"sync"
) )
var dockerEvents = []string{ var dockerEvents = []string{

View File

@ -1,9 +1,14 @@
package server package server
import ( import (
"emperror.dev/errors"
"encoding/json" "encoding/json"
"fmt" "fmt"
"os"
"path/filepath"
"runtime"
"time"
"emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/gammazero/workerpool" "github.com/gammazero/workerpool"
"github.com/pterodactyl/wings/api" "github.com/pterodactyl/wings/api"
@ -11,10 +16,6 @@ import (
"github.com/pterodactyl/wings/environment" "github.com/pterodactyl/wings/environment"
"github.com/pterodactyl/wings/environment/docker" "github.com/pterodactyl/wings/environment/docker"
"github.com/pterodactyl/wings/server/filesystem" "github.com/pterodactyl/wings/server/filesystem"
"os"
"path/filepath"
"runtime"
"time"
) )
var servers = NewCollection(nil) var servers = NewCollection(nil)

View File

@ -1,11 +1,12 @@
package server package server
import ( import (
"path/filepath"
"strings"
"github.com/apex/log" "github.com/apex/log"
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment" "github.com/pterodactyl/wings/environment"
"path/filepath"
"strings"
) )
// To avoid confusion when working with mounts, assume that a server.Mount has not been properly // To avoid confusion when working with mounts, assume that a server.Mount has not been properly

View File

@ -2,12 +2,13 @@ package server
import ( import (
"context" "context"
"os"
"time"
"emperror.dev/errors" "emperror.dev/errors"
"github.com/pterodactyl/wings/config" "github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment" "github.com/pterodactyl/wings/environment"
"golang.org/x/sync/semaphore" "golang.org/x/sync/semaphore"
"os"
"time"
) )
type PowerAction string type PowerAction string

View File

@ -1,10 +1,11 @@
package server package server
import ( import (
"github.com/pterodactyl/wings/environment"
"github.com/pterodactyl/wings/system"
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/pterodactyl/wings/environment"
"github.com/pterodactyl/wings/system"
) )
// Defines the current resource usage for a given server instance. If a server is offline you // Defines the current resource usage for a given server instance. If a server is offline you

View File

@ -2,8 +2,11 @@ package server
import ( import (
"context" "context"
"emperror.dev/errors"
"fmt" "fmt"
"strings"
"sync"
"emperror.dev/errors"
"github.com/apex/log" "github.com/apex/log"
"github.com/creasty/defaults" "github.com/creasty/defaults"
"github.com/pterodactyl/wings/api" "github.com/pterodactyl/wings/api"
@ -14,8 +17,6 @@ import (
"github.com/pterodactyl/wings/server/filesystem" "github.com/pterodactyl/wings/server/filesystem"
"github.com/pterodactyl/wings/system" "github.com/pterodactyl/wings/system"
"golang.org/x/sync/semaphore" "golang.org/x/sync/semaphore"
"strings"
"sync"
) )
// High level definition for a server instance being controlled by Wings. // High level definition for a server instance being controlled by Wings.

View File

@ -2,12 +2,13 @@ package server
import ( import (
"encoding/json" "encoding/json"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment"
"io" "io"
"io/ioutil" "io/ioutil"
"os" "os"
"sync" "sync"
"github.com/pterodactyl/wings/config"
"github.com/pterodactyl/wings/environment"
) )
var stateMutex sync.Mutex var stateMutex sync.Mutex

View File

@ -1,8 +1,9 @@
package server package server
import ( import (
"emperror.dev/errors"
"encoding/json" "encoding/json"
"emperror.dev/errors"
"github.com/buger/jsonparser" "github.com/buger/jsonparser"
"github.com/imdario/mergo" "github.com/imdario/mergo"
"github.com/pterodactyl/wings/environment" "github.com/pterodactyl/wings/environment"

View File

@ -2,8 +2,9 @@ package server
import ( import (
"context" "context"
"github.com/google/uuid"
"sync" "sync"
"github.com/google/uuid"
) )
type WebsocketBag struct { type WebsocketBag struct {

View File

@ -1,14 +1,15 @@
package sftp package sftp
import ( import (
"github.com/apex/log"
"github.com/patrickmn/go-cache"
"github.com/pkg/sftp"
"io" "io"
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"sync" "sync"
"github.com/apex/log"
"github.com/patrickmn/go-cache"
"github.com/pkg/sftp"
) )
type FileSystem struct { type FileSystem struct {

View File

@ -6,11 +6,6 @@ import (
"crypto/x509" "crypto/x509"
"encoding/pem" "encoding/pem"
"fmt" "fmt"
"github.com/apex/log"
"github.com/patrickmn/go-cache"
"github.com/pkg/sftp"
"github.com/pterodactyl/wings/api"
"golang.org/x/crypto/ssh"
"io" "io"
"io/ioutil" "io/ioutil"
"net" "net"
@ -18,6 +13,12 @@ import (
"path" "path"
"strings" "strings"
"time" "time"
"github.com/apex/log"
"github.com/patrickmn/go-cache"
"github.com/pkg/sftp"
"github.com/pterodactyl/wings/api"
"golang.org/x/crypto/ssh"
) )
type Settings struct { type Settings struct {

View File

@ -1,8 +1,9 @@
package system package system
import ( import (
"github.com/docker/docker/pkg/parsers/kernel"
"runtime" "runtime"
"github.com/docker/docker/pkg/parsers/kernel"
) )
type Information struct { type Information struct {