From 52280de40355d5be16719473b786165eda20f7fe Mon Sep 17 00:00:00 2001 From: lokichoggio Date: Fri, 24 Jun 2022 09:50:02 +0800 Subject: [PATCH] fix comments in pkg/proxy/types.go --- pkg/proxy/types.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/proxy/types.go b/pkg/proxy/types.go index 7b16cd7b598..956447dc808 100644 --- a/pkg/proxy/types.go +++ b/pkg/proxy/types.go @@ -63,25 +63,25 @@ func fmtPortName(in string) string { type ServicePort interface { // String returns service string. An example format can be: `IP:Port/Protocol`. String() string - // GetClusterIP returns service cluster IP in net.IP format. + // ClusterIP returns service cluster IP in net.IP format. ClusterIP() net.IP - // GetPort returns service port if present. If return 0 means not present. + // Port returns service port if present. If return 0 means not present. Port() int - // GetSessionAffinityType returns service session affinity type + // SessionAffinityType returns service session affinity type SessionAffinityType() v1.ServiceAffinity - // GetStickyMaxAgeSeconds returns service max connection age + // StickyMaxAgeSeconds returns service max connection age StickyMaxAgeSeconds() int // ExternalIPStrings returns service ExternalIPs as a string array. ExternalIPStrings() []string // LoadBalancerIPStrings returns service LoadBalancerIPs as a string array. LoadBalancerIPStrings() []string - // GetProtocol returns service protocol. + // Protocol returns service protocol. Protocol() v1.Protocol // LoadBalancerSourceRanges returns service LoadBalancerSourceRanges if present empty array if not LoadBalancerSourceRanges() []string - // GetHealthCheckNodePort returns service health check node port if present. If return 0, it means not present. + // HealthCheckNodePort returns service health check node port if present. If return 0, it means not present. HealthCheckNodePort() int - // GetNodePort returns a service Node port if present. If return 0, it means not present. + // NodePort returns a service Node port if present. If return 0, it means not present. NodePort() int // ExternalPolicyLocal returns if a service has only node local endpoints for external traffic. ExternalPolicyLocal() bool @@ -119,12 +119,12 @@ type Endpoint interface { // This is only set when watching EndpointSlices. If using Endpoints, this is always // true since only ready endpoints are read from Endpoints. IsServing() bool - // IsTerminating retruns true if an endpoint is terminating. For pods, + // IsTerminating returns true if an endpoint is terminating. For pods, // that is any pod with a deletion timestamp. // This is only set when watching EndpointSlices. If using Endpoints, this is always // false since terminating endpoints are always excluded from Endpoints. IsTerminating() bool - // GetZoneHint returns the zone hint for the endpoint. This is based on + // GetZoneHints returns the zone hint for the endpoint. This is based on // endpoint.hints.forZones[0].name in the EndpointSlice API. GetZoneHints() sets.String // IP returns IP part of the endpoint.