endpoint/provider: reword comments for types
Rewords a few comments in the endpoint.Provider interface for clarity.
@@ -7,7 +7,7 @@ import (
"github.com/openservicemesh/osm/pkg/service"
)
-// Provider is an interface to be implemented by components abstracting Kubernetes, Azure, and other compute/cluster providers
+// Provider is an interface to be implemented by components abstracting Kubernetes, and other compute/cluster providers
type Provider interface {
// Retrieve the IP addresses comprising the given service.
ListEndpointsForService(service.MeshService) []Endpoint
@@ -22,7 +22,7 @@ type Provider interface {
GetAnnouncementsChannel() <-chan interface{}
}
-// Endpoint is a tuple of IP and Port, representing an Envoy proxy, fronting an instance of a service
+// Endpoint is a tuple of IP and Port representing an instance of a service
type Endpoint struct {
net.IP `json:"ip"`
Port `json:"port"`
@@ -32,5 +32,5 @@ func (ep Endpoint) String() string {
return fmt.Sprintf("(ip=%s, port=%d)", ep.IP, ep.Port)
}
-// Port is a numerical port of an Envoy proxy
+// Port is a numerical type representing a port on which a service is exposed
type Port uint32
