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

@@ -4,6 +4,8 @@
package remote
import (
"context"
"github.com/opentofu/opentofu/internal/states/statemgr"
)
@@ -13,7 +15,7 @@ import (
type Client interface {
Get() (*Payload, error)
Put([]byte) error
Delete() error
Delete(context.Context) error
}
// ClientForcePusher is an optional interface that allows a remote