mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-01-06 00:49:33 -06:00
Changed modulename to github.com/forceu/gokapi
This commit is contained in:
21
build/go.mod
21
build/go.mod
@@ -1,25 +1,34 @@
|
||||
module Gokapi
|
||||
module github.com/forceu/gokapi
|
||||
|
||||
go 1.17
|
||||
|
||||
require (
|
||||
git.mills.io/prologic/bitcask v1.0.2
|
||||
github.com/aws/aws-sdk-go v1.42.22
|
||||
github.com/caarlos0/env/v6 v6.9.1
|
||||
github.com/johannesboyne/gofakes3 v0.0.0-20210415062230-4b6b67a85d38
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
|
||||
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
||||
gopkg.in/yaml.v2 v2.4.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/golang/protobuf v1.4.2 // indirect
|
||||
github.com/abcum/lcp v0.0.0-20201209214815-7a3f3840be81 // indirect
|
||||
github.com/gofrs/flock v0.8.0 // indirect
|
||||
github.com/golang/protobuf v1.5.2 // indirect
|
||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||
github.com/pkg/errors v0.9.1 // indirect
|
||||
github.com/plar/go-adaptive-radix-tree v1.0.4 // indirect
|
||||
github.com/ryszard/goskiplist v0.0.0-20150312221310-2dfbae5fcf46 // indirect
|
||||
github.com/shabbyrobe/gocovmerge v0.0.0-20180507124511-f6ea450bfb63 // indirect
|
||||
github.com/sirupsen/logrus v1.8.1 // indirect
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
|
||||
golang.org/x/exp v0.0.0-20200228211341-fcea875c7e85 // indirect
|
||||
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
|
||||
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384 // indirect
|
||||
google.golang.org/appengine v1.6.6 // indirect
|
||||
google.golang.org/protobuf v1.23.0 // indirect
|
||||
golang.org/x/tools v0.1.2 // indirect
|
||||
google.golang.org/appengine v1.6.7 // indirect
|
||||
google.golang.org/protobuf v1.26.0 // indirect
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
|
||||
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
|
||||
)
|
||||
|
||||
|
||||
@@ -5,18 +5,18 @@ Main routine
|
||||
*/
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/cloudconfig"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/configuration/setup"
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/logging"
|
||||
"Gokapi/internal/storage"
|
||||
"Gokapi/internal/storage/cloudstorage/aws"
|
||||
"Gokapi/internal/webserver"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"Gokapi/internal/webserver/ssl"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/configuration/setup"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/logging"
|
||||
"github.com/forceu/gokapi/internal/storage"
|
||||
"github.com/forceu/gokapi/internal/storage/cloudstorage/aws"
|
||||
"github.com/forceu/gokapi/internal/webserver"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/webserver/ssl"
|
||||
"flag"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -5,14 +5,14 @@ Loading and saving of the persistent configuration
|
||||
*/
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/cloudconfig"
|
||||
"Gokapi/internal/configuration/configUpgrade"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/helper"
|
||||
log "Gokapi/internal/logging"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/webserver/downloadstatus"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/configuration/configUpgrade"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
log "github.com/forceu/gokapi/internal/logging"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/webserver/downloadstatus"
|
||||
"bytes"
|
||||
"crypto/sha1"
|
||||
"encoding/hex"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
package configuration
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/cloudconfig"
|
||||
"Gokapi/internal/configuration/configUpgrade"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/configuration/configUpgrade"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package cloudconfig
|
||||
|
||||
import (
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"fmt"
|
||||
"gopkg.in/yaml.v2"
|
||||
"io/ioutil"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package cloudconfig
|
||||
|
||||
import (
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package configUpgrade
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package configUpgrade
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package dataStorage
|
||||
|
||||
import (
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"encoding/gob"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package dataStorage
|
||||
|
||||
import (
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package setup
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/cloudconfig"
|
||||
"Gokapi/internal/configuration/configUpgrade"
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/storage/cloudstorage/aws"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/configuration/configUpgrade"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/storage/cloudstorage/aws"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"context"
|
||||
"embed"
|
||||
"encoding/json"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package setup
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/cloudconfig"
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package environment
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"fmt"
|
||||
envParser "github.com/caarlos0/env/v6"
|
||||
"os"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package environment
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package helper
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package helper
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package logging
|
||||
|
||||
import (
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package logging
|
||||
|
||||
import (
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http/httptest"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@ Serving and processing uploaded files
|
||||
*/
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/logging"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/storage/cloudstorage/aws"
|
||||
"Gokapi/internal/webserver/downloadstatus"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/logging"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/storage/cloudstorage/aws"
|
||||
"github.com/forceu/gokapi/internal/webserver/downloadstatus"
|
||||
"bytes"
|
||||
"crypto/sha1"
|
||||
"encoding/hex"
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/cloudconfig"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/storage/cloudstorage/aws"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"Gokapi/internal/webserver/downloadstatus"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/storage/cloudstorage/aws"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/webserver/downloadstatus"
|
||||
"bytes"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package aws
|
||||
|
||||
import (
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"fmt"
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package aws
|
||||
|
||||
import (
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"bytes"
|
||||
"errors"
|
||||
"io"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package aws
|
||||
|
||||
import (
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"errors"
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package aws
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/cloudconfig"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/johannesboyne/gofakes3"
|
||||
"github.com/johannesboyne/gofakes3/backend/s3mem"
|
||||
"net/http/httptest"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"Gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"errors"
|
||||
"io"
|
||||
"log"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package testconfiguration
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/storage/cloudstorage/aws"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/storage/cloudstorage/aws"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/johannesboyne/gofakes3"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package testconfiguration
|
||||
|
||||
import (
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/storage/cloudstorage/aws"
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/storage/cloudstorage/aws"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -5,17 +5,17 @@ Handling of webserver and requests / uploads
|
||||
*/
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/storage"
|
||||
"Gokapi/internal/webserver/api"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"Gokapi/internal/webserver/authentication/oauth"
|
||||
"Gokapi/internal/webserver/authentication/sessionmanager"
|
||||
"Gokapi/internal/webserver/fileupload"
|
||||
"Gokapi/internal/webserver/ssl"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/storage"
|
||||
"github.com/forceu/gokapi/internal/webserver/api"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication/oauth"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication/sessionmanager"
|
||||
"github.com/forceu/gokapi/internal/webserver/fileupload"
|
||||
"github.com/forceu/gokapi/internal/webserver/ssl"
|
||||
"embed"
|
||||
"fmt"
|
||||
"html/template"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
package webserver
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"errors"
|
||||
"html/template"
|
||||
"io"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/storage"
|
||||
"Gokapi/internal/webserver/authentication/sessionmanager"
|
||||
"Gokapi/internal/webserver/fileupload"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/storage"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication/sessionmanager"
|
||||
"github.com/forceu/gokapi/internal/webserver/fileupload"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"io"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package authentication
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/webserver/authentication/sessionmanager"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication/sessionmanager"
|
||||
"crypto/subtle"
|
||||
"github.com/coreos/go-oidc/v3/oidc"
|
||||
"io"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package authentication
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"github.com/coreos/go-oidc/v3/oidc"
|
||||
"io"
|
||||
"net/http/httptest"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package oauth
|
||||
|
||||
import (
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"context"
|
||||
"github.com/coreos/go-oidc/v3/oidc"
|
||||
"golang.org/x/oauth2"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package oauth
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/webserver/authentication"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/webserver/authentication"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ Manages the sessions for the admin user or to access password-protected files
|
||||
*/
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package sessionmanager
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package downloadstatus
|
||||
|
||||
import (
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package downloadstatus
|
||||
|
||||
import (
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package fileupload
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/helper"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/storage"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/storage"
|
||||
"io"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
package fileupload
|
||||
|
||||
import (
|
||||
"Gokapi/internal/configuration"
|
||||
"Gokapi/internal/configuration/dataStorage"
|
||||
"Gokapi/internal/models"
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/dataStorage"
|
||||
"github.com/forceu/gokapi/internal/models"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"io"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ssl
|
||||
|
||||
import (
|
||||
"Gokapi/internal/environment"
|
||||
"Gokapi/internal/helper"
|
||||
"github.com/forceu/gokapi/internal/environment"
|
||||
"github.com/forceu/gokapi/internal/helper"
|
||||
"crypto/ecdsa"
|
||||
"crypto/elliptic"
|
||||
"crypto/rand"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package ssl
|
||||
|
||||
import (
|
||||
"Gokapi/internal/test"
|
||||
"Gokapi/internal/test/testconfiguration"
|
||||
"github.com/forceu/gokapi/internal/test"
|
||||
"github.com/forceu/gokapi/internal/test/testconfiguration"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
Reference in New Issue
Block a user