{"modulePath":"github.com/apache/openserverless-cli","version":"v1.3.0-snapshot.2407231632","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Functions\n\n```go\nfunc ConfigTool(configMap ConfigMap) error\n```\n\n```go\nfunc NewConfigMapBuilder() *configMapBuilder\n```\n\n## Types\n\n```go\ntype ConfigMap struct {\n\t// contains filtered or unexported fields\n}\n```\nA ConfigMap is a map where the keys are in the form of: A\\_KEY\\_WITH\\_UNDERSCORES. The map splits the key by the underscores and creates a nested map that represents the key. For example, the key \"A\\_KEY\\_WITH\\_UNDERSCORES\" would be represented as:\n\n\t{\n\t\t\"a\": {\n\t\t\t\"key\": {\n\t\t\t\t\"with\": {\n\t\t\t\t\t\"underscores\": \"value\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\nTo interact with the ConfigMap, use the Insert, Get, and Delete by passing keys in the form above. Only the config map is modified by these functions. The nuvRootConfig map is only used to read the config keys in nuvroot.json. The pluginNuvRootConfigs map is only used to read the config keys in plugins (from their nuvroot.json). It is a map that maps the plugin name to the config map for that plugin.\n\n```go\nfunc (c *ConfigMap) Delete(key string) error\n```\n\n```go\nfunc (c *ConfigMap) Flatten() map[string]string\n```\n\n```go\nfunc (c *ConfigMap) Get(key string) (string, error)\n```\n\n```go\nfunc (c *ConfigMap) Insert(key string, value string) error\n```\nInsert inserts a key and value into the ConfigMap. If the key already exists, the value is overwritten. The expected key format is A\\_KEY\\_WITH\\_UNDERSCORES.\n\n```go\nfunc (c *ConfigMap) SaveConfig() error\n```\n\n","path":"github.com/apache/openserverless-cli/config","name":"config","synopsis":"","isRedistributable":true}
