Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FindStringSubmatch (0.09 sec)

  1. istioctl/pkg/describe/describe.go

    	// nolint: gosimple
    	re := regexp.MustCompile("/apis/networking(\\.istio\\.io)?/v1(?:alpha3)?/namespaces/(?P<namespace>[^/]+)/virtual-service/(?P<name>[^/]+)")
    	ss := re.FindStringSubmatch(path)
    	if ss == nil {
    		return "", "", fmt.Errorf("not a VS path: %s", path)
    	}
    	return ss[3], ss[2], nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  2. cmd/http-tracer.go

    )
    
    var ldapPwdRegex = regexp.MustCompile("(^.*?)LDAPPassword=([^&]*?)(&(.*?))?$")
    
    // redact LDAP password if part of string
    func redactLDAPPwd(s string) string {
    	parts := ldapPwdRegex.FindStringSubmatch(s)
    	if len(parts) > 3 {
    		return parts[1] + "LDAPPassword=*REDACTED*" + parts[3]
    	}
    	return s
    }
    
    // getOpName sanitizes the operation name for mc
    func getOpName(name string) (op string) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. docs/debugging/xl-meta/main.go

    	if blockSize > 0 && blockSize%dataBlocks != 0 {
    		sz++
    	}
    	return
    }
    
    var rePartNum = regexp.MustCompile("/part\\.([0-9]+)/")
    
    func getPartNum(s string) int {
    	if m := rePartNum.FindStringSubmatch(s); len(m) > 1 {
    		n, _ := strconv.Atoi(m[1])
    		return n
    	}
    	return 1
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top