Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ancestor (0.26 sec)

  1. cmd/metrics-v3-types.go

    	s := strings.TrimPrefix(string(cp), "/")
    	s = strings.ReplaceAll(s, "/", "_")
    	s = strings.ReplaceAll(s, "-", "_")
    	return "minio_" + s
    }
    
    // isDescendantOf returns true if it is a descendant of (or the same as)
    // `ancestor`.
    //
    // For example:
    //
    //	 	/a, /a/b, /a/b/c are all descendants of /a.
    //		/abc or /abd/a are not descendants of /ab.
    func (cp collectorPath) isDescendantOf(arg string) bool {
    	descendant := string(cp)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  2. internal/config/identity/ldap/ldap.go

    	pdn, _ := ldap.ParseDN(validatedDN)
    
    	// Check that the DN is under a configured base DN in the LDAP
    	// directory.
    	for _, baseDN := range baseDNList {
    		if baseDN.Parsed.AncestorOf(pdn) {
    			return validatedDN, true, nil
    		}
    	}
    
    	// Not under any configured base DN so return false.
    	return validatedDN, false, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top