-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathconfig.go
More file actions
55 lines (51 loc) · 1.34 KB
/
config.go
File metadata and controls
55 lines (51 loc) · 1.34 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
// 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/arista/provider"
)
var Config = plugin.Provider{
Name: "arista",
ID: "go.mondoo.com/cnquery/v9/providers/arista",
Version: "11.0.103",
ConnectionTypes: []string{provider.ConnectionType},
Connectors: []plugin.Connector{
{
Name: "arista",
Use: "arista user@host",
Short: "an Arista EOS device",
Long: `Use the arista provider to query resources on an Arista EOS device.
Example:
cnquery shell arista <user@host>
`,
Discovery: []string{},
MinArgs: 1,
MaxArgs: 1,
Flags: []plugin.Flag{
{
Long: "ask-pass",
Type: plugin.FlagType_Bool,
Default: "false",
Desc: "Prompt for connection password",
ConfigEntry: "-",
},
{
Long: "password",
Short: "p",
Type: plugin.FlagType_String,
Default: "",
Desc: "Set the connection password",
Option: plugin.FlagOption_Password,
ConfigEntry: "-",
},
},
},
},
AssetUrlTrees: []*inventory.AssetUrlBranch{
{
PathSegments: []string{"technology=network", "category=arista"},
},
},
}