Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for msgUnPath (0.04 seconds)

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

  1. internal/config/dns/etcd_dns_test.go

    		}
    	}
    }
    
    func TestUnPath(t *testing.T) {
    	result1 := msgUnPath("/skydns/local/cluster/staging/service/")
    	if result1 != "service.staging.cluster.local.skydns" {
    		t.Errorf("Failure to get domain from etcd key (with a trailing '/'), expect: 'service.staging.cluster.local.', actually get: '%s'", result1)
    	}
    
    	result2 := msgUnPath("/skydns/local/cluster/staging/service")
    	if result2 != "service.staging.cluster.local.skydns" {
    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)
  2. internal/config/dns/etcd_dns.go

    		// /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)
    		srvRecords = append(srvRecords, srvRecord)
    	}
    	sort.Slice(srvRecords, func(i int, j int) bool {
    		return srvRecords[i].Key < srvRecords[j].Key
    	})
    	return srvRecords, nil
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 8K bytes
    - Click Count (0)
Back to Top