Make backend.DeleteWorkspace accept a context (#782)

Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
This commit is contained in:
Marcin Wyszynski
2023-10-24 16:55:03 +02:00
committed by GitHub
parent 545e5f0102
commit 925db6dbc5
40 changed files with 127 additions and 104 deletions

View File

@@ -112,7 +112,7 @@ type Backend interface {
// DeleteWorkspace cannot prevent deleting a state that is in use. It is
// the responsibility of the caller to hold a Lock for the state manager
// belonging to this workspace before calling this method.
DeleteWorkspace(name string, force bool) error
DeleteWorkspace(_ context.Context, name string, force bool) error
// States returns a list of the names of all of the workspaces that exist
// in this backend.