Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for prefixEach (0.24 sec)

  1. pkg/apis/apiserverinternal/validation/validation.go

    		errs = append(errs, "version part: "+utilvalidation.EmptyError())
    	} else if msgs := utilvalidation.IsDNS1035Label(version); len(msgs) != 0 {
    		errs = append(errs, prefixEach(msgs, "version part: ")...)
    	}
    	return errs
    }
    
    func prefixEach(msgs []string, prefix string) []string {
    	for i := range msgs {
    		msgs[i] = prefix + msgs[i]
    	}
    	return msgs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 21:43:49 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/HasPrefixAndSuffixPatternStep.java

    public class HasPrefixAndSuffixPatternStep implements PatternStep {
        private final HasPrefixPatternStep prefixMatch;
        private final HasSuffixPatternStep suffixMatch;
    
        public HasPrefixAndSuffixPatternStep(String prefix, String suffix, boolean caseSensitive) {
            prefixMatch = new HasPrefixPatternStep(prefix, caseSensitive);
            suffixMatch = new HasSuffixPatternStep(suffix, caseSensitive, prefix.length());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. pilot/pkg/security/trustdomain/util.go

    func stringMatch(a string, list []string) bool {
    	for _, s := range list {
    		if a == s || s == "*" || prefixMatch(a, s) || prefixMatch(s, a) || suffixMatch(a, s) || suffixMatch(s, a) {
    			return true
    		}
    	}
    	return false
    }
    
    // prefixMatch checks if pattern is a prefix match and if string a has the given prefix.
    func prefixMatch(a string, pattern string) bool {
    	if !strings.HasSuffix(pattern, "*") {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 13 15:27:59 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. internal/config/dns/etcd_dns.go

    	}
    }
    
    // CoreDNSPath - custom prefix on etcd to populate DNS
    // service records, optional and can be empty.
    // if empty then c.prefixPath is used i.e "/skydns"
    func CoreDNSPath(prefix string) EtcdOption {
    	return func(args *CoreDNS) {
    		args.prefixPath = prefix
    	}
    }
    
    // NewCoreDNS - initialize a new coreDNS set/unset values.
    func NewCoreDNS(cfg clientv3.Config, setters ...EtcdOption) (Store, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  5. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParser.java

                    continue;
                }
                if (parsedURI.getPath() != null && !parsedURI.getPath().startsWith(prefixPath)) {
                    continue;
                }
                String childPathPart = parsedURI.getPath().substring(prefixPath.length(), parsedURI.getPath().length());
                if (childPathPart.startsWith("../")) {
                    continue;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. cmd/main.go

    		commandsTree.Insert(command.Name)
    	}
    
    	findClosestCommands := func(command string) []string {
    		var closestCommands []string
    		closestCommands = append(closestCommands, commandsTree.PrefixMatch(command)...)
    
    		sort.Strings(closestCommands)
    		// Suggest other close commands - allow missed, wrongly added and
    		// even transposed characters
    		for _, value := range commandsTree.Walk(commandsTree.Root()) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top