ReattachedKey returns an instance key whose hostname is detached: invalid, but recoverable
()
| 112 | |
| 113 | // ReattachedKey returns an instance key whose hostname is detached: invalid, but recoverable |
| 114 | func (ik *InstanceKey) ReattachedKey() *InstanceKey { |
| 115 | if !ik.IsDetached() { |
| 116 | return ik |
| 117 | } |
| 118 | return &InstanceKey{Hostname: ik.Hostname[len(detachHint):], Port: ik.Port} |
| 119 | } |
| 120 | |
| 121 | // StringCode returns an official string representation of this key |
| 122 | func (ik *InstanceKey) StringCode() string { |
nothing calls this directly
no test coverage detected