Documentation ¶
Index ¶
- func CreateTest(runID uint64, descriptor types.TestDescriptor, logger logrus.FieldLogger, ...) (types.Test, error)
- func LoadExternalTestConfig(ctx context.Context, globalVars types.Variables, ...) (*types.TestConfig, types.Variables, error)
- func LoadTestDescriptors(ctx context.Context, globalVars types.Variables, ...) []types.TestDescriptor
- type Descriptor
- type Metrics
- type Test
- func (t *Test) AbortTest(skipCleanup bool)
- func (t *Test) GetTaskScheduler() types.TaskScheduler
- func (t *Test) GetTestVariables() types.Variables
- func (t *Test) Logger() logrus.FieldLogger
- func (t *Test) Name() string
- func (t *Test) Percent() float64
- func (t *Test) Run(ctx context.Context) error
- func (t *Test) RunID() uint64
- func (t *Test) StartTime() time.Time
- func (t *Test) Status() types.TestStatus
- func (t *Test) StopTime() time.Time
- func (t *Test) TestID() string
- func (t *Test) Timeout() time.Duration
- func (t *Test) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTest ¶
func CreateTest(runID uint64, descriptor types.TestDescriptor, logger logrus.FieldLogger, services types.TaskServices) (types.Test, error)
func LoadExternalTestConfig ¶ added in v0.0.5
func LoadTestDescriptors ¶ added in v0.0.4
func LoadTestDescriptors(ctx context.Context, globalVars types.Variables, localTests []*types.TestConfig, externalTests []*types.ExternalTestConfig) []types.TestDescriptor
Types ¶
type Descriptor ¶ added in v0.0.4
type Descriptor struct {
// contains filtered or unexported fields
}
func NewDescriptor ¶ added in v0.0.5
func NewDescriptor(testID, testSrc string, config *types.TestConfig, variables types.Variables) *Descriptor
func (*Descriptor) Config ¶ added in v0.0.4
func (d *Descriptor) Config() *types.TestConfig
func (*Descriptor) Err ¶ added in v0.0.4
func (d *Descriptor) Err() error
func (*Descriptor) ID ¶ added in v0.0.4
func (d *Descriptor) ID() string
func (*Descriptor) Source ¶ added in v0.0.4
func (d *Descriptor) Source() string
func (*Descriptor) Vars ¶ added in v0.0.6
func (d *Descriptor) Vars() types.Variables
type Metrics ¶
type Metrics struct { TaskInfo *prometheus.GaugeVec TestDuration *prometheus.GaugeVec TestResult *prometheus.GaugeVec CurrentTask *prometheus.GaugeVec TotalTasks *prometheus.GaugeVec TaskDuration *prometheus.GaugeVec TestInfo *prometheus.GaugeVec // contains filtered or unexported fields }
func NewMetrics ¶
NewMetrics returns a new Metrics instance.
func (*Metrics) SetTestDuration ¶
func (*Metrics) SetTestInfo ¶
func (*Metrics) SetTotalTasks ¶
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
func (*Test) GetTaskScheduler ¶
func (t *Test) GetTaskScheduler() types.TaskScheduler
func (*Test) GetTestVariables ¶ added in v0.0.4
func (*Test) Logger ¶
func (t *Test) Logger() logrus.FieldLogger
func (*Test) Status ¶
func (t *Test) Status() types.TestStatus
Click to show internal directories.
Click to hide internal directories.