- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for msgPath (0.17 sec)
-
internal/config/dns/dns_path.go
package dns import ( "path" "strings" "github.com/miekg/dns" ) // msgPath converts a domainname to an etcd path. If s looks like service.staging.skydns.local., // the resulting key will be /skydns/local/skydns/staging/service . func msgPath(s, prefix string) string { l := dns.SplitDomainName(s) for i, j := 0, len(l)-1; i < j; i, j = i+1, j-1 { l[i], l[j] = l[j], l[i] }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 1.9K bytes - Viewed (0) -
internal/config/dns/etcd_dns.go
} // List - Retrieves list of DNS entries for the domain. func (c *CoreDNS) List() (map[string][]SrvRecord, error) { srvRecords := map[string][]SrvRecord{} for _, domainName := range c.domainNames { key := msgPath(fmt.Sprintf("%s.", domainName), c.prefixPath) records, err := c.list(key+etcdPathSeparator, true) if err != nil { return srvRecords, err } for _, record := range records { if record.Key == "" {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 8K bytes - Viewed (0) -
internal/config/dns/etcd_dns_test.go
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"} { result := msgPath("service.staging.skydns.local.", path) if result != etcdPathSeparator+path+"/local/skydns/staging/service" { t.Errorf("Failure to get domain's path with prefix: %s", result) } } }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 2.1K bytes - Viewed (0)