2 Star 1 Fork 0

李玮/trireme-lib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.go 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
李玮 提交于 2020-01-29 13:23 +08:00 . v1
package podmonitor
import (
"git.cloud.top/DSec/trireme-lib/monitor/extractors"
)
// Config is the config for the Kubernetes monitor
type Config struct { // nolint
Kubeconfig string
Nodename string
EnableHostPods bool
Workers int
MetadataExtractor extractors.PodMetadataExtractor
NetclsProgrammer extractors.PodNetclsProgrammer
PidsSetMaxProcsProgrammer extractors.PodPidsSetMaxProcsProgrammer
ResetNetcls extractors.ResetNetclsKubepods
SandboxExtractor extractors.PodSandboxExtractor
}
// DefaultConfig provides a default configuration
func DefaultConfig() *Config {
return &Config{
MetadataExtractor: nil,
NetclsProgrammer: nil,
PidsSetMaxProcsProgrammer: nil,
ResetNetcls: nil,
SandboxExtractor: nil,
EnableHostPods: false,
Kubeconfig: "",
Nodename: "",
Workers: 4,
}
}
// SetupDefaultConfig adds defaults to a partial configuration
func SetupDefaultConfig(kubernetesConfig *Config) *Config {
return kubernetesConfig
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/emmoblin/trireme-lib.git
git@gitee.com:emmoblin/trireme-lib.git
emmoblin
trireme-lib
trireme-lib
7726874a2b9a

搜索帮助