-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
subcommands.go
37 lines (34 loc) · 1.62 KB
/
subcommands.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
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
// Package subcommands implement security agent subcommands
package subcommands
import (
"github.com/DataDog/datadog-agent/cmd/security-agent/command"
cmdcheck "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/check"
cmdcompliance "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/compliance"
cmdconfig "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/config"
cmdflare "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/flare"
cmdruntime "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/runtime"
cmdstart "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/start"
cmdstatus "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/status"
cmdversion "github.com/DataDog/datadog-agent/cmd/security-agent/subcommands/version"
)
// SecurityAgentSubcommands returns SubcommandFactories for the subcommands supported
// with the current build flags. The build tags in use right now are
// !windows && kubeapiserver (check, and any parent command that uses check),
// kubeapiserver (config),
// and linux (runtime).
func SecurityAgentSubcommands() []command.SubcommandFactory {
return []command.SubcommandFactory{
cmdcheck.SecurityAgentCommands,
cmdcompliance.Commands,
cmdconfig.Commands,
cmdflare.Commands,
cmdruntime.Commands,
cmdstart.Commands,
cmdstatus.Commands,
cmdversion.Commands,
}
}