config

package
v0.2.0 Latest Latest
Warning

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

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

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