()
| 135 | } |
| 136 | |
| 137 | func (pi *portInfo) Label() string { |
| 138 | if pi.devContainer != nil { |
| 139 | portStr := strconv.Itoa(int(pi.Port.PortNumber)) |
| 140 | if attributes, ok := pi.devContainer.PortAttributes[portStr]; ok { |
| 141 | return attributes.Label |
| 142 | } |
| 143 | } |
| 144 | return "" |
| 145 | } |
| 146 | |
| 147 | var portFields = []string{ |
| 148 | "sourcePort", |
no outgoing calls
no test coverage detected