Split reswrangler.go and test from resmap.go

This commit is contained in:
jregan
2020-08-23 08:18:23 -07:00
7 changed files with 1495 additions and 1484 deletions

View File

@@ -11,10 +11,19 @@ import (
"sigs.k8s.io/kustomize/api/types"
)
// Merginator merges resources.
type Merginator interface {
// Merge creates a new ResMap by merging incoming resources.
// Error if conflict found.
Merge([]*resource.Resource) (ResMap, error)
}
// Factory makes instances of ResMap.
type Factory struct {
// Makes resources.
resF *resource.Factory
pm Merginator
// Makes ResMaps via merging.
pm Merginator
}
// NewFactory returns a new resmap.Factory.