Skip to content

Commit ef0713a

Browse files
authored
chore!: prune deprecated client workflow methods (#763)
Signed-off-by: Mike Nguyen <[email protected]>
1 parent 682f932 commit ef0713a

File tree

8 files changed

+5
-739
lines changed

8 files changed

+5
-739
lines changed

client/client.go

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -229,41 +229,6 @@ type Client interface {
229229
// ImplActorClientStub is to impl user defined actor client stub
230230
ImplActorClientStub(actorClientStub actor.Client, opt ...config.Option)
231231

232-
// StartWorkflowBeta1 starts a workflow.
233-
// Deprecated: Please use the workflow client (github.com/dapr/go-sdk/workflow).
234-
// These methods for managing workflows are no longer supported and will be removed in the 1.16 release.
235-
StartWorkflowBeta1(ctx context.Context, req *StartWorkflowRequest) (*StartWorkflowResponse, error)
236-
237-
// GetWorkflowBeta1 gets a workflow.
238-
// Deprecated: Please use the workflow client (github.com/dapr/go-sdk/workflow).
239-
// These methods for managing workflows are no longer supported and will be removed in the 1.16 release.
240-
GetWorkflowBeta1(ctx context.Context, req *GetWorkflowRequest) (*GetWorkflowResponse, error)
241-
242-
// PurgeWorkflowBeta1 purges a workflow.
243-
// Deprecated: Please use the workflow client (github.com/dapr/go-sdk/workflow).
244-
// These methods for managing workflows are no longer supported and will be removed in the 1.16 release.
245-
PurgeWorkflowBeta1(ctx context.Context, req *PurgeWorkflowRequest) error
246-
247-
// TerminateWorkflowBeta1 terminates a workflow.
248-
// Deprecated: Please use the workflow client (github.com/dapr/go-sdk/workflow).
249-
// These methods for managing workflows are no longer supported and will be removed in the 1.16 release.
250-
TerminateWorkflowBeta1(ctx context.Context, req *TerminateWorkflowRequest) error
251-
252-
// PauseWorkflowBeta1 pauses a workflow.
253-
// Deprecated: Please use the workflow client (github.com/dapr/go-sdk/workflow).
254-
// These methods for managing workflows are no longer supported and will be removed in the 1.16 release.
255-
PauseWorkflowBeta1(ctx context.Context, req *PauseWorkflowRequest) error
256-
257-
// ResumeWorkflowBeta1 resumes a workflow.
258-
// Deprecated: Please use the workflow client (github.com/dapr/go-sdk/workflow).
259-
// These methods for managing workflows are no longer supported and will be removed in the 1.16 release.
260-
ResumeWorkflowBeta1(ctx context.Context, req *ResumeWorkflowRequest) error
261-
262-
// RaiseEventWorkflowBeta1 raises an event for a workflow.
263-
// Deprecated: Please use the workflow client (github.com/dapr/go-sdk/workflow).
264-
// These methods for managing workflows are no longer supported and will be removed in the 1.16 release.
265-
RaiseEventWorkflowBeta1(ctx context.Context, req *RaiseEventWorkflowRequest) error
266-
267232
// ScheduleJobAlpha1 creates and schedules a job.
268233
ScheduleJobAlpha1(ctx context.Context, req *Job) error
269234

client/client_test.go

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -502,62 +502,6 @@ func (s *testDaprServer) UnsubscribeConfiguration(ctx context.Context, in *pb.Un
502502
return &pb.UnsubscribeConfigurationResponse{Ok: true}, nil
503503
}
504504

505-
func (s *testDaprServer) StartWorkflowBeta1(ctx context.Context, in *pb.StartWorkflowRequest) (*pb.StartWorkflowResponse, error) {
506-
if in.GetInstanceId() == testWorkflowFailureID {
507-
return nil, errors.New("test failure")
508-
}
509-
return &pb.StartWorkflowResponse{
510-
InstanceId: in.GetInstanceId(),
511-
}, nil
512-
}
513-
514-
func (s *testDaprServer) GetWorkflowBeta1(ctx context.Context, in *pb.GetWorkflowRequest) (*pb.GetWorkflowResponse, error) {
515-
if in.GetInstanceId() == testWorkflowFailureID {
516-
return nil, errors.New("test failure")
517-
}
518-
return &pb.GetWorkflowResponse{
519-
InstanceId: in.GetInstanceId(),
520-
WorkflowName: "TestWorkflowName",
521-
RuntimeStatus: "Running",
522-
Properties: make(map[string]string),
523-
}, nil
524-
}
525-
526-
func (s *testDaprServer) PurgeWorkflowBeta1(ctx context.Context, in *pb.PurgeWorkflowRequest) (*emptypb.Empty, error) {
527-
if in.GetInstanceId() == testWorkflowFailureID {
528-
return nil, errors.New("test failure")
529-
}
530-
return &emptypb.Empty{}, nil
531-
}
532-
533-
func (s *testDaprServer) TerminateWorkflowBeta1(ctx context.Context, in *pb.TerminateWorkflowRequest) (*emptypb.Empty, error) {
534-
if in.GetInstanceId() == testWorkflowFailureID {
535-
return nil, errors.New("test failure")
536-
}
537-
return &emptypb.Empty{}, nil
538-
}
539-
540-
func (s *testDaprServer) PauseWorkflowBeta1(ctx context.Context, in *pb.PauseWorkflowRequest) (*emptypb.Empty, error) {
541-
if in.GetInstanceId() == testWorkflowFailureID {
542-
return nil, errors.New("test failure")
543-
}
544-
return &emptypb.Empty{}, nil
545-
}
546-
547-
func (s *testDaprServer) ResumeWorkflowBeta1(ctx context.Context, in *pb.ResumeWorkflowRequest) (*emptypb.Empty, error) {
548-
if in.GetInstanceId() == testWorkflowFailureID {
549-
return nil, errors.New("test failure")
550-
}
551-
return &emptypb.Empty{}, nil
552-
}
553-
554-
func (s *testDaprServer) RaiseEventWorkflowBeta1(ctx context.Context, in *pb.RaiseEventWorkflowRequest) (*emptypb.Empty, error) {
555-
if in.GetInstanceId() == testWorkflowFailureID {
556-
return nil, errors.New("test failure")
557-
}
558-
return &emptypb.Empty{}, nil
559-
}
560-
561505
func (s *testDaprServer) ScheduleJobAlpha1(ctx context.Context, in *pb.ScheduleJobRequest) (*pb.ScheduleJobResponse, error) {
562506
return &pb.ScheduleJobResponse{}, nil
563507
}

client/workflow.go

Lines changed: 0 additions & 268 deletions
This file was deleted.

0 commit comments

Comments
 (0)