Skip to content

DOCSP-46221: Atlas SDK for Go Monitoring & Logging scripts for Atlas Architecture Center #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
26d1152
Update repo IA
cbullinger Mar 7, 2025
b78cdc5
Add internal functions for loading vars and creating authenticated cl…
cbullinger Mar 11, 2025
f6a1b41
Add infra and pull logs script
cbullinger Mar 13, 2025
f69498b
Add utility functions and troubleshoot metrics calls
cbullinger Mar 13, 2025
40aee99
Fix metric outputs
cbullinger Mar 14, 2025
6ab8b51
Refactor to use apiClient interface
cbullinger Mar 19, 2025
cd7d779
fixing utility functions
cbullinger Mar 19, 2025
79663dc
Add finalized mock tests for Monitoring & Logging functions
cbullinger Mar 19, 2025
a995b32
Update /generated-usage-examples subdirectories to match new structure
cbullinger Mar 19, 2025
df0261f
Bluehawk examples to sdk/snippets and atlas-sdk-go/
cbullinger Mar 20, 2025
349c0a1
Add generic config file
cbullinger Mar 20, 2025
784b210
Move copier test files to corresponding directories in new IA
cbullinger Mar 20, 2025
8aa1ece
Tidying up
cbullinger Mar 20, 2025
0f380c5
Cleaning up generated-usage-examples directory
cbullinger Mar 20, 2025
a93c66e
applying tech review feedback
cbullinger Mar 27, 2025
f846f4f
define separate output directories
cbullinger Apr 18, 2025
bf36e82
Fix BH copy script
cbullinger Apr 21, 2025
2c37b2c
Clean up for copy to artifact repo
cbullinger Apr 29, 2025
16b940e
Merge branch 'main' of ssh://github.com/mongodb/docs-code-examples in…
cbullinger Apr 29, 2025
de004d8
Refactor and write unit tests
cbullinger May 5, 2025
f5414b3
Run bluehawk copy
cbullinger May 5, 2025
cfdc15a
Update usage-examples/go/atlas-sdk-go/internal/utils.go
cbullinger May 7, 2025
eff647c
Apply review feedback and rerun BH script
cbullinger May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/test-go-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# name: CI
# on: [push, pull_request]
# jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version-file: go.mod
# - name: Test
# run: go test
25 changes: 19 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
# MacOS Build Artifacts
*.DS_Store
# Don't commit .env files with secret info, EVER

# Secrets and keys ****DO NOT COMMIT SECRETS***
*.env
# JetBrains IDE files
*/secrets.json

# Logs
*.log
*.gz

# IDE files
## Visual Studio Code files
.vscode
## JetBrains IDE files
*.idea
# Python virtual environment
## Python virtual environment
*/venv
# Node.js dependencies

# Language specific output
## Node.js dependencies
*/node_modules
# Java build files
*/target
## Java build files
*/target

58 changes: 1 addition & 57 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,11 @@
[
{
"notes": "Copy atlas-sdk-go project files to user-facing Atlas Architecture Center artifact repo root",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/project-copy/",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "."
},
{
"notes": "atlas-sdk-go/copied-project/cmd subdirectory",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/cmd",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "cmd"
},
{
"notes": "atlas-sdk-go/copied-project/cmd/get_logs subdirectory",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/cmd/get_logs",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "cmd/get_logs"
},
{
"notes": "atlas-sdk-go/copied-project/cmd/get_metrics_process subdirectory",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/cmd/get_metrics_process",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "cmd/get_metrics_process"
},
{
"notes": "atlas-sdk-go/copied-project/cmd/get_metrics_disk subdirectory",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/cmd/get_metrics_disk",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "cmd/get_metrics_disk"
},
{
"notes": "atlas-sdk-go/copied-project/configs",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/configs",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "configs"
},
{
"notes": "atlas-sdk-go/copied-project/internal subdirectory",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/internal",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "internal"
},
{
"notes": "atlas-sdk-go/copied-project/internal/auth subdirectory",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/internal/auth",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "main",
"target_directory" : "internal/auth"
},
{
"notes": "Copy atlas-sdk-go project files to user-facing Atlas Architecture Center artifact repo root",
"source_directory" : "generated-usage-examples/go/atlas-sdk-go/copied-project/",
"target_repo" : "atlas-architecture-go-sdk",
"target_branch" : "copy-test-2",
"target_directory" : "."
},
{
"notes": "Example config for copying files from a directory to another repo",
"source_directory" : "generated-examples",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading