File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ type StateStoreServer interface {
2727
2828 // DeleteState instructs a given state store to delete a specific state (i.e. a CE workspace)
2929 DeleteState (context.Context , * DeleteStateRequest ) (* DeleteStateResponse , error )
30+
31+ // LockState instructs a given state store to lock a specific state (i.e. a CE workspace)
32+ LockState (context.Context , * LockStateRequest ) (* LockStateResponse , error )
33+
34+ // UnlockState instructs a given state store to unlock a specific state (i.e. a CE workspace)
35+ UnlockState (context.Context , * UnlockStateRequest ) (* UnlockStateResponse , error )
3036}
3137
3238type ValidateStateStoreRequest struct {
@@ -123,3 +129,24 @@ type DeleteStateRequest struct {
123129type DeleteStateResponse struct {
124130 Diagnostics []* Diagnostic
125131}
132+
133+ type LockStateRequest struct {
134+ TypeName string
135+ StateId string
136+ Operation string
137+ }
138+
139+ type LockStateResponse struct {
140+ LockId string
141+ Diagnostics []* Diagnostic
142+ }
143+
144+ type UnlockStateRequest struct {
145+ TypeName string
146+ StateId string
147+ LockId string
148+ }
149+
150+ type UnlockStateResponse struct {
151+ Diagnostics []* Diagnostic
152+ }
You can’t perform that action at this time.
0 commit comments