config: some comments

This commit is contained in:
Mitchell Hashimoto 2014-05-23 10:52:19 -07:00
parent ec3f72703c
commit 089822a36f
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@ func Load(path string) (*Config, error) {
return config, nil return config, nil
} }
// Given a handle to a libucl object, this recurses into the structure
// and pulls out a list of resources.
//
// The resulting resources may not be unique, but each resource
// represents exactly one resource definition in the libucl configuration.
// We leave it up to another pass to merge them together.
func loadResourcesLibucl(o *libucl.Object) ([]Resource, error) { func loadResourcesLibucl(o *libucl.Object) ([]Resource, error) {
var allTypes []*libucl.Object var allTypes []*libucl.Object