mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
lint(revive): fix unused-parameter violations (#7980)
This commit is contained in:
@@ -288,10 +288,10 @@ func (external) EpIndexReverse(string) []*object.Endpoints { return nil }
|
||||
func (external) SvcIndexReverse(string) []*object.Service { return nil }
|
||||
func (external) Modified(kubernetes.ModifiedMode) int64 { return 0 }
|
||||
|
||||
func (external) SvcImportIndex(s string) []*object.ServiceImport { return nil }
|
||||
func (external) ServiceImportList() []*object.ServiceImport { return nil }
|
||||
func (external) McEpIndex(s string) []*object.MultiClusterEndpoints { return nil }
|
||||
func (external) MultiClusterEndpointsList(s string) []*object.MultiClusterEndpoints { return nil }
|
||||
func (external) SvcImportIndex(_s string) []*object.ServiceImport { return nil }
|
||||
func (external) ServiceImportList() []*object.ServiceImport { return nil }
|
||||
func (external) McEpIndex(_s string) []*object.MultiClusterEndpoints { return nil }
|
||||
func (external) MultiClusterEndpointsList(_s string) []*object.MultiClusterEndpoints { return nil }
|
||||
|
||||
func (external) EpIndex(s string) []*object.Endpoints {
|
||||
return epIndexExternal[s]
|
||||
@@ -304,9 +304,9 @@ func (external) EndpointsList() []*object.Endpoints {
|
||||
}
|
||||
return eps
|
||||
}
|
||||
func (external) GetNodeByName(ctx context.Context, name string) (*api.Node, error) { return nil, nil }
|
||||
func (external) SvcIndex(s string) []*object.Service { return svcIndexExternal[s] }
|
||||
func (external) PodIndex(string) []*object.Pod { return nil }
|
||||
func (external) GetNodeByName(_ctx context.Context, _name string) (*api.Node, error) { return nil, nil }
|
||||
func (external) SvcIndex(s string) []*object.Service { return svcIndexExternal[s] }
|
||||
func (external) PodIndex(string) []*object.Pod { return nil }
|
||||
|
||||
func (external) SvcExtIndexReverse(ip string) (result []*object.Service) {
|
||||
for _, svcs := range svcIndexExternal {
|
||||
@@ -423,7 +423,7 @@ func (external) ServiceList() []*object.Service {
|
||||
return svcs
|
||||
}
|
||||
|
||||
func externalAddress(state request.Request, headless bool) []dns.RR {
|
||||
func externalAddress(_state request.Request, _headless bool) []dns.RR {
|
||||
a := test.A("example.org. IN A 127.0.0.1")
|
||||
return []dns.RR{a}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user