Skip to content

Commit 915b48a

Browse files
committed
Revert "initial changes to rename realm"
This reverts commit d18b411.
1 parent d18b411 commit 915b48a

File tree

9 files changed

+18
-21
lines changed

9 files changed

+18
-21
lines changed

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ COVERAGE=coverage.out
77
export PATH := ./bin:$(PATH)
88
export GO111MODULE := on
99

10-
.PHONY: build
11-
build:
12-
go install $(SOURCE_FILES)
13-
1410
.PHONY: setup
1511
setup: ## Install dev tools
1612
@echo "==> Installing dependencies..."

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
# go-client-mongodb-atlas-app-services (WIP)
1+
# go-client-mongodb-realm
22
[![PkgGoDev](https://pkg.go.dev/badge/go.mongodb.org/realm)](https://pkg.go.dev/go.mongodb.org/realm)
33

4-
A Go HTTP client for the [MongoDB Atlas App Services Admin API](https://www.mongodb.com/docs/atlas/app-services/admin/api/v3/).
4+
A Go HTTP client for the [MongoDB Realm API](https://docs.mongodb.com/realm/admin/api/v3/).
5+
6+
Note that Realm only supports the two most recent major versions of Go.
57

68
## Usage
79

810
```go
9-
import "go.mongodb.org/atlas-appservices/appservices"
11+
import "go.mongodb.org/realm/realm"
1012
```
1113

12-
Construct a new App Services client, then use the various services on the client to
14+
Construct a new Realm client, then use the various services on the client to
1315
access different parts of the Atlas API. For example:
1416

1517
```go
16-
client := appservices.NewClient(nil)
18+
client := realm.NewClient(nil)
1719
```
1820

1921
The services of a client divide the API into logical chunks and correspond to
2022
the structure of the Atlas API documentation at
21-
https://www.mongodb.com/docs/atlas/app-services/admin/api/v3/.
23+
https://docs.mongodb.com/realm/admin/api/v3/.
2224

2325
**NOTE:** Using the [context](https://godoc.org/context) package, one can easily
2426
pass cancellation signals and deadlines to various services of the client for
@@ -31,7 +33,7 @@ Each version of the client is tagged, and the version is updated accordingly.
3133

3234
To see the list of past versions, run `git tag`.
3335

34-
To release a new version, first ensure that [Version](./appservices/appservices.go) is updated
36+
To release a new version, first ensure that [Version](./realm/realm.go) is updated
3537
(i.e., before running `git push origin vx.y.z`, verify that `Version=x.y.z` should match the tag being pushed to GitHub)
3638

3739
## Roadmap
@@ -46,4 +48,4 @@ See our [CONTRIBUTING.md](CONTRIBUTING.md) Guide.
4648

4749
## License
4850

49-
`go-client-mongodb-atlas-app-services` is released under the Apache 2.0 license. See [LICENSE](LICENSE)
51+
`go-client-mongodb-realm` is released under the Apache 2.0 license. See [LICENSE](LICENSE)

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module go.mongodb.org/atlas-appservices
1+
module go.mongodb.org/realm
22

3-
go 1.23
3+
go 1.18
44

55
require (
66
github.com/go-test/deep v1.1.1

appservices/apps.go renamed to realm/apps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package appservices
15+
package realm
1616

1717
import (
1818
"context"

appservices/apps_test.go renamed to realm/apps_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package appservices
15+
package realm
1616

1717
import (
1818
"fmt"

appservices/event_triggers.go renamed to realm/event_triggers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package appservices
15+
package realm
1616

1717
import (
1818
"context"

appservices/event_triggers_test.go renamed to realm/event_triggers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package appservices
15+
package realm
1616

1717
import (
1818
"encoding/json"

appservices/appservices.go renamed to realm/realm.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package appservices // import "go.mongodb.org/realm/realm"
15+
package realm // import "go.mongodb.org/realm/realm"
1616

1717
import (
1818
"bytes"
@@ -28,7 +28,6 @@ import (
2828
"strings"
2929

3030
"github.com/google/go-querystring/query"
31-
3231
"go.mongodb.org/atlas/mongodbatlas"
3332
)
3433

appservices/appservices_test.go renamed to realm/realm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package appservices
15+
package realm
1616

1717
import (
1818
"context"

0 commit comments

Comments
 (0)