config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: GPL-3.0 Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(configData *PrpConfig)

Validate makes sure all of the config values are initialized

func WriteConfig

func WriteConfig(outputFile string, configData *PrpConfig) error

WriteConfig saves a PrpConfig to a file

Types

type PrpConfig

type PrpConfig struct {
	Profiles map[string]PrpConfigProfile `json:"profiles,omitempty"`
}

PrpConfig defines the structure of the pull request parser config file

func LoadConfigFromFile

func LoadConfigFromFile(fileName string) (*PrpConfig, error)

LoadConfigFromFile loads a PrpConfig from a file

type PrpConfigProfile

type PrpConfigProfile struct {
	TrackedRepos []PrpConfigRepo `json:"trackedRepos,omitempty"`
	Token        string          `json:"token,omitempty"`
	APIURL       string          `json:"apiUrl,omitempty"`
}

PrpConfigProfile defines the structure of pull request parser profile

type PrpConfigRepo

type PrpConfigRepo struct {
	Owner         string   `json:"owner,omitempty"`
	Name          string   `json:"name,omitempty"`
	LocalPath     string   `json:"localPath,omitempty"`
	IgnoredBuilds []string `json:"ignoredBuilds,omitempty"`
}

PrpConfigRepo defines the structure of pull request parser tracked repo entry

Jump to

Keyboard shortcuts

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