Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for msgPath (0.21 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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 == "" {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 8K bytes
    - Click Count (0)
  2. 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)
    		}
    	}
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 28 17:31:12 GMT 2025
    - 2.7K bytes
    - Click Count (0)
Back to Top