Plugin/Kubernetes: Service and Endpoint Indexing (#1149)
* indexing * corrections
This commit is contained in:
parent
0c63248a0e
commit
b6b05eae8f
10 changed files with 501 additions and 26 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue