mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Plugin/Kubernetes: Service and Endpoint Indexing (#1149)
* indexing * corrections
This commit is contained in:
committed by
John Belamaric
parent
0c63248a0e
commit
b6b05eae8f
@@ -9,9 +9,13 @@ import (
|
||||
|
||||
type APIConnTest struct{}
|
||||
|
||||
func (APIConnTest) Run() { return }
|
||||
func (APIConnTest) Stop() error { return nil }
|
||||
func (APIConnTest) PodIndex(string) []*api.Pod { return nil }
|
||||
func (APIConnTest) Run() { return }
|
||||
func (APIConnTest) Stop() error { return nil }
|
||||
func (APIConnTest) PodIndex(string) []*api.Pod { return nil }
|
||||
func (APIConnTest) SvcIndex(string) []*api.Service { return nil }
|
||||
func (APIConnTest) SvcIndexReverse(string) []*api.Service { return nil }
|
||||
func (APIConnTest) EpIndex(string) []*api.Endpoints { return nil }
|
||||
func (APIConnTest) EndpointsList() []*api.Endpoints { return nil }
|
||||
|
||||
func (APIConnTest) ServiceList() []*api.Service {
|
||||
svcs := []*api.Service{
|
||||
@@ -28,7 +32,7 @@ func (APIConnTest) ServiceList() []*api.Service {
|
||||
return svcs
|
||||
}
|
||||
|
||||
func (APIConnTest) EndpointsList() []*api.Endpoints {
|
||||
func (APIConnTest) EpIndexReverse(string) []*api.Endpoints {
|
||||
eps := []*api.Endpoints{
|
||||
{
|
||||
Subsets: []api.EndpointSubset{
|
||||
|
||||
Reference in New Issue
Block a user