Documentation
¶
Index ¶
- Variables
- func GetSubObjectFromCache(cache *Cache, path string, collect bool, verboseLevel string) interface{}
- func GetSubObjectFromFile(ymlfile string, path string, collect bool, verboseLevel string) interface{}
- func GetSubObjectFromYml(ymlstr string, path string, collect bool, verboseLevel string) interface{}
- func GetSubYmlFromCache(cache *Cache, path string, collect bool, verboseLevel string) string
- func GetSubYmlFromFile(ymlfile string, path string, collect bool, verboseLevel string) string
- func GetSubYmlFromYml(ymlstr string, path string, collect bool, verboseLevel string) string
- func LoadObjectFromFile(filepath string) interface{}
- func ObjToYaml(obj interface{}) string
- func YamlToObj(srcyml string) interface{}
- type Cache
- func (c *Cache) Delete(key string)
- func (c *Cache) Get(key string) interface{}
- func (c *Cache) GetPrefixMatched(prefix string) *Cache
- func (c *Cache) Len() int
- func (c *Cache) List()
- func (c *Cache) Obsolete(key string)
- func (c *Cache) Put(key string, obj interface{})
- func (c *Cache) SafeGet(key string) (interface{}, bool)
- func (c *Cache) Update(key string, obj interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Mutex = &sync.Mutex{}
)
Functions ¶
func GetSubObjectFromCache ¶
func GetSubObjectFromCache(cache *Cache, path string, collect bool, verboseLevel string) interface{}
obj is a cache item path format: a.b.c(name=fr*).value prefix will be used to get the obj, rest will be used as yq path
func GetSubObjectFromFile ¶
func GetSubObjectFromYml ¶
func GetSubYmlFromCache ¶
func GetSubYmlFromFile ¶
func GetSubYmlFromYml ¶
func LoadObjectFromFile ¶
func LoadObjectFromFile(filepath string) interface{}
Types ¶
Click to show internal directories.
Click to hide internal directories.