mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
rename IsMatchEveryIndex to IsWildcard
This commit is contained in:
@@ -789,6 +789,12 @@ func IsIdxNumber(p string) bool {
|
||||
return err == nil && idx >= 0
|
||||
}
|
||||
|
||||
// IsWildcard returns true if p is matching every elements.
|
||||
// e.g. "*"
|
||||
func IsWildcard(p string) bool {
|
||||
return p == "*"
|
||||
}
|
||||
|
||||
// SplitIndexNameValue splits a lookup part Val index into the field name
|
||||
// and field value to match.
|
||||
// e.g. splits [name=nginx] into (name, nginx)
|
||||
@@ -803,12 +809,6 @@ func SplitIndexNameValue(p string) (string, string, error) {
|
||||
return parts[0], parts[1], nil
|
||||
}
|
||||
|
||||
// IsMatchEveryIndex returns true if p is matching every elements.
|
||||
// e.g. "*"
|
||||
func IsMatchEveryIndex(p string) bool {
|
||||
return p == "*"
|
||||
}
|
||||
|
||||
// IncrementFieldIndex increments i to point to the next field name element in
|
||||
// a slice of Contents.
|
||||
func IncrementFieldIndex(i int) int {
|
||||
|
||||
Reference in New Issue
Block a user