oc-datacenter/conf/config.go

23 lines
287 B
Go
Raw Normal View History

2025-02-14 11:09:31 +01:00
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
}