config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: GPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

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

This section is empty.

Types

type Profile added in v0.3.1

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

Profile defines the structure of pull request parser profile

func (*Profile) Update added in v0.3.1

func (p *Profile) Update(token, APIURL string)

Update updates values in the profile

type PrpConfig

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

PrpConfig defines the structure of the pull request parser config file

func LoadFromFile added in v0.3.1

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

LoadFromFile loads a PrpConfig from a file

func (*PrpConfig) Validate added in v0.3.1

func (configData *PrpConfig) Validate()

Validate makes sure all of the config values are initialized

func (PrpConfig) Write added in v0.3.1

func (configData PrpConfig) Write(outputFile string) error

Write saves a PrpConfig to a file

type Repo added in v0.3.1

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

Repo 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