mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -04:00
chore(lint): bump to v2.5.0 and enable godoclint (#7632)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// Package auto implements a on-the-fly loading file backend.
|
||||
package auto
|
||||
|
||||
import (
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
mcs "sigs.k8s.io/mcs-api/pkg/apis/v1alpha1"
|
||||
)
|
||||
|
||||
// Endpoints is a stripped down api.Endpoints with only the items we need for CoreDNS.
|
||||
// MultiClusterEndpoints is a stripped down api.Endpoints with only the items we need for CoreDNS.
|
||||
type MultiClusterEndpoints struct {
|
||||
Endpoints
|
||||
ClusterId string
|
||||
@@ -18,7 +18,7 @@ type MultiClusterEndpoints struct {
|
||||
// MultiClusterEndpointsKey returns a string using for the index.
|
||||
func MultiClusterEndpointsKey(name, namespace string) string { return name + "." + namespace }
|
||||
|
||||
// EndpointSliceToEndpoints converts a *discovery.EndpointSlice to a *Endpoints.
|
||||
// EndpointSliceToMultiClusterEndpoints converts a *discovery.EndpointSlice to a *Endpoints.
|
||||
func EndpointSliceToMultiClusterEndpoints(obj meta.Object) (meta.Object, error) {
|
||||
labels := maps.Clone(obj.GetLabels())
|
||||
ends, err := EndpointSliceToEndpoints(obj)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Package loadbalance is a plugin for rewriting responses to do "load balancing"
|
||||
// Package loadbalance is a plugin for rewriting responses to do "load balancing".
|
||||
package loadbalance
|
||||
|
||||
import (
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// RoundRobin is a plugin to rewrite responses for "load balancing".
|
||||
// LoadBalance is a plugin to rewrite responses for "load balancing".
|
||||
type LoadBalance struct {
|
||||
Next plugin.Handler
|
||||
shuffle func(*dns.Msg) *dns.Msg
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Package loadbalance shuffles A, AAAA and MX records.
|
||||
package loadbalance
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Package rewrite is a plugin for rewriting requests internally to something different.
|
||||
package rewrite
|
||||
|
||||
import (
|
||||
|
||||
@@ -23,9 +23,9 @@ const (
|
||||
|
||||
// These are defined processing mode.
|
||||
const (
|
||||
// Processing should stop after completing this rule
|
||||
// Stop processing should stop after completing this rule
|
||||
Stop = "stop"
|
||||
// Processing should continue to next rule
|
||||
// Continue processing should continue to next rule
|
||||
Continue = "continue"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Package rewrite is a plugin for rewriting requests internally to something different.
|
||||
package rewrite
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
// Package test contains helper functions for writing plugin tests.
|
||||
package test
|
||||
@@ -14,7 +14,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Package test will scrape a target and you can inspect the variables.
|
||||
// Package test contains helper functions for writing plugin tests.
|
||||
// For example to scrape a target and inspect the variables.
|
||||
// Basic usage:
|
||||
//
|
||||
// result := Scrape("http://localhost:9153/metrics")
|
||||
|
||||
Reference in New Issue
Block a user