feat(core): add ConfigMap type (#22361)
This commit is contained in:
@@ -6,3 +6,16 @@ type DynamicConfig interface {
|
||||
Get(string) any
|
||||
GetString(string) string
|
||||
}
|
||||
|
||||
// ConfigMap is a recursive map of configuration values.
|
||||
type ConfigMap map[string]any
|
||||
|
||||
// ModuleConfigMap is used to specify module configuration.
|
||||
// Keys (and there default values and types) should be set in Config
|
||||
// and returned by module specific provider function.
|
||||
type ModuleConfigMap struct {
|
||||
Module string
|
||||
Config ConfigMap
|
||||
}
|
||||
|
||||
func (ModuleConfigMap) IsManyPerContainerType() {}
|
||||
|
||||
Reference in New Issue
Block a user