Documentation ¶
Index ¶
- Constants
- type Adapter
- type Group
- type Tab
- type View
- type Widget
- func (w Widget) GetBoolParameter(k string, defaultVal bool) bool
- func (w Widget) GetDurationParameter(k string, defaultVal time.Duration) time.Duration
- func (w Widget) GetStringParameter(k, defaultVal string) string
- func (w Widget) GetStringsInternalParameter(k string, defaultVal []string) []string
- func (w Widget) GetStringsParameter(k string, defaultVal []string) []string
Constants ¶
View Source
const ( WidgetParamJunitIsApi = "is_api" WidgetParamJunitDir = "directory" WidgetParamJunitScreenshotDirs = "screenshot_directories" WidgetParamJunitScreenshotFilemask = "screenshot_filemask" WidgetParamJunitVideoDirs = "video_directories" WidgetParamJunitVideoFilemask = "video_filemask" WidgetInternalParamJunitTestSuites = "test_suites" )
View Source
const (
WidgetTypeJunit = "Junit"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { FindJunitWidgets(ctx context.Context) ([]Widget, error) FindJunitWidgetsTestSuiteIDs(ctx context.Context, widgetIDs []string) (testSuiteIDs []string, err error) AddTestSuitesToJunitWidgets( ctx context.Context, widgetIDs, testSuiteIDs []string, ) error RemoveTestSuitesFromJunitWidgets( ctx context.Context, testSuiteIDs []string, ) error }
func NewMongoAdapter ¶
type View ¶
type View struct { ID string `bson:"_id"` Enabled bool `bson:"enabled"` Title string `bson:"title"` Description string `bson:"description"` Group string `bson:"group_id"` Tabs []Tab `bson:"tabs"` Tags []string `bson:"tags"` PeriodicRefresh *types.DurationWithEnabled `bson:"periodic_refresh"` Author string `bson:"author"` Position int64 `bson:"position"` Created types.CpsTime `bson:"created"` Updated types.CpsTime `bson:"updated"` }
type Widget ¶
type Widget struct { ID string `bson:"_id" json:"_id"` Title string `bson:"title" json:"title"` Type string `bson:"type" json:"type"` GridParameters map[string]interface{} `bson:"grid_parameters" json:"grid_parameters"` Parameters map[string]interface{} `bson:"parameters" json:"parameters"` InternalParameters map[string]interface{} `bson:"internal_parameters,omitempty" json:"-"` }
func (Widget) GetDurationParameter ¶
func (Widget) GetStringParameter ¶
func (Widget) GetStringsInternalParameter ¶
Click to show internal directories.
Click to hide internal directories.