...

Package schedule

import "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver/schedule"
Overview
Index

Overview ▾

func Register

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

Register schedules RouterGroup.

type Detail

Detail adds KubeObjectDesc on Schedule.

type Detail struct {
    Schedule
    ExperimentUIDs []string            `json:"experiment_uids"`
    KubeObject     core.KubeObjectDesc `json:"kube_object"`
}

type Schedule

Schedule defines the information of a schedule.

type Schedule struct {
    core.ObjectBase
    Status status.ScheduleStatus `json:"status"`
}

type Service

Service defines a handler service for schedules.

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

func NewService

func NewService(
    schedule core.ScheduleStore,
    event core.EventStore,
    config *config.ChaosDashboardConfig,
    scheme *runtime.Scheme,
) *Service