CurrentObject returns an [AbsResourceInstanceObject] for this resource instance, using the given [DeposedKey]. It's okay to pass [NotDeposed], but if you'd be passing that as a constant rather than as a calculated value then [AbsResourceInstance.CurrentObject] is a clearer way to communicate that i
(key DeposedKey)
| 42 | // rather than as a calculated value then [AbsResourceInstance.CurrentObject] |
| 43 | // is a clearer way to communicate that idea. |
| 44 | func (ri AbsResourceInstance) Object(key DeposedKey) AbsResourceInstanceObject { |
| 45 | return AbsResourceInstanceObject{ |
| 46 | InstanceAddr: ri, |
| 47 | DeposedKey: key, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // IsCurrent returns true if this represents the "current" object of some |
| 52 | // resource instance. |
no outgoing calls