Skip to content

Commit

Permalink
Create demo- chaos_workflow.go
Browse files Browse the repository at this point in the history
  • Loading branch information
prajak002 authored May 22, 2023
1 parent 727edcb commit 03ba5db
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions litmus-portal/graphql-server/pkg/demo- chaos_workflow.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

package workflow

type WorkflowClient interface {
CreateWorkflow() error
GetWorkflowByID(id string) (*Workflow, error)
// Other methods...
}

type ExperimentClient interface {
CreateExperiment() error
GetExperimentByID(id string) (*Experiment, error)
// Other methods...
}

type WorkflowTemplateClient interface {
CreateTemplate() error
GetTemplateByID(id string) (*WorkflowTemplate, error)
// Other methods...
}

type ChaosWorkflow struct {
WorkflowClient
ExperimentClient
WorkflowTemplateClient
// Other fields...
}

// Other struct definitions and implementations...

0 comments on commit 03ba5db

Please sign in to comment.