testgrid

package
v0.0.0-...-d7993bf Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 5 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 `yaml:"dashboards"`
}

Config is entire testgrid config

func NewConfig

func NewConfig() (*Config, error)

NewConfig loads from default 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 `yaml:"name"`
	Tabs []Tab  `yaml:"dashboard_tab"`
}

Dashboard is single dashboard on testgrid

type Tab

type Tab struct {
	Name          string `yaml:"name"`
	TestGroupName string `yaml:"test_group_name"`
}

Tab is a single tab on testgrid

Jump to

Keyboard shortcuts

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