Skip to content

Commit 018207a

Browse files
committed
initial changes to rename realm
1 parent 915b48a commit 018207a

File tree

9 files changed

+21
-18
lines changed

9 files changed

+21
-18
lines changed

Makefile

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

10+
.PHONY: build
11+
build:
12+
go install $(SOURCE_FILES)
13+
1014
.PHONY: setup
1115
setup: ## Install dev tools
1216
@echo "==> Installing dependencies..."

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
# go-client-mongodb-realm
1+
# go-client-mongodb-atlas-app-services (WIP)
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 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.
4+
A Go HTTP client for the [MongoDB Atlas App Services Admin API](https://www.mongodb.com/docs/atlas/app-services/admin/api/v3/).
75

86
## Usage
97

108
```go
11-
import "go.mongodb.org/realm/realm"
9+
import "go.mongodb.org/atlas-appservices/appservices"
1210
```
1311

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

1715
```go
18-
client := realm.NewClient(nil)
16+
client := appservices.NewClient(nil)
1917
```
2018

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

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

3432
To see the list of past versions, run `git tag`.
3533

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

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

4947
## License
5048

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

realm/apps.go renamed to appservices/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 realm
15+
package appservices
1616

1717
import (
1818
"context"

realm/apps_test.go renamed to appservices/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 realm
15+
package appservices
1616

1717
import (
1818
"fmt"

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

Lines changed: 2 additions & 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 realm // import "go.mongodb.org/realm/realm"
15+
package appservices // import "go.mongodb.org/realm/realm"
1616

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

3030
"github.com/google/go-querystring/query"
31+
3132
"go.mongodb.org/atlas/mongodbatlas"
3233
)
3334

realm/realm_test.go renamed to appservices/appservices_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 realm
15+
package appservices
1616

1717
import (
1818
"context"

realm/event_triggers.go renamed to appservices/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 realm
15+
package appservices
1616

1717
import (
1818
"context"

realm/event_triggers_test.go renamed to appservices/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 realm
15+
package appservices
1616

1717
import (
1818
"encoding/json"

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/realm
1+
module go.mongodb.org/atlas-appservices
22

3-
go 1.18
3+
go 1.23
44

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

0 commit comments

Comments
 (0)