1 Star 0 Fork 0

sqos/beats

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
config.go 362 Bytes
Copy Edit Raw Blame History
package docker
type Config struct {
TLS *TLSConfig `config:"ssl"`
}
type TLSConfig struct {
Enabled *bool `config:"enabled"`
CA string `config:"certificate_authority"`
Certificate string `config:"certificate"`
Key string `config:"key"`
}
func (c *TLSConfig) IsEnabled() bool {
return c != nil && (c.Enabled == nil || *c.Enabled)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v5.6.13

Search