testgrid

package
v0.0.0-...-703489d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BaseURL is Knative testgrid base URL
	BaseURL = "https://testgrid.knative.dev"
)

Variables

This section is empty.

Functions

func GetTestgridTabURL

func GetTestgridTabURL(jobName string, filters []string) (string, error)

GetTestgridTabURL gets Testgrid URL for giving job and filters for Testgrid

Types

type Config

type Config struct {
	Dashboards      []Dashboard      `json:"dashboards"`
	DashboardGroups []DashboardGroup `json:"dashboard_groups"`
}

Config is entire testgrid config

func NewConfigFromFile

func NewConfigFromFile(fp string) (*Config, error)

NewConfigFromFile loads config from file

func (*Config) GetTabRelURL

func (ac *Config) GetTabRelURL(tgName string) (string, error)

GetTabRelURL finds URL relative to testgrid home URL from testgroup name (generally this is prow job name)

type Dashboard

type Dashboard struct {
	Name         string          `json:"name"`
	DashboardTab []*DashboardTab `json:"dashboard_tab,omitempty"`
}

Dashboard is single dashboard on testgrid

type DashboardGroup

type DashboardGroup struct {
	// The name for the dashboard group.
	Name string `json:"name"`
	// A list of names specifying dashboards to show links to in a separate tabbed
	// bar at the top of the page for each of the given dashboards.
	DashboardNames []string `json:"dashboard_names"`
}

DashboardGroup is a group of dashboards on testgrid

type DashboardTab

type DashboardTab struct {
	Name          string `json:"name"`
	TestGroupName string `json:"test_group_name"`
}

DashboardTab is a single tab on testgrid

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL