Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsKVPathElement (0.12 sec)

  1. operator/pkg/util/path.go

    }
    
    // IsValidPathElement reports whether pe is a valid path element.
    func IsValidPathElement(pe string) bool {
    	return ValidKeyRegex.MatchString(pe)
    }
    
    // IsKVPathElement report whether pe is a key/value path element.
    func IsKVPathElement(pe string) bool {
    	pe, ok := RemoveBrackets(pe)
    	if !ok {
    		return false
    	}
    
    	kv := splitEscaped(pe, kvSeparatorRune)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. operator/pkg/translate/translate.go

    	if len(path) == 0 {
    		return nil, fmt.Errorf("empty path %s", path)
    	}
    	if util.IsKVPathElement(path[0]) {
    		return nil, fmt.Errorf("path %s has an unexpected first element %s", path, path[0])
    	}
    	length := len(path)
    	if util.IsKVPathElement(path[length-1]) {
    		return nil, fmt.Errorf("path %s has an unexpected last element %s", path, path[length-1])
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top