Skip to content

Commit

Permalink
Capitalize Mondoo Platform in a few places
Browse files Browse the repository at this point in the history
This also updates the short description of the platform that is used in
`cnspec scan/shell help`

```
...

  mondoo           Scan the Mondoo Platform

...

```

Signed-off-by: Tim Smith <tsmith84@gmail.com>
  • Loading branch information
tas50 committed Jul 31, 2024
1 parent 3bf3e9f commit 94023e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ lr/docs/markdown: providers/lr
--output ../docs/docs/mql/resources/snowflake-pack
./lr markdown providers/mondoo/resources/mondoo.lr \
--pack-name "Mondoo" \
--description "The Mondoo resource pack lets you interact with the Mondoo platform and its assets and resources." \
--description "The Mondoo resource pack lets you interact with the Mondoo Platform and its assets and resources." \
--docs-file providers/mondoo/resources/mondoo.lr.manifest.yaml \
--output ../docs/docs/mql/resources/mondoo-pack

Expand Down
5 changes: 3 additions & 2 deletions providers-sdk/v1/upstream/health/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ package health
import (
"context"
"fmt"
"runtime/debug"

"github.com/rs/zerolog/log"
"go.mondoo.com/cnquery/v11/cli/config"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/upstream"
"go.mondoo.com/ranger-rpc"
"runtime/debug"
)

//go:generate protoc --proto_path=. --go_out=. --go_opt=paths=source_relative --rangerrpc_out=. errors.proto
Expand Down Expand Up @@ -90,5 +91,5 @@ func sendPanic(product, version, build string, r any, stacktrace []byte) {
return
}

log.Info().Msg("reported panic to Mondoo platform")
log.Info().Msg("reported panic to Mondoo Platform")
}
2 changes: 1 addition & 1 deletion providers-sdk/v1/upstream/upstream.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions providers-sdk/v1/upstream/upstream.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ message UpstreamConfig {
string api_proxy = 6;
}

// ServiceAccountCredentials are used to authenticate with the Mondoo platform
// ServiceAccountCredentials are used to authenticate with the Mondoo Platform
message ServiceAccountCredentials {
// MRN of the service account
string mrn = 1;
Expand All @@ -33,7 +33,7 @@ message ServiceAccountCredentials {

service AgentManager {
// RegisterAgent registers a new managed agent
rpc RegisterAgent(AgentRegistrationRequest)
rpc RegisterAgent(AgentRegistrationRequest)
returns (AgentRegistrationConfirmation);

// UnRegister removes the managed agent from management
Expand Down Expand Up @@ -82,7 +82,7 @@ message AgentRegistrationConfirmation {
ServiceAccountCredentials credential = 2;
}

message Mrn {
message Mrn {
string mrn = 1;
}

Expand Down Expand Up @@ -121,4 +121,4 @@ message SshSignature {
string alg = 1;
string kid = 2;
string sig = 3;
}
}
2 changes: 1 addition & 1 deletion providers/mondoo/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var Config = plugin.Provider{
{
Name: "mondoo",
Use: "mondoo",
Short: "a Mondoo platform",
Short: "the Mondoo Platform",
MinArgs: 0,
MaxArgs: 4,
Discovery: []string{},
Expand Down

0 comments on commit 94023e0

Please sign in to comment.