-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathconfig.go
More file actions
73 lines (70 loc) · 1.74 KB
/
config.go
File metadata and controls
73 lines (70 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1
package config
import (
"go.mondoo.com/cnquery/v11/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v11/providers/oci/provider"
)
var Config = plugin.Provider{
Name: "oci",
ID: "go.mondoo.com/cnquery/v9/providers/oci",
Version: "11.0.103",
ConnectionTypes: []string{provider.ConnectionType},
Connectors: []plugin.Connector{
{
Name: "oci",
Use: "oci",
Short: "an Oracle Cloud Infrastructure tenancy",
Discovery: []string{},
Flags: []plugin.Flag{
{
Long: "tenancy",
Type: plugin.FlagType_String,
Default: "",
Desc: "The tenancy's OCID",
},
{
Long: "user",
Type: plugin.FlagType_String,
Default: "",
Desc: "The user's OCID",
},
{
Long: "region",
Type: plugin.FlagType_String,
Default: "",
Desc: "The selected region",
},
{
Long: "key-path",
Type: plugin.FlagType_String,
Default: "",
Desc: "The path to the private key, that will be used for authentication",
},
{
Long: "fingerprint",
Type: plugin.FlagType_String,
Default: "",
Desc: "The fingerprint of the private key",
},
{
Long: "key-secret",
Type: plugin.FlagType_String,
Default: "",
Desc: "The passphrase for private key, that will be used for authentication",
},
},
},
},
AssetUrlTrees: []*inventory.AssetUrlBranch{
{
PathSegments: []string{"technology=oci"},
Key: "kind",
Title: "Kind",
Values: map[string]*inventory.AssetUrlBranch{
"tenancy": nil,
},
},
},
}