(resource *schema.Resource)
| 150 | } |
| 151 | |
| 152 | func (tl *transactionEventLogger) Resync(resource *schema.Resource) error { |
| 153 | if !resource.Schema().StateVersioning() { |
| 154 | return tl.logEvent(context.Background(), "update", resource, 0) |
| 155 | } |
| 156 | state, err := tl.StateFetch(resource.Schema(), transaction.IDFilter(resource.ID())) |
| 157 | if err != nil { |
| 158 | return err |
| 159 | } |
| 160 | return tl.logEvent(context.Background(), "update", resource, state.ConfigVersion) |
| 161 | } |
| 162 | |
| 163 | func (tl *transactionEventLogger) Delete(s *schema.Schema, resourceID interface{}) error { |
| 164 | return tl.DeleteContext(context.Background(), s, resourceID) |
no test coverage detected