Documentation
¶
Index ¶
- Constants
- Variables
- func ControlOutput(testName string, options *TestSubmitOptions)
- func FindTimeline(scenario *v1alpha1.Scenario) (from int64, to int64)
- func GenerateQuotedURL(grafanaEndpoint string, dashboard string, from int64, to int64, postfix string) string
- func InstallPDFExporter(location string)
- func NewDeleteTestsCmd() *cobra.Command
- func NewGetTestsCmd() *cobra.Command
- func NewInspectTestCmd() *cobra.Command
- func NewReportTestsCmd() *cobra.Command
- func NewSaveTestsCmd() *cobra.Command
- func NewSubmitTestCmd() *cobra.Command
- func NewValidateCmd() *cobra.Command
- func PopulateInspectFlags(cmd *cobra.Command, options *InspectOptions)
- func PopulateReportTestFlags(cmd *cobra.Command, options *TestReportOptions)
- func PopulateSaveTestFlags(cmd *cobra.Command, options *TestSaveOptions)
- func PopulateTestDeleteFlags(cmd *cobra.Command, options *TestDeleteOptions)
- func PopulateTestSubmitFlags(cmd *cobra.Command, options *TestSubmitOptions)
- func PopulateTestValidateFlags(cmd *cobra.Command, options *TestSubmitOptions)
- func SavePDF(options *TestReportOptions, dashboardURI string, destination string) error
- func SavePDFs(options *TestReportOptions, dashboardURI, destDir string, ...) error
- type InspectOptions
- type TestDeleteOptions
- type TestReportOptions
- type TestSaveOptions
- type TestSubmitOptions
- type TestValidateOptions
Constants ¶
View Source
const ( User = "'':''" // Not really needed since we have no authentication in Grafana. SummaryDashboardUID = "summary" )
View Source
const ( TestdataSource = "dataviewer:/testdata" PrometheusSource = "prometheus:/prometheus/data" )
Variables ¶
View Source
var ( // FastPDFExporter is fast on individual panels, but does not render dashboard with many panels. FastPDFExporter string // LongPDFExporter can render dashboards with many panels, but it's a bit slow. LongPDFExporter string )
Functions ¶
func ControlOutput ¶
func ControlOutput(testName string, options *TestSubmitOptions)
func FindTimeline ¶ added in v1.0.32
FindTimeline parses the scenario to find timeline that make sense (formatted into time.UnixMilli). ---------------------------------------------------*
For the starting time we adhere to these rules: 1. If possible, we use the time that the first job was scheduled. 2. Otherwise, we use the Creation time. For the ending time we adhere to these rules: 1. If the scenario is successful, we return the ConditionAllJobsAreCompleted time. 2. If the scenario has failed, we return the Failure time. 3. Otherwise, we report time.Now(). *---------------------------------------------------
func GenerateQuotedURL ¶ added in v1.0.28
func InstallPDFExporter ¶ added in v1.0.28
func InstallPDFExporter(location string)
func NewDeleteTestsCmd ¶
func NewGetTestsCmd ¶
func NewInspectTestCmd ¶
func NewReportTestsCmd ¶ added in v1.0.28
func NewSaveTestsCmd ¶
func NewSubmitTestCmd ¶
func NewValidateCmd ¶ added in v1.0.30
func PopulateInspectFlags ¶
func PopulateInspectFlags(cmd *cobra.Command, options *InspectOptions)
func PopulateReportTestFlags ¶ added in v1.0.28
func PopulateReportTestFlags(cmd *cobra.Command, options *TestReportOptions)
func PopulateSaveTestFlags ¶
func PopulateSaveTestFlags(cmd *cobra.Command, options *TestSaveOptions)
func PopulateTestDeleteFlags ¶
func PopulateTestDeleteFlags(cmd *cobra.Command, options *TestDeleteOptions)
func PopulateTestSubmitFlags ¶
func PopulateTestSubmitFlags(cmd *cobra.Command, options *TestSubmitOptions)
func PopulateTestValidateFlags ¶ added in v1.0.30
func PopulateTestValidateFlags(cmd *cobra.Command, options *TestSubmitOptions)
Types ¶
type InspectOptions ¶
type TestDeleteOptions ¶
type TestReportOptions ¶ added in v1.0.28
type TestSaveOptions ¶
type TestSubmitOptions ¶
type TestValidateOptions ¶ added in v1.0.30
type TestValidateOptions struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.