// Translates the passed runtime object port mappings into ports that target the passed pod.
Translates the passed runtime object port mappings into ports that target the passed pod.
// Translates the passed runtime object port mappings into ports that target the passed pod .
func (c Client) translatePorts(obj interface{}, pod *corev1.Pod, port string) (string, error) {
	switch t := obj.(type) {
	case *corev1.Service:
		return translateServicePortToTargetPort(port, *t, *pod)
	default:
		return convertPodNamedPortToNumber(port, *pod)
	}
}
func ( c Client ) translatePorts ( obj interface { } , pod * corev1 . Pod , port string ) ( string , error ) { switch t := obj . ( type ) { case * corev1 . Service : return translateServicePortToTargetPort ( port , * t , * pod ) default : return convertPodNamedPortToNumber ( port , * pod ) } }
Translates the passed runtime object port mappings into ports that target the passed pod.
Translates the passed runtime object port mappings into ports that target the passed pod .