Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions api/orchestration.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ type PurgeOptions func(*protos.PurgeInstancesRequest) error

type RerunOptions func(*protos.RerunWorkflowFromEventRequest) error

type ListInstanceIDsOptions func(*protos.ListInstanceIDsRequest) error

type GetInstanceHistoryOptions func(*protos.GetInstanceHistoryRequest) error

// WithInstanceID configures an explicit orchestration instance ID. If not specified,
// a random UUID value will be used for the orchestration instance ID.
func WithInstanceID(id InstanceID) NewOrchestrationOptions {
Expand Down Expand Up @@ -221,3 +225,17 @@ func WithRerunNewInstanceID(id InstanceID) RerunOptions {
return nil
}
}

func WithListInstanceIDsPageSize(pageSize uint32) ListInstanceIDsOptions {
return func(req *protos.ListInstanceIDsRequest) error {
req.PageSize = &pageSize
return nil
}
}

func WithListInstanceIDsContinuationToken(token string) ListInstanceIDsOptions {
return func(req *protos.ListInstanceIDsRequest) error {
req.ContinuationToken = &token
return nil
}
}
97 changes: 57 additions & 40 deletions api/protos/backend_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 75 additions & 1 deletion api/protos/backend_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading