Skip to content

Commit

Permalink
✨ add asset url trees for "other" platforms to core (#3595)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Mar 18, 2024
1 parent f43a6c8 commit 1d2a7a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion providers/core/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@

package config

import "go.mondoo.com/cnquery/v10/providers-sdk/v1/plugin"
import (
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/plugin"
)

var Config = plugin.Provider{
Name: "core",
ID: "go.mondoo.com/cnquery/v9/providers/core",
Version: "10.3.1",
Connectors: []plugin.Connector{},
AssetUrlTrees: []*inventory.AssetUrlBranch{
{
PathSegments: []string{"technology=other"},
Key: "platform",
Title: "Other Platform",
Values: map[string]*inventory.AssetUrlBranch{
"*": nil,
},
},
},
}
4 changes: 2 additions & 2 deletions providers/os/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ var Config = plugin.Provider{
{
PathSegments: []string{"technology=os"},
Key: "family",
Title: "Family",
Title: "OS Family",
Values: map[string]*inventory.AssetUrlBranch{
// linux, windows, darwin, unix, ...
"*": {
Expand All @@ -276,7 +276,7 @@ var Config = plugin.Provider{
{
PathSegments: []string{"technology=container"},
Key: "kind",
Title: "Kind",
Title: "Container Kind",
Values: map[string]*inventory.AssetUrlBranch{
// container-image, container, ...
"*": {
Expand Down

0 comments on commit 1d2a7a3

Please sign in to comment.