(ctx context.Context, operation string, workspaceID string)
| 268 | } |
| 269 | |
| 270 | func (r *Resolver) notifyChangeHook(ctx context.Context, operation string, workspaceID string) error { |
| 271 | if r == nil || r.changeHook == nil { |
| 272 | return nil |
| 273 | } |
| 274 | if err := r.changeHook(ctx); err != nil { |
| 275 | return fmt.Errorf("workspace: %s workspace %q change hook: %w", operation, workspaceID, err) |
| 276 | } |
| 277 | return nil |
| 278 | } |
| 279 | |
| 280 | func (r *Resolver) buildResolvedWorkspace( |
| 281 | ctx context.Context, |
no outgoing calls
no test coverage detected