Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for skydns (0.06 sec)

  1. internal/config/dns/etcd_dns_test.go

    	}
    }
    
    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)
    		}
    	}
    }
    
    func TestUnPath(t *testing.T) {
    	result1 := msgUnPath("/skydns/local/cluster/staging/service/")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. internal/config/dns/etcd_dns.go

    			return nil, err
    		}
    		srvRecord.Key = strings.TrimPrefix(string(n.Key), key)
    		srvRecord.Key = strings.TrimSuffix(srvRecord.Key, srvRecord.Host)
    
    		// Skip non-bucket entry like for a key
    		// /skydns/net/miniocloud/10.0.0.1 that may exist as
    		// dns entry for the server (rather than the bucket
    		// itself).
    		if srvRecord.Key == "" {
    			continue
    		}
    
    		srvRecord.Key = msgUnPath(srvRecord.Key)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top