| 213 | } |
| 214 | |
| 215 | type dynamicRenderer struct { |
| 216 | db database.Store |
| 217 | data *loader |
| 218 | templateFS fs.FS |
| 219 | |
| 220 | ownerErrors map[uuid.UUID]error |
| 221 | currentOwner *previewtypes.WorkspaceOwner |
| 222 | tfvarValues map[string]cty.Value |
| 223 | |
| 224 | once sync.Once |
| 225 | close func() |
| 226 | } |
| 227 | |
| 228 | func (r *dynamicRenderer) Render(ctx context.Context, ownerID uuid.UUID, values map[string]string) (*preview.Output, hcl.Diagnostics) { |
| 229 | // Always start with the cached error, if we have one. |
nothing calls this directly
no outgoing calls
no test coverage detected