Skip to content

Commit

Permalink
*: Rename to go.beyondstorage.io (#842)
Browse files Browse the repository at this point in the history
* *: Rename to go.beyondstorage.io

Signed-off-by: Xuanwo <github@xuanwo.io>

* Fix build tag

Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Oct 14, 2021
1 parent 8ba5904 commit 1e32aa0
Show file tree
Hide file tree
Showing 24 changed files with 45 additions and 44 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## [Website](https://beyondstorage.io) | [Documentation](https://beyondstorage.io/docs/go-storage/index) | [Community](https://beyondstorage.io/community)

[![Build Status](https://github.com/beyondstorage/go-storage/workflows/Unit%20Test/badge.svg?branch=master)](https://github.com/beyondstorage/go-storage/actions?query=workflow%3A%22Unit+Test%22)
[![Go dev](https://pkg.go.dev/badge/github.com/beyondstorage/go-storage/v4)](https://pkg.go.dev/github.com/beyondstorage/go-storage/v4)
[![Go dev](https://pkg.go.dev/badge/go.beyondstorage.io/v5)](https://pkg.go.dev/go.beyondstorage.io/v5)
[![License](https://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/beyondstorage/go-storage/blob/master/LICENSE)
[![go storage dev](https://img.shields.io/matrix/beyondstorage@go-storage:matrix.org.svg?label=go-storage&logo=matrix)](https://matrix.to/#/#beyondstorage@go-storage:matrix.org)

Expand All @@ -27,8 +27,8 @@ package main
import (
"log"

"github.com/beyondstorage/go-storage/v4/services"
"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/services"
"go.beyondstorage.io/v5/types"

// Add fs support
_ "github.com/beyondstorage/go-service-fs/v3"
Expand Down
6 changes: 3 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## [网站](https://beyondstorage.io) | [文档](https://beyondstorage.io/docs/go-storage/index) | [社区](https://beyondstorage.io/community)

[![Build Status](https://github.com/beyondstorage/go-storage/workflows/Unit%20Test/badge.svg?branch=master)](https://github.com/beyondstorage/go-storage/actions?query=workflow%3A%22Unit+Test%22)
[![Go dev](https://pkg.go.dev/badge/github.com/beyondstorage/go-storage/v4)](https://pkg.go.dev/github.com/beyondstorage/go-storage/v4)
[![Go dev](https://pkg.go.dev/badge/go.beyondstorage.io/v5)](https://pkg.go.dev/go.beyondstorage.io/v5)
[![License](https://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/beyondstorage/go-storage/blob/master/LICENSE)
[![go storage dev](https://img.shields.io/matrix/beyondstorage@go-storage:matrix.org.svg?label=go-storage&logo=matrix)](https://matrix.to/#/#beyondstorage@go-storage:matrix.org)

Expand All @@ -27,8 +27,8 @@ package main
import (
"log"

"github.com/beyondstorage/go-storage/v4/services"
"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/services"
"go.beyondstorage.io/v5/types"

// 添加 fs 支持
_ "github.com/beyondstorage/go-service-fs/v3"
Expand Down
2 changes: 0 additions & 2 deletions cmd/definitions/bindata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cmd/definitions/gen_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func generatePair(data *Data, path string) {
AddPath("context").
AddPath("time").
AddLine().
AddPath("github.com/beyondstorage/go-storage/v4/pkg/httpclient").
AddDot("github.com/beyondstorage/go-storage/v4/types")
AddPath("go.beyondstorage.io/v5/pkg/httpclient").
AddDot("go.beyondstorage.io/v5/types")

ps := make([]*Pair, 0, len(data.PairsMap))
for _, v := range data.PairsMap {
Expand Down
8 changes: 4 additions & 4 deletions cmd/definitions/gen_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ func generateSrv(data *Service, path string) {
AddPath("strings").
AddPath("time").
AddLine().
AddDot("github.com/beyondstorage/go-storage/v4/pairs").
AddPath("github.com/beyondstorage/go-storage/v4/pkg/httpclient").
AddPath("github.com/beyondstorage/go-storage/v4/services").
AddDot("github.com/beyondstorage/go-storage/v4/types")
AddDot("go.beyondstorage.io/v5/pairs").
AddPath("go.beyondstorage.io/v5/pkg/httpclient").
AddPath("go.beyondstorage.io/v5/services").
AddDot("go.beyondstorage.io/v5/types")

f.NewVar().
AddDecl("_", "Storager").
Expand Down
2 changes: 1 addition & 1 deletion cmd/definitions/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/pelletier/go-toml"
log "github.com/sirupsen/logrus"

"github.com/beyondstorage/go-storage/v4/cmd/definitions/bindata"
"go.beyondstorage.io/v5/cmd/definitions/bindata"
)

// Data is the biggest container for all definitions.
Expand Down
5 changes: 4 additions & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ The most common case to use a Storager service could be following:
*/
package storage

//go:generate go run github.com/kevinburke/go-bindata/go-bindata -nometadata -o ./cmd/definitions/bindata/bindata.go -pkg bindata -tags tools ./definitions
// We used to insert "-tags tools" here, but go-bindata doesn't support the new build
// tag that introduced in go 1.17. So we remove the tags here.
// In the further, we will move to go 1.16 embed to solve this problem.
//go:generate go run github.com/kevinburke/go-bindata/go-bindata -nometadata -o ./cmd/definitions/bindata/bindata.go -pkg bindata ./definitions
//go:generate go run -tags tools ./cmd/definitions
6 changes: 3 additions & 3 deletions docs/rfcs/840-convert-to-monorepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ go-storage

The module path will be:

- `github.com/beyondstorage/go-storage/v4/types` -> `beyondstorage.io/go/v4/types`
- `github.com/beyondstorage/go-service-s3/v2` -> `beyondstorage.io/go/services/s3/v2`
- `github.com/beyondstorage/go-service-gcs/v2` -> `beyondstorage.io/go/services/gcs/v2`
- `github.com/beyondstorage/go-storage/v4/types` -> `go.beyondstorage.io/v4/types`
- `github.com/beyondstorage/go-service-s3/v2` -> `go.beyondstorage.io/services/s3/v2`
- `github.com/beyondstorage/go-service-gcs/v2` -> `go.beyondstorage.io/services/gcs/v2`

## Rationale

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/beyondstorage/go-storage/v4
module go.beyondstorage.io/v5

go 1.15

Expand Down
4 changes: 2 additions & 2 deletions pairs/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/fswrap/fileinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"time"

"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/types"
)

type fileInfoWrapper struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/fswrap/httpfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"os"

"github.com/beyondstorage/go-storage/v4/pairs"
"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/pairs"
"go.beyondstorage.io/v5/types"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions pkg/fswrap/iofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"io/fs"
"path"

"github.com/beyondstorage/go-storage/v4/pairs"
"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/pairs"
"go.beyondstorage.io/v5/types"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/iowrap/pipe_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"testing"

"github.com/beyondstorage/go-storage/v4/pkg/randbytes"
"go.beyondstorage.io/v5/pkg/randbytes"
)

func BenchmarkStdPipe(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/iowrap/pipe_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package iowrap

import (
"github.com/beyondstorage/go-storage/v4/pkg/randbytes"
"github.com/stretchr/testify/assert"
"go.beyondstorage.io/v5/pkg/randbytes"
"io"
"io/ioutil"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion services/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package services
import (
"fmt"

"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/types"
)

type InternalError interface {
Expand Down
4 changes: 2 additions & 2 deletions services/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sync"
"time"

"github.com/beyondstorage/go-storage/v4/pairs"
"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/pairs"
"go.beyondstorage.io/v5/types"
)

type (
Expand Down
6 changes: 3 additions & 3 deletions tests/connstr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"errors"
"testing"

"github.com/beyondstorage/go-storage/v4/pairs"
"github.com/beyondstorage/go-storage/v4/services"
. "github.com/beyondstorage/go-storage/v4/types"
"github.com/stretchr/testify/assert"
"go.beyondstorage.io/v5/pairs"
"go.beyondstorage.io/v5/services"
. "go.beyondstorage.io/v5/types"
)

func TestFromString(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tests/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ If the test failed, the generator SHOULD NOT be used in specific service.

package tests

//go:generate go run -tags tools github.com/beyondstorage/go-storage/v4/cmd/definitions --debug service.toml
//go:generate go run -tags tools go.beyondstorage.io/v5/cmd/definitions --debug service.toml
8 changes: 4 additions & 4 deletions tests/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tests
import (
"context"

. "github.com/beyondstorage/go-storage/v4/types"
. "go.beyondstorage.io/v5/types"
)

type Service struct {
Expand Down
2 changes: 1 addition & 1 deletion tests/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"io"

. "github.com/beyondstorage/go-storage/v4/types"
. "go.beyondstorage.io/v5/types"
)

type Storage struct {
Expand Down
2 changes: 1 addition & 1 deletion tests/storager_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/beyondstorage/go-storage/v4/types"
"go.beyondstorage.io/v5/types"
)

func BenchmarkStorage_Stat(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tests

import typ "github.com/beyondstorage/go-storage/v4/types"
import typ "go.beyondstorage.io/v5/types"

func (s *Service) formatError(op string, err error, args ...string) error {
panic("not implemented")
Expand Down

0 comments on commit 1e32aa0

Please sign in to comment.