Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 0880567

Browse files
authored
Implement GSP-73 Organization rename (#23)
* Implement GSP-73 Organization rename * Bump version to v2
1 parent 9aff4bd commit 0880567

File tree

13 files changed

+44
-59
lines changed

13 files changed

+44
-59
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
1515
- *: Add UnimplementedStub (#11)
1616
- tests: Introduce STORAGE_AZBLOB_INTEGRATION_TEST (#12)
1717
- storage: Implement SSE support (#13)
18-
- storage: Implement AOS-40 (#15)
18+
- storage: Implement GSP-40 (#15)
1919

2020
### Changed
2121

@@ -27,4 +27,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
2727

2828
- Implement azblob services.
2929

30-
[v1.1.0]: https://github.com/aos-dev/go-service-azblob/compare/v1.0.0...v1.1.0
30+
[v1.1.0]: https://github.com/beyondstorage/go-service-azblob/compare/v1.0.0...v1.1.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# go-services-azblob
22

3-
[![Build Status](https://github.com/aos-dev/go-service-azblob/workflows/Unit%20Test/badge.svg?branch=master)](https://github.com/aos-dev/go-service-azblob/actions?query=workflow%3A%22Unit+Test%22)
3+
[![Build Status](https://github.com/beyondstorage/go-service-azblob/workflows/Unit%20Test/badge.svg?branch=master)](https://github.com/beyondstorage/go-service-azblob/actions?query=workflow%3A%22Unit+Test%22)
44
[![License](https://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/Xuanwo/storage/blob/master/LICENSE)
55
[![go storage dev](https://img.shields.io/matrix/go-service-azblob:aos.dev.svg?server_fqdn=chat.aos.dev&label=%23go-service-azblob%3Aaos.dev&logo=matrix)](https://matrix.to/#/#go-service-azblob:aos.dev)
66

7-
azblob services support for [go-storage](https://github.com/aos-dev/go-storage)
7+
azblob services support for [go-storage](https://github.com/beyondstorage/go-storage)

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Package azblob provided support for Azure Storage containers and blobs objects (
33
*/
44
package azblob
55

6-
//go:generate go run -tags tools github.com/aos-dev/go-storage/v3/cmd/definitions service.toml
6+
//go:generate go run -tags tools github.com/beyondstorage/go-storage/v4/cmd/definitions service.toml

error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package azblob
22

3-
import "github.com/aos-dev/go-storage/v3/services"
3+
import "github.com/beyondstorage/go-storage/v4/services"
44

55
var (
66
// ErrEncryptionKeyInvalid will be returned while encryption key is invalid.

generated.go

Lines changed: 9 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
module github.com/aos-dev/go-service-azblob
1+
module github.com/beyondstorage/go-service-azblob/v2
22

33
go 1.15
44

55
require (
66
github.com/Azure/azure-pipeline-go v0.2.3
77
github.com/Azure/azure-storage-blob-go v0.13.0
8-
github.com/aos-dev/go-integration-test/v3 v3.0.1-0.20210512065058-b6c8caf13bc6
9-
github.com/aos-dev/go-storage/v3 v3.6.1-0.20210513125055-cb9106d884d5
8+
github.com/beyondstorage/go-integration-test/v4 v4.0.0-20210521062555-83f8f166943f
9+
github.com/beyondstorage/go-storage/v4 v4.0.0-20210521045436-248353dfc077
1010
github.com/google/uuid v1.2.0
1111
)

go.sum

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUM
1414
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
1515
github.com/Xuanwo/templateutils v0.1.0 h1:WpkWOqQtIQ2vAIpJLa727DdN8WtxhUkkbDGa6UhntJY=
1616
github.com/Xuanwo/templateutils v0.1.0/go.mod h1:OdE0DJ+CJxDBq6psX5DPV+gOZi8bhuHuVUpPCG++Wb8=
17-
github.com/aos-dev/go-integration-test/v3 v3.0.1-0.20210512065058-b6c8caf13bc6 h1:73QZDkTGFyWpkWVrjs0GEM1VREyEmM7RtzddWtBYXho=
18-
github.com/aos-dev/go-integration-test/v3 v3.0.1-0.20210512065058-b6c8caf13bc6/go.mod h1:iMlF4lL4WavgZezGscajjSNcUdFnacX8Dek6lhE0oJA=
19-
github.com/aos-dev/go-storage/v3 v3.6.1-0.20210512033924-5adf27cfdf96/go.mod h1:6arAU5t7CXEsxDPs87xqgHmvEj8/GQfHlV61CxxC0Ww=
20-
github.com/aos-dev/go-storage/v3 v3.6.1-0.20210513125055-cb9106d884d5 h1:xiJN6PvJPDDVac4Ha+ekuGUjRh49O1a1xwxrJPCwlto=
21-
github.com/aos-dev/go-storage/v3 v3.6.1-0.20210513125055-cb9106d884d5/go.mod h1:qareAWtwrRlx4Fw6XIhtAbQnM7I3wylhaQ5Gr3Q5Geg=
22-
github.com/aos-dev/specs/go v0.0.0-20210512024100-386a13f23a83/go.mod h1:gNah3KaPJEfysh7uCCX+sYjQC3g2yx2VgBkFlT945Ws=
23-
github.com/aos-dev/specs/go v0.0.0-20210512093613-3e7634b4a7f5 h1:MmXROEim7Z9u1lFLRvZCy/yKBhq3k1Q/nvaVQmVvZUU=
24-
github.com/aos-dev/specs/go v0.0.0-20210512093613-3e7634b4a7f5/go.mod h1:owye99eWsZvtg5kCEKtSp+AsRPsANhnXgCzHacu4icM=
17+
github.com/beyondstorage/go-integration-test/v4 v4.0.0-20210521062555-83f8f166943f h1:2a44nxIWm5DgEb6/gnD3We/32Bx19ET0iOM4+mxOmp8=
18+
github.com/beyondstorage/go-integration-test/v4 v4.0.0-20210521062555-83f8f166943f/go.mod h1:PUhp+CDYnsysCKVU7poqIK7ZWTfADkOu2Z/PjlSIhsY=
19+
github.com/beyondstorage/go-storage/v4 v4.0.0-20210521045436-248353dfc077 h1:BxqrLLELv6ZvP4+DZlwPAwBhNYkQqpZFvujvUT8zGiY=
20+
github.com/beyondstorage/go-storage/v4 v4.0.0-20210521045436-248353dfc077/go.mod h1:oa2dYco+xplPj99WSBnYVw/xXvRkIKWSSVDQKNZ5Kz8=
21+
github.com/beyondstorage/specs/go v0.0.0-20210521044836-3d41c1d9c97f h1:KMXKB/LACUmnOfLfjND8222qtzWT9lWRUdsPOlM4FqE=
22+
github.com/beyondstorage/specs/go v0.0.0-20210521044836-3d41c1d9c97f/go.mod h1:f5VvmLHc/dNJwl+/yAv/TOHdev3phvuEswx8DIXiSQQ=
2523
github.com/dave/dst v0.26.2 h1:lnxLAKI3tx7MgLNVDirFCsDTlTG9nKTk7GcptKcWSwY=
2624
github.com/dave/dst v0.26.2/go.mod h1:UMDJuIRPfyUCC78eFuB+SV/WI8oDeyFDvM/JR6NI3IU=
2725
github.com/dave/gopackages v0.0.0-20170318123100-46e7023ec56e/go.mod h1:i00+b/gKdIDIxuLDFob7ustLAVqhsZRk2qVZrArELGQ=
@@ -53,7 +51,6 @@ github.com/mattn/go-ieproxy v0.0.1 h1:qiyop7gCflfhwCzGyeT0gro3sF9AIg9HU98JORTkqf
5351
github.com/mattn/go-ieproxy v0.0.1/go.mod h1:pYabZ6IHcRpFh7vIaLfK7rdcWgFEb3SFJ6/gNWuh88E=
5452
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
5553
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
56-
github.com/pelletier/go-toml v1.9.0/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
5754
github.com/pelletier/go-toml v1.9.1 h1:a6qW1EVNZWH9WGI6CsYdD8WAylkoXBS5yv0XHlh17Tc=
5855
github.com/pelletier/go-toml v1.9.1/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
5956
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"github.com/Azure/azure-storage-blob-go/azblob"
77

8-
ps "github.com/aos-dev/go-storage/v3/pairs"
9-
typ "github.com/aos-dev/go-storage/v3/types"
8+
ps "github.com/beyondstorage/go-storage/v4/pairs"
9+
typ "github.com/beyondstorage/go-storage/v4/types"
1010
)
1111

1212
func (s *Service) create(ctx context.Context, name string, opt pairServiceCreate) (store typ.Storager, err error) {

storage.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88

99
"github.com/Azure/azure-storage-blob-go/azblob"
1010

11-
"github.com/aos-dev/go-storage/v3/pkg/iowrap"
12-
"github.com/aos-dev/go-storage/v3/services"
13-
. "github.com/aos-dev/go-storage/v3/types"
11+
"github.com/beyondstorage/go-storage/v4/pkg/iowrap"
12+
"github.com/beyondstorage/go-storage/v4/services"
13+
. "github.com/beyondstorage/go-storage/v4/types"
1414
)
1515

1616
func (s *Storage) commitAppend(ctx context.Context, o *Object, opt pairStorageCommitAppend) (err error) {
@@ -62,7 +62,7 @@ func (s *Storage) delete(ctx context.Context, path string, opt pairStorageDelete
6262
azblob.DeleteSnapshotsOptionNone, azblob.BlobAccessConditions{})
6363
if err != nil && checkError(err, azblob.ServiceCodeBlobNotFound) {
6464
// Omit `BlobNotFound` error here
65-
// ref: [AOS-46](https://github.com/aos-dev/specs/blob/master/rfcs/46-idempotent-delete.md)
65+
// ref: [GSP-46](https://github.com/beyondstorage/specs/blob/master/rfcs/46-idempotent-delete.md)
6666
err = nil
6767
}
6868
if err != nil {
@@ -93,11 +93,11 @@ func (s *Storage) list(ctx context.Context, path string, opt pairStorageList) (o
9393
return NewObjectIterator(ctx, nextFn, input), nil
9494
}
9595

96-
func (s *Storage) metadata(ctx context.Context, opt pairStorageMetadata) (meta *StorageMeta, err error) {
96+
func (s *Storage) metadata(opt pairStorageMetadata) (meta *StorageMeta) {
9797
meta = NewStorageMeta()
9898
meta.Name = s.name
9999
meta.WorkDir = s.workDir
100-
return meta, nil
100+
return meta
101101
}
102102

103103
func (s *Storage) nextObjectPageByDir(ctx context.Context, page *ObjectPage) error {

tests/storage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"os"
55
"testing"
66

7-
tests "github.com/aos-dev/go-integration-test/v3"
7+
tests "github.com/beyondstorage/go-integration-test/v4"
88
)
99

1010
func TestStorage(t *testing.T) {

0 commit comments

Comments
 (0)