Documentation ¶
Index ¶
- func CreateTest(coordinator types.Coordinator, config *Config, variables types.Variables) (types.Test, error)
- type Config
- type ExternalConfig
- type Metrics
- type Test
- func (t *Test) GetTaskScheduler() types.TaskScheduler
- 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) StartTime() time.Time
- func (t *Test) Status() types.TestStatus
- func (t *Test) StopTime() time.Time
- func (t *Test) Timeout() time.Duration
- func (t *Test) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTest ¶
Types ¶
type Config ¶
type Config struct { Name string `yaml:"name" json:"name"` Disable bool `yaml:"disable" json:"disable"` Timeout human.Duration `yaml:"timeout" json:"timeout"` Config map[string]interface{} `yaml:"config" json:"config"` ConfigVars map[string]string `yaml:"configVars" json:"configVars"` Tasks []helper.RawMessage `yaml:"tasks" json:"tasks"` CleanupTasks []helper.RawMessage `yaml:"cleanupTasks" json:"cleanupTasks"` }
type ExternalConfig ¶
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) 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.