config

package
v0.0.0-...-355f60d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	JobConfigs []JobConfig `yaml:"jobConfigs"`
}

Config contains all job configs for flaky tests reporting

func NewConfig

func NewConfig(configFile string) (*Config, error)

NewConfig parses config from configFile

type JobConfig

type JobConfig struct {
	Name          string         `yaml:"name"` // name of job to analyze
	Repo          string         `yaml:"repo"` // repository to test job on
	Type          string         `yaml:"type"`
	IssueRepo     string         `yaml:"issueRepo,omitempty"`
	SlackChannels []SlackChannel `yaml:"slackChannels,omitempty"`
}

JobConfig is initial configuration for a given repo, defines which job to scan

type SlackChannel

type SlackChannel struct {
	Name     string `yaml:"name"`
	Identity string `yaml:"identity"`
}

SlackChannel contains Slack channels info

Jump to

Keyboard shortcuts

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