...

Package experiment

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

Overview ▾

func Register

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

Register experiments RouterGroup.

type Service

Service defines a handler service for experiments.

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

func Bootstrap

func Bootstrap(archive core.ExperimentStore,
    event core.EventStore,
    config *config.ChaosDashboardConfig,
    scheme *runtime.Scheme,
    log logr.Logger) *Service

func NewService

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