@@ -30,8 +30,8 @@ type Addressable interface {
3030 GetNamespacedName () types.NamespacedName
3131}
3232
33- // PodInfo represents the relevant Kubernetes Pod state of an inference server.
34- type PodInfo struct {
33+ // EndpointMetadata represents the relevant Kubernetes Pod state of an inference server.
34+ type EndpointMetadata struct {
3535 NamespacedName types.NamespacedName
3636 PodName string
3737 Address string
@@ -40,16 +40,16 @@ type PodInfo struct {
4040 Labels map [string ]string
4141}
4242
43- // String returns a string representation of the pod .
44- func (p * PodInfo ) String () string {
45- if p == nil {
43+ // String returns a string representation of the endpoint .
44+ func (e * EndpointMetadata ) String () string {
45+ if e == nil {
4646 return ""
4747 }
48- return fmt .Sprintf ("%+v" , * p )
48+ return fmt .Sprintf ("%+v" , * e )
4949}
5050
5151// Clone returns a full copy of the object.
52- func (p * PodInfo ) Clone () * PodInfo {
52+ func (p * EndpointMetadata ) Clone () * EndpointMetadata {
5353 if p == nil {
5454 return nil
5555 }
@@ -58,7 +58,7 @@ func (p *PodInfo) Clone() *PodInfo {
5858 for key , value := range p .Labels {
5959 clonedLabels [key ] = value
6060 }
61- return & PodInfo {
61+ return & EndpointMetadata {
6262 NamespacedName : types.NamespacedName {
6363 Name : p .NamespacedName .Name ,
6464 Namespace : p .NamespacedName .Namespace ,
@@ -71,22 +71,22 @@ func (p *PodInfo) Clone() *PodInfo {
7171 }
7272}
7373
74- // GetNamespacedName gets the namespace name of the Pod .
75- func (p * PodInfo ) GetNamespacedName () types.NamespacedName {
76- return p .NamespacedName
74+ // GetNamespacedName gets the namespace name of the Endpoint .
75+ func (e * EndpointMetadata ) GetNamespacedName () types.NamespacedName {
76+ return e .NamespacedName
7777}
7878
79- // GetIPAddress returns the Pod 's IP address.
80- func (p * PodInfo ) GetIPAddress () string {
81- return p .Address
79+ // GetIPAddress returns the Endpoint 's IP address.
80+ func (e * EndpointMetadata ) GetIPAddress () string {
81+ return e .Address
8282}
8383
84- // GetPort returns the Pod 's inference port.
85- func (p * PodInfo ) GetPort () string {
86- return p .Port
84+ // GetPort returns the Endpoint 's inference port.
85+ func (e * EndpointMetadata ) GetPort () string {
86+ return e .Port
8787}
8888
89- // GetMetricsHost returns the pod 's metrics host (ip:port)
90- func (p * PodInfo ) GetMetricsHost () string {
91- return p .MetricsHost
89+ // GetMetricsHost returns the Endpoint 's metrics host (ip:port)
90+ func (e * EndpointMetadata ) GetMetricsHost () string {
91+ return e .MetricsHost
9292}
0 commit comments