DetachedKey returns an instance key whose hostname is detached: invalid, but recoverable
()
| 104 | |
| 105 | // DetachedKey returns an instance key whose hostname is detached: invalid, but recoverable |
| 106 | func (ik *InstanceKey) DetachedKey() *InstanceKey { |
| 107 | if ik.IsDetached() { |
| 108 | return ik |
| 109 | } |
| 110 | return &InstanceKey{Hostname: fmt.Sprintf("%s%s", detachHint, ik.Hostname), Port: ik.Port} |
| 111 | } |
| 112 | |
| 113 | // ReattachedKey returns an instance key whose hostname is detached: invalid, but recoverable |
| 114 | func (ik *InstanceKey) ReattachedKey() *InstanceKey { |
nothing calls this directly
no test coverage detected