recreate conf erased by gitignore

This commit is contained in:
pb
2025-03-05 17:47:13 +01:00
parent 1896236cab
commit 7f4c193b0f
2 changed files with 32 additions and 0 deletions

22
conf/config.go Normal file
View File

@@ -0,0 +1,22 @@
package conf
import "sync"
type Config struct {
Mode string
KubeHost string
KubePort string
KubeCA string
KubeCert string
KubeData string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}