Example #1
0
// Link indicates that the object at the given src path should be equal to the
// value at the given target path. All links are resolved when calling Finish
// so there are no ordering constraints on links.
func (loader *Loader) Link(src, target path.P) {
	klog.KPrintf("blueprint.loader.link.debug", "src=%s, target=%s", src, target)

	if loader.links == nil {
		loader.links = make(map[string]path.P)
	}

	loader.links[src.String()] = target
}