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

This commit is contained in:
Henry
2025-06-27 16:37:33 +08:00
parent 6dd5da6d1c
commit d6dfd4186c
20 changed files with 30 additions and 29 deletions

View File

@@ -1,8 +1,8 @@
![Logo](/GoFakeS3.png)
[![Build Status](https://github.com/alist-org/gofakes3/workflows/build/badge.svg)](https://github.com/alist-org/gofakes3/actions?query=workflow%3Abuild)
[![Go Report Card](https://goreportcard.com/badge/github.com/alist-org/gofakes3)](https://goreportcard.com/report/github.com/alist-org/gofakes3)
[![GoDoc](https://pkg.go.dev/badge/github.com/alist-org/gofakes3.svg)](https://pkg.go.dev/github.com/alist-org/gofakes3)
[![Build Status](https://github.com/itsHenry35/gofakes3/workflows/build/badge.svg)](https://github.com/itsHenry35/gofakes3/actions?query=workflow%3Abuild)
[![Go Report Card](https://goreportcard.com/badge/github.com/itsHenry35/gofakes3)](https://goreportcard.com/report/github.com/itsHenry35/gofakes3)
[![GoDoc](https://pkg.go.dev/badge/github.com/itsHenry35/gofakes3.svg)](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

View File

@@ -14,7 +14,7 @@ import (
"testing"
"time"
"github.com/alist-org/gofakes3"
"github.com/itsHenry35/gofakes3"
)
func TestCLILsBuckets(t *testing.T) {

View File

@@ -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:

View File

@@ -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
View File

@@ -1,4 +1,4 @@
module github.com/alist-org/gofakes3
module github.com/itsHenry35/gofakes3
go 1.17

View File

@@ -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

View File

@@ -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) {

View File

@@ -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)

View File

@@ -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 (

View File

@@ -6,7 +6,7 @@ import (
"strings"
"time"
xml "github.com/alist-org/gofakes3/xml"
xml "github.com/itsHenry35/gofakes3/xml"
)
type Storage struct {

View File

@@ -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) {

View File

@@ -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"

View File

@@ -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 (

View File

@@ -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"
)

View File

@@ -6,7 +6,7 @@ import (
"math/big"
"sync"
"github.com/alist-org/gofakes3"
"github.com/itsHenry35/gofakes3"
)
var add1 = new(big.Int).SetInt64(1)

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/alist-org/gofakes3"
"github.com/itsHenry35/gofakes3"
)
func TestVersionID(t *testing.T) {

View File

@@ -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

View File

@@ -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

View File

@@ -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"
)

View File

@@ -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) {