- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for dnsJoin (0.13 sec)
-
internal/config/dns/dns_path.go
l[i], l[j] = l[j], l[i] } return path.Join(append([]string{etcdPathSeparator + prefix + etcdPathSeparator}, l...)...) } // dnsJoin joins labels to form a fully qualified domain name. If the last label is // the root label it is ignored. Not other syntax checks are performed. func dnsJoin(labels ...string) string { ll := len(labels) if labels[ll-1] == "." { return strings.Join(labels[:ll-1], ".") + "." }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 1.9K bytes - Viewed (0) -
internal/config/dns/etcd_dns_test.go
{[]string{"example", "."}, "example."}, {[]string{"example", "org."}, "example.org."}, // technically we should not be called like this. {[]string{"."}, "."}, } for i, tc := range tests { if x := dnsJoin(tc.in...); x != tc.out { t.Errorf("Test %d, expected %s, got %s", i, tc.out, x) } } } func TestPath(t *testing.T) { for _, path := range []string{"mydns", "skydns"} {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 2.1K bytes - Viewed (0)