- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for msgUnPath (0.03 sec)
-
internal/config/dns/etcd_dns_test.go
} } } func TestUnPath(t *testing.T) { result1 := msgUnPath("/skydns/local/cluster/staging/service/") if result1 != "service.staging.cluster.local.skydns" { t.Errorf("Failure to get domain from etcd key (with a trailing '/'), expect: 'service.staging.cluster.local.', actually get: '%s'", result1) } result2 := msgUnPath("/skydns/local/cluster/staging/service") if result2 != "service.staging.cluster.local.skydns" {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 28 17:31:12 UTC 2025 - 2.7K bytes - Viewed (0) -
internal/config/dns/dns_path.go
return "" } ll := len(labels) if labels[ll-1] == "." { return strings.Join(labels[:ll-1], ".") + "." } return dns.Fqdn(strings.Join(labels, ".")) } // msgUnPath converts a etcd path to domainName. func msgUnPath(s string) string { ks := strings.Split(strings.Trim(s, etcdPathSeparator), etcdPathSeparator) for i, j := 0, len(ks)-1; i < j; i, j = i+1, j-1 { ks[i], ks[j] = ks[j], ks[i] }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 28 17:31:12 UTC 2025 - 1.9K bytes - Viewed (0)