Documentation
¶
Index ¶
- type MockService
- type WorkflowsV1
- func (s *WorkflowsV1) CreateWorkflow(ctx context.Context, req *pb.CreateWorkflowRequest) (*longrunningpb.Operation, error)
- func (s *WorkflowsV1) DeleteWorkflow(ctx context.Context, req *pb.DeleteWorkflowRequest) (*longrunningpb.Operation, error)
- func (s *WorkflowsV1) GetWorkflow(ctx context.Context, req *pb.GetWorkflowRequest) (*pb.Workflow, error)
- func (s *WorkflowsV1) UpdateWorkflow(ctx context.Context, req *pb.UpdateWorkflowRequest) (*longrunningpb.Operation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct { *common.MockEnvironment // contains filtered or unexported fields }
MockService represents a mocked workflows service.
func New ¶
func New(env *common.MockEnvironment, storage storage.Storage) *MockService
New creates a MockService.
func (*MockService) ExpectedHosts ¶
func (s *MockService) ExpectedHosts() []string
func (*MockService) NewHTTPMux ¶
func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error)
func (*MockService) Register ¶
func (s *MockService) Register(grpcServer *grpc.Server)
type WorkflowsV1 ¶
type WorkflowsV1 struct { *MockService pb.UnimplementedWorkflowsServer }
func (*WorkflowsV1) CreateWorkflow ¶
func (s *WorkflowsV1) CreateWorkflow(ctx context.Context, req *pb.CreateWorkflowRequest) (*longrunningpb.Operation, error)
func (*WorkflowsV1) DeleteWorkflow ¶
func (s *WorkflowsV1) DeleteWorkflow(ctx context.Context, req *pb.DeleteWorkflowRequest) (*longrunningpb.Operation, error)
func (*WorkflowsV1) GetWorkflow ¶
func (s *WorkflowsV1) GetWorkflow(ctx context.Context, req *pb.GetWorkflowRequest) (*pb.Workflow, error)
func (*WorkflowsV1) UpdateWorkflow ¶
func (s *WorkflowsV1) UpdateWorkflow(ctx context.Context, req *pb.UpdateWorkflowRequest) (*longrunningpb.Operation, error)
Click to show internal directories.
Click to hide internal directories.