You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generated-usage-examples/go/atlas-sdk-go/project-copy/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ Currently, the repository includes examples that demonstrate the following:
16
16
- Download logs for a specific host
17
17
- Pull and parse line-item-level billing data
18
18
- Return all linked organizations from a specific billing organization
19
-
- Get historical invoices for an organization
20
-
- Programmatically manage Atlas resources
19
+
- Get historical invoices for an organization
20
+
- Programmatically archive Atlas cluster data
21
21
22
22
As the Architecture Center documentation evolves, this repository will be updated with new examples
23
23
and improvements to existing code.
@@ -28,12 +28,15 @@ and improvements to existing code.
28
28
.
29
29
├── examples # Runnable examples by category
30
30
│ ├── billing/
31
-
│ └── monitoring/
31
+
│ ├── monitoring/
32
+
│ └── performance/
32
33
├── configs # Atlas configuration template
33
34
│ └── config.json
34
35
├── internal # Shared utilities and helpers
36
+
│ ├── archive/
35
37
│ ├── auth/
36
38
│ ├── billing/
39
+
│ ├── clusters/
37
40
│ ├── config/
38
41
│ ├── data/
39
42
│ ├── errors/
@@ -56,10 +59,13 @@ and improvements to existing code.
56
59
57
60
## Setting Environment Variables
58
61
59
-
1. Create a `.env` file in the root directory with your MongoDB Atlas service account credentials:
62
+
1. Create a `.env.<environment>` file in the root directory with your MongoDB Atlas service account credentials. For example, to create a `.env.development` file for your dev environment:
// LoadAppContextWithContext Add context support to handle timeouts and cancellation
137
+
// LoadAppContextWithContext initializes application context with environment-specific configuration using a provided context for cancellation support.
138
+
// If explicitEnv is provided, it overrides the APP_ENV environment variable
139
+
// If strictValidation is true, invalid environments will return an error
0 commit comments