ActionsServiceClient is the client API for ActionsService service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
| 30 | // |
| 31 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 32 | type ActionsServiceClient interface { |
| 33 | // Enqueue queues a new action for execution. |
| 34 | Enqueue(ctx context.Context, in *EnqueueRequest, opts ...grpc.CallOption) (*EnqueueResponse, error) |
| 35 | // WatchForUpdates watches for updates to the state of actions. |
| 36 | // This API guarantees at-least-once delivery semantics. |
| 37 | WatchForUpdates(ctx context.Context, in *WatchForUpdatesRequest, opts ...grpc.CallOption) (ActionsService_WatchForUpdatesClient, error) |
| 38 | // Update updates the status of an action and saves serialized NodeStatus. |
| 39 | // This deprecates Put in the current StateService. |
| 40 | Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) |
| 41 | // Abort aborts a single action that was previously queued or is currently being processed by a worker. |
| 42 | // Note that this will cascade aborts to all descendant actions of the specified action. |
| 43 | Abort(ctx context.Context, in *AbortRequest, opts ...grpc.CallOption) (*AbortResponse, error) |
| 44 | // Signal resolves a ConditionAction by providing its signal value. |
| 45 | // On success, transitions the condition to SUCCEEDED with the provided |
| 46 | // value as its output. |
| 47 | // Returns FAILED_PRECONDITION if the action is not a condition or is |
| 48 | // already terminal. Returns NOT_FOUND if the action does not exist. |
| 49 | // Returns ABORTED if the action has a write in-flight (retry). |
| 50 | Signal(ctx context.Context, in *SignalRequest, opts ...grpc.CallOption) (*SignalResponse, error) |
| 51 | } |
| 52 | |
| 53 | type actionsServiceClient struct { |
| 54 | cc grpc.ClientConnInterface |
nothing calls this directly
no outgoing calls
no test coverage detected