mirror of
https://github.com/alist-org/gofakes3.git
synced 2025-12-24 12:58:04 +08:00
chore: update package name
Some checks failed
build / go1.20 (push) Has been cancelled
build / go1.21 (push) Has been cancelled
build / linux (push) Has been cancelled
build / linux_386 (push) Has been cancelled
build / mac_amd64 (push) Has been cancelled
build / mac_arm64 (push) Has been cancelled
build / windows (push) Has been cancelled
build / lint (push) Has been cancelled
Some checks failed
build / go1.20 (push) Has been cancelled
build / go1.21 (push) Has been cancelled
build / linux (push) Has been cancelled
build / linux_386 (push) Has been cancelled
build / mac_amd64 (push) Has been cancelled
build / mac_arm64 (push) Has been cancelled
build / windows (push) Has been cancelled
build / lint (push) Has been cancelled
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||

|
||||
|
||||
[](https://github.com/alist-org/gofakes3/actions?query=workflow%3Abuild)
|
||||
[](https://goreportcard.com/report/github.com/alist-org/gofakes3)
|
||||
[](https://pkg.go.dev/github.com/alist-org/gofakes3)
|
||||
[](https://github.com/itsHenry35/gofakes3/actions?query=workflow%3Abuild)
|
||||
[](https://goreportcard.com/report/github.com/itsHenry35/gofakes3)
|
||||
[](https://pkg.go.dev/github.com/itsHenry35/gofakes3)
|
||||
|
||||
This is a fork of [johannesboyne/gofakes3](https://github.com/johannesboyne/gofakes3)
|
||||
mainly for use implementing the [rclone serves3](https://rclone.org/commands/rclone_serve_s3/) command in
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
)
|
||||
|
||||
func TestCLILsBuckets(t *testing.T) {
|
||||
|
||||
2
error.go
2
error.go
@@ -5,7 +5,7 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
xml "github.com/alist-org/gofakes3/xml"
|
||||
xml "github.com/itsHenry35/gofakes3/xml"
|
||||
)
|
||||
|
||||
// Error codes are documented here:
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
xml "github.com/alist-org/gofakes3/xml"
|
||||
xml "github.com/itsHenry35/gofakes3/xml"
|
||||
)
|
||||
|
||||
func TestErrorCustomResponseMarshalsAsExpected(t *testing.T) {
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/alist-org/gofakes3
|
||||
module github.com/itsHenry35/gofakes3
|
||||
|
||||
go 1.17
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
"encoding/base64"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math"
|
||||
@@ -18,8 +17,10 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/gofakes3/signature"
|
||||
xml "github.com/alist-org/gofakes3/xml"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/itsHenry35/gofakes3/signature"
|
||||
xml "github.com/itsHenry35/gofakes3/xml"
|
||||
)
|
||||
|
||||
// GoFakeS3 implements HTTP handlers for processing S3 requests and returning
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
xml "github.com/alist-org/gofakes3/xml"
|
||||
xml "github.com/itsHenry35/gofakes3/xml"
|
||||
)
|
||||
|
||||
func TestHttpError(t *testing.T) {
|
||||
|
||||
@@ -16,12 +16,12 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
xml "github.com/alist-org/gofakes3/xml"
|
||||
xml "github.com/itsHenry35/gofakes3/xml"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/alist-org/gofakes3/s3mem"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3/s3mem"
|
||||
)
|
||||
|
||||
var mockR, _ = http.NewRequest(http.MethodGet, "http://localhost:9000", nil)
|
||||
|
||||
@@ -37,8 +37,8 @@ import (
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/aws/aws-sdk-go/service/s3/s3manager"
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/alist-org/gofakes3/s3mem"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3/s3mem"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
xml "github.com/alist-org/gofakes3/xml"
|
||||
xml "github.com/itsHenry35/gofakes3/xml"
|
||||
)
|
||||
|
||||
type Storage struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
xml "github.com/alist-org/gofakes3/xml"
|
||||
xml "github.com/itsHenry35/gofakes3/xml"
|
||||
)
|
||||
|
||||
func TestObjectListAddPrefix(t *testing.T) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
)
|
||||
|
||||
const autoBucket = "autobucket"
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/alist-org/gofakes3/internal/goskipiter"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3/internal/goskipiter"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/alist-org/gofakes3/internal/s3io"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3/internal/s3io"
|
||||
"github.com/ryszard/goskiplist/skiplist"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"math/big"
|
||||
"sync"
|
||||
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
)
|
||||
|
||||
var add1 = new(big.Int).SetInt64(1)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
)
|
||||
|
||||
func TestVersionID(t *testing.T) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"net/http"
|
||||
|
||||
"github.com/alist-org/gofakes3/xml"
|
||||
"github.com/itsHenry35/gofakes3/xml"
|
||||
)
|
||||
|
||||
// ErrorCode is code[int] of APIError
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/gofakes3/signature"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
v4 "github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/itsHenry35/gofakes3/signature"
|
||||
)
|
||||
|
||||
//nolint:all
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/gofakes3/internal/goskipiter"
|
||||
"github.com/itsHenry35/gofakes3/internal/goskipiter"
|
||||
"github.com/ryszard/goskiplist/skiplist"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ package gofakes3_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/alist-org/gofakes3"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/itsHenry35/gofakes3"
|
||||
)
|
||||
|
||||
func TestMultipartUpload(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user