Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SplitDomainName (0.12 sec)

  1. internal/config/dns/dns_path.go

    )
    
    // 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]
    	}
    	return path.Join(append([]string{etcdPathSeparator + prefix + etcdPathSeparator}, l...)...)
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top