forked from Velocidex/velociraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.go
83 lines (77 loc) · 2.23 KB
/
spec.go
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
74
75
76
77
78
79
80
81
82
83
package services
import (
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
)
// The Golden test harness starts all services except for the sanity service.
func GoldenServicesSpec() *config_proto.ServerServicesConfig {
result := AllServerServicesSpec()
result.SanityChecker = false
return result
}
func GenericToolServices() *config_proto.ServerServicesConfig {
return &config_proto.ServerServicesConfig{
RepositoryManager: true,
InventoryService: true,
Launcher: true,
JournalService: true,
UserManager: true,
NotificationService: true,
}
}
func ClientServicesSpec() *config_proto.ServerServicesConfig {
return &config_proto.ServerServicesConfig{
JournalService: true,
RepositoryManager: true,
InventoryService: true,
NotificationService: true,
Launcher: true,
HttpCommunicator: true,
ClientEventTable: true,
}
}
// The minion only runs a small subset of services.
func MinionServicesSpec() *config_proto.ServerServicesConfig {
return &config_proto.ServerServicesConfig{
HuntDispatcher: true,
StatsCollector: true,
ClientMonitoring: true,
ClientInfo: true,
Label: true,
NotificationService: true,
ReplicationService: true,
Launcher: true,
RepositoryManager: true,
FrontendServer: true,
JournalService: true,
DynDns: true,
}
}
// The GUI/Frontend runs all services.
func AllServerServicesSpec() *config_proto.ServerServicesConfig {
return &config_proto.ServerServicesConfig{
HuntManager: true,
HuntDispatcher: true,
StatsCollector: true,
ServerMonitoring: true,
ServerArtifacts: true,
DynDns: true,
Interrogation: true,
SanityChecker: true,
VfsService: true,
UserManager: true,
ClientMonitoring: true,
MonitoringService: true,
ApiServer: true,
FrontendServer: true,
GuiServer: true,
IndexServer: true,
JournalService: true,
NotificationService: true,
RepositoryManager: true,
InventoryService: true,
ClientInfo: true,
Label: true,
Launcher: true,
NotebookService: true,
}
}