Skip to content

Commit 384dcb5

Browse files
committed
Update remote package's Client interface to use diagnostics instead of errors
1 parent 2d86ba1 commit 384dcb5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/states/remote/remote.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ package remote
55

66
import (
77
"github.com/hashicorp/terraform/internal/states/statemgr"
8+
"github.com/hashicorp/terraform/internal/tfdiags"
89
)
910

1011
// Client is the interface that must be implemented for a remote state
1112
// driver. It supports dumb put/get/delete, and the higher level structs
1213
// handle persisting the state properly here.
1314
type Client interface {
14-
Get() (*Payload, error)
15-
Put([]byte) error
16-
Delete() error
15+
Get() (*Payload, tfdiags.Diagnostics)
16+
Put([]byte) tfdiags.Diagnostics
17+
Delete() tfdiags.Diagnostics
1718
}
1819

1920
// ClientForcePusher is an optional interface that allows a remote

0 commit comments

Comments
 (0)