handler

package
v0.0.0-...-bcdb799 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChaosExperimentRunHandler

type ChaosExperimentRunHandler struct {
	// contains filtered or unexported fields
}

ChaosExperimentRunHandler is the handler for chaos experiment

func NewChaosExperimentRunHandler

func NewChaosExperimentRunHandler(
	chaosExperimentRunService types.Service,
	infrastructureService chaos_infrastructure.Service,
	gitOpsService gitops.Service,
	chaosExperimentOperator *dbChaosExperiment.Operator,
	chaosExperimentRunOperator *dbChaosExperimentRun.Operator,
	mongodbOperator mongodb.MongoOperator,
) *ChaosExperimentRunHandler

NewChaosExperimentRunHandler returns a new instance of ChaosWorkflowHandler

func (*ChaosExperimentRunHandler) ChaosExperimentRunEvent

func (c *ChaosExperimentRunHandler) ChaosExperimentRunEvent(event model.ExperimentRunRequest) (string, error)

func (*ChaosExperimentRunHandler) GetExperimentRun

func (c *ChaosExperimentRunHandler) GetExperimentRun(ctx context.Context, projectID string, experimentRunID *string, notifyID *string) (*model.ExperimentRun, error)

GetExperimentRun returns details of a requested experiment run

func (*ChaosExperimentRunHandler) GetExperimentRunStats

func (c *ChaosExperimentRunHandler) GetExperimentRunStats(ctx context.Context, projectID string) (*model.GetExperimentRunStatsResponse, error)

func (*ChaosExperimentRunHandler) ListExperimentRun

ListExperimentRun returns all the workflow runs for matching identifiers from the DB

func (*ChaosExperimentRunHandler) RunChaosWorkFlow

RunChaosWorkFlow sends workflow run request(single run workflow only) to chaos_infra on workflow re-run request

func (*ChaosExperimentRunHandler) RunCronExperiment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL