experiment

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *gin.RouterGroup, s *Service)

Register mounts HTTP handler on the mux.

Types

type Base added in v1.1.0

type Base struct {
	Kind      string `json:"kind"`
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

Base represents the base info of an experiment.

type ChaosState

type ChaosState struct {
	Running  int `json:"Running"`
	Waiting  int `json:"Waiting"`
	Paused   int `json:"Paused"`
	Failed   int `json:"Failed"`
	Finished int `json:"Finished"`
}

ChaosState defines the number of chaos experiments of each phase

type Detail added in v1.1.0

type Detail struct {
	Experiment
	YAML core.ExperimentYAMLDescription `json:"yaml"`
}

Detail represents an experiment instance.

type Experiment

type Experiment struct {
	Base
	UID           string `json:"uid"`
	Created       string `json:"created"`
	Status        string `json:"status"`
	FailedMessage string `json:"failed_message,omitempty"`
}

Experiment defines the basic information of an experiment

type Service

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

Service defines a handler service for experiments.

func NewService

func NewService(
	archive core.ExperimentStore,
	event core.EventStore,
	conf *config.ChaosDashboardConfig,
	scheme *runtime.Scheme,
) *Service

NewService returns an experiment service instance.

type StatusResponse added in v1.0.2

type StatusResponse struct {
	Status string `json:"status"`
}

StatusResponse defines a common status struct.

Jump to

Keyboard shortcuts

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