Skip to content

Commit 6b1cf3b

Browse files
committed
Update proto file definition of Read/WriteStateBytes RPCs (#37529)
* Update Read/WriteStateBytes RPCs to match hashicorp/terraform-plugin-go#531 * Run `make protobuf` * Run `make generate` * Update use of `proto.ReadStateBytes_ResponseChunk` in tests * Fix how diagnostics are handled alongside EOF error, update ReadStateBytes test * More fixes - test setup was incorrect I think? I assume that a response would be returned full of zero-values when EOF is encountered.
1 parent 657d7e4 commit 6b1cf3b

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

internal/providers/provider.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -903,34 +903,6 @@ type WriteStateBytesResponse struct {
903903
Diagnostics tfdiags.Diagnostics
904904
}
905905

906-
type ReadStateBytesRequest struct {
907-
// TypeName is the name of the state store to read state from
908-
TypeName string
909-
// StateId is the ID of a state file to read
910-
StateId string
911-
}
912-
913-
type ReadStateBytesResponse struct {
914-
// Bytes represents all received bytes of the given state file
915-
Bytes []byte
916-
// Diagnostics contains any warnings or errors from the method call.
917-
Diagnostics tfdiags.Diagnostics
918-
}
919-
920-
type WriteStateBytesRequest struct {
921-
// TypeName is the name of the state store to write state to
922-
TypeName string
923-
// Bytes represents all bytes of the given state file to write
924-
Bytes []byte
925-
// StateId is the ID of a state file to write
926-
StateId string
927-
}
928-
929-
type WriteStateBytesResponse struct {
930-
// Diagnostics contains any warnings or errors from the method call.
931-
Diagnostics tfdiags.Diagnostics
932-
}
933-
934906
type GetStatesRequest struct {
935907
// TypeName is the name of the state store to request the list of states from
936908
TypeName string

0 commit comments

Comments
 (0)