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.
Click to show internal directories.
Click to hide internal directories.