mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Split reswrangler.go and test from resmap.go
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user