Skip to content

Commit eff647c

Browse files
committed
Apply review feedback and rerun BH script
1 parent cfdc15a commit eff647c

File tree

45 files changed

+227
-554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+227
-554
lines changed

generated-usage-examples/go/atlas-sdk-go/main.snippet.get-logs.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
package main
33

44
import (
5-
"atlas-sdk-go/internal"
6-
"atlas-sdk-go/internal/auth"
7-
"atlas-sdk-go/internal/config"
8-
"atlas-sdk-go/internal/logs"
95
"context"
106
"fmt"
11-
"github.com/joho/godotenv"
12-
"go.mongodb.org/atlas-sdk/v20250219001/admin"
137
"log"
148
"os"
159
"path/filepath"
1610
"time"
11+
12+
"github.com/joho/godotenv"
13+
"go.mongodb.org/atlas-sdk/v20250219001/admin"
14+
15+
"atlas-sdk-go/internal"
16+
"atlas-sdk-go/internal/auth"
17+
"atlas-sdk-go/internal/config"
18+
"atlas-sdk-go/internal/logs"
1719
)
1820

1921
func main() {
@@ -56,6 +58,5 @@ func main() {
5658
log.Fatalf("decompress: %v", err)
5759
}
5860
fmt.Println("Uncompressed log to", txtPath)
59-
6061
}
6162

generated-usage-examples/go/atlas-sdk-go/main.snippet.get-metrics-dev.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
package main
33

44
import (
5-
"atlas-sdk-go/internal/auth"
6-
"atlas-sdk-go/internal/config"
7-
"atlas-sdk-go/internal/metrics"
85
"context"
96
"encoding/json"
107
"fmt"
8+
"log"
9+
1110
"github.com/joho/godotenv"
1211
"go.mongodb.org/atlas-sdk/v20250219001/admin"
13-
"log"
12+
13+
"atlas-sdk-go/internal/auth"
14+
"atlas-sdk-go/internal/config"
15+
"atlas-sdk-go/internal/metrics"
1416
)
1517

1618
func main() {

generated-usage-examples/go/atlas-sdk-go/main.snippet.get-metrics-prod.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
package main
33

44
import (
5-
"atlas-sdk-go/internal/auth"
6-
"atlas-sdk-go/internal/config"
7-
"atlas-sdk-go/internal/metrics"
85
"context"
96
"encoding/json"
107
"fmt"
8+
"log"
9+
1110
"github.com/joho/godotenv"
1211
"go.mongodb.org/atlas-sdk/v20250219001/admin"
13-
"log"
12+
13+
"atlas-sdk-go/internal/auth"
14+
"atlas-sdk-go/internal/config"
15+
"atlas-sdk-go/internal/metrics"
1416
)
1517

1618
func main() {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Secrets
2+
.env
3+
4+
# Logs
5+
*.log
6+
*.gz

generated-usage-examples/go/atlas-sdk-go/project-copy/cmd/get_logs/main.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
package main
22

33
import (
4-
"atlas-sdk-go/internal"
5-
"atlas-sdk-go/internal/auth"
6-
"atlas-sdk-go/internal/config"
7-
"atlas-sdk-go/internal/logs"
84
"context"
95
"fmt"
10-
"github.com/joho/godotenv"
11-
"go.mongodb.org/atlas-sdk/v20250219001/admin"
126
"log"
137
"os"
148
"path/filepath"
159
"time"
10+
11+
"github.com/joho/godotenv"
12+
"go.mongodb.org/atlas-sdk/v20250219001/admin"
13+
14+
"atlas-sdk-go/internal"
15+
"atlas-sdk-go/internal/auth"
16+
"atlas-sdk-go/internal/config"
17+
"atlas-sdk-go/internal/logs"
1618
)
1719

1820
func main() {
@@ -55,6 +57,5 @@ func main() {
5557
log.Fatalf("decompress: %v", err)
5658
}
5759
fmt.Println("Uncompressed log to", txtPath)
58-
5960
}
6061

generated-usage-examples/go/atlas-sdk-go/project-copy/cmd/get_metrics_disk/main.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
package main
22

33
import (
4-
"atlas-sdk-go/internal/auth"
5-
"atlas-sdk-go/internal/config"
6-
"atlas-sdk-go/internal/metrics"
74
"context"
85
"encoding/json"
96
"fmt"
7+
"log"
8+
109
"github.com/joho/godotenv"
1110
"go.mongodb.org/atlas-sdk/v20250219001/admin"
12-
"log"
11+
12+
"atlas-sdk-go/internal/auth"
13+
"atlas-sdk-go/internal/config"
14+
"atlas-sdk-go/internal/metrics"
1315
)
1416

1517
func main() {

generated-usage-examples/go/atlas-sdk-go/project-copy/cmd/get_metrics_process/main.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
package main
22

33
import (
4-
"atlas-sdk-go/internal/auth"
5-
"atlas-sdk-go/internal/config"
6-
"atlas-sdk-go/internal/metrics"
74
"context"
85
"encoding/json"
96
"fmt"
7+
"log"
8+
109
"github.com/joho/godotenv"
1110
"go.mongodb.org/atlas-sdk/v20250219001/admin"
12-
"log"
11+
12+
"atlas-sdk-go/internal/auth"
13+
"atlas-sdk-go/internal/config"
14+
"atlas-sdk-go/internal/metrics"
1315
)
1416

1517
func main() {

generated-usage-examples/go/atlas-sdk-go/project-copy/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ require (
1313
github.com/mongodb-forks/digest v1.1.0 // indirect
1414
github.com/pmezard/go-difflib v1.0.0 // indirect
1515
github.com/stretchr/objx v0.5.2 // indirect
16-
golang.org/x/oauth2 v0.28.0 // indirect
16+
golang.org/x/oauth2 v0.30.0 // indirect
1717
gopkg.in/yaml.v3 v3.0.1 // indirect
1818
)

generated-usage-examples/go/atlas-sdk-go/project-copy/go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3-
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
4-
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
53
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
64
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
75
github.com/mongodb-forks/digest v1.1.0 h1:7eUdsR1BtqLv0mdNm4OXs6ddWvR4X2/OsLwdKksrOoc=
@@ -14,8 +12,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
1412
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
1513
go.mongodb.org/atlas-sdk/v20250219001 v20250219001.1.0 h1:tm7d3xvbNFIpuvFcppXc1zdpM/dO7HwivpA+Y4np3uQ=
1614
go.mongodb.org/atlas-sdk/v20250219001 v20250219001.1.0/go.mod h1:huR1gWJhExa60NIRhsLDdc7RmmqKJJwnbdlA1UUh8V4=
17-
golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc=
18-
golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
15+
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
16+
golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
1917
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
2018
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2119
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

generated-usage-examples/go/atlas-sdk-go/project-copy/internal/auth/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package auth
22

33
import (
4-
"atlas-sdk-go/internal/config"
54
"context"
65
"fmt"
76

7+
"atlas-sdk-go/internal/config"
8+
89
"go.mongodb.org/atlas-sdk/v20250219001/admin"
910
)
1011

0 commit comments

Comments
 (0)