Documentation
¶
Index ¶
- func GetInt32PointerFromGenericConfig(config v1.GenericConfig, key string) (*int32, error)
- func GetMapFromGenericConfig(config v1.GenericConfig, key string) (map[string]any, error)
- func GetProjectModuleConfig(config *v1.ModuleConfig, projectName string) (v1.GenericConfig, error)
- func GetProjectModuleConfigs(configs v1.ModuleConfigs, projectName string) (map[string]v1.GenericConfig, error)
- func GetStringFromGenericConfig(config v1.GenericConfig, key string) (string, error)
- func GetStringMapFromGenericConfig(config v1.GenericConfig, key string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInt32PointerFromGenericConfig ¶
func GetInt32PointerFromGenericConfig(config v1.GenericConfig, key string) (*int32, error)
GetInt32PointerFromGenericConfig returns the value of the key in config which should be of type int. If exist but not int, return error. If not exist, return nil.
func GetMapFromGenericConfig ¶
GetMapFromGenericConfig returns the value of the key in config which should be of type map[string]any. If exist but not map[string]any, return error; If not exist, return nil, nil.
func GetProjectModuleConfig ¶
func GetProjectModuleConfig(config *v1.ModuleConfig, projectName string) (v1.GenericConfig, error)
GetProjectModuleConfig returns the module config of a specified project, should be called after ValidateModuleConfig. If got empty module config, return nil config and nil error.
func GetProjectModuleConfigs ¶
func GetProjectModuleConfigs(configs v1.ModuleConfigs, projectName string) (map[string]v1.GenericConfig, error)
GetProjectModuleConfigs returns the module configs of a specified project, whose key is the module name, should be called after ValidateModuleConfigs. If got empty module configs, return nil config and nil error.
func GetStringFromGenericConfig ¶
func GetStringFromGenericConfig(config v1.GenericConfig, key string) (string, error)
GetStringFromGenericConfig returns the value of the key in config which should be of type string. If exist but not string, return error; If not exist, return "", nil.
func GetStringMapFromGenericConfig ¶
GetStringMapFromGenericConfig returns the value of the key in config which should be of type map[string]string. If exist but not map[string]string, return error; If not exist, return nil, nil.
Types ¶
This section is empty.