func Register(r *gin.RouterGroup, s *Service)
Register schedules RouterGroup.
Detail adds KubeObjectDesc on Schedule.
type Detail struct {
Schedule
ExperimentUIDs []string `json:"experiment_uids"`
KubeObject core.KubeObjectDesc `json:"kube_object"`
}
Schedule defines the information of a schedule.
type Schedule struct {
core.ObjectBase
Status status.ScheduleStatus `json:"status"`
}
Service defines a handler service for schedules.
type Service struct {
// contains filtered or unexported fields
}
func NewService(
schedule core.ScheduleStore,
event core.EventStore,
config *config.ChaosDashboardConfig,
scheme *runtime.Scheme,
) *Service