Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobFunnel ¶
type JobFunnel interface { BeginTest(testID m.TestID, testType string) error StopTest(testID m.TestID) error // contains filtered or unexported methods }
JobFunnel is used to interface with the Scheduler while keeping track of ongoing Tests
func NewJobFunnel ¶
func NewJobFunnel(scheduler *s.Scheduler, cm *cm.ChaosManager) JobFunnel
NewJobFunnel creates a new JobFunnel
type JobFunnelImpl ¶
type JobFunnelImpl struct {
// contains filtered or unexported fields
}
func (*JobFunnelImpl) BeginTest ¶
func (jf *JobFunnelImpl) BeginTest(testID m.TestID, testType string) error
BeginTest creates a TestInstance for the Test with the specified TestID if another instance of the same Test is not already ongoing
func (*JobFunnelImpl) RunChaosSimulation ¶
func (jf *JobFunnelImpl) RunChaosSimulation(testID m.TestID, chaosInstances []m.ChaosInstance, testDuration uint64) map[m.ChaosID]m.ChaosResult
type ScheduleManager ¶
type ScheduleManager interface { Add(schedule *m.TestSchedule, store bool) error Remove(id m.TestScheduleID) error ValidateSpec(spec string) error }
func NewScheduleManager ¶
func NewScheduleManager(jf JobFunnel) ScheduleManager
type ScheduleManagerImpl ¶
type ScheduleManagerImpl struct {
// contains filtered or unexported fields
}
func (*ScheduleManagerImpl) Add ¶
func (sm *ScheduleManagerImpl) Add(schedule *m.TestSchedule, store bool) error
func (*ScheduleManagerImpl) Remove ¶
func (sm *ScheduleManagerImpl) Remove(id m.TestScheduleID) error
func (*ScheduleManagerImpl) ValidateSpec ¶
func (sm *ScheduleManagerImpl) ValidateSpec(spec string) error
type TestingJobFunnel ¶
type TestingScheduleManager ¶
type TestingScheduleManager struct { Added []m.TestScheduleID Removed []m.TestScheduleID }
func (*TestingScheduleManager) Add ¶
func (sm *TestingScheduleManager) Add( schedule *m.TestSchedule, store bool, ) error
func (*TestingScheduleManager) Remove ¶
func (sm *TestingScheduleManager) Remove( id m.TestScheduleID, ) error
func (*TestingScheduleManager) ValidateSpec ¶
func (sm *TestingScheduleManager) ValidateSpec( spec string, ) error
Click to show internal directories.
Click to hide internal directories.