config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 3 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 {
	DefaultValues     DefaultValues `yaml:"defaultValues"`
	Mappings          []Mappings    `yaml:"mappings"`
	DescriptionExtras []string      `yaml:"addToDescription"`
}

Config contains all the data parsed from the conf.yaml file

func New

func New(r io.Reader) (Config, error)

New reads the configuration from the file/Reader and parses it into a Config object

type CustomField

type CustomField struct {
	ID        string   `yaml:"id"`
	FieldType string   `yaml:"fieldType"`
	Values    []string `yaml:"values"`
}

type DefaultValues

type DefaultValues struct {
	Project         string        `yaml:"project"`
	IssueType       string        `yaml:"issueType"`
	Components      []string      `yaml:"components"`
	AffectsVersions []string      `yaml:"affectsVersions"`
	Labels          []string      `yaml:"labels,omitempty"`
	CustomFields    []CustomField `yaml:"customFields,omitempty"`
}

type Mappings

type Mappings struct {
	DraconField string `yaml:"draconField"`
	JiraField   string `yaml:"jiraField"`
	FieldType   string `yaml:"fieldType"`
}

Jump to

Keyboard shortcuts

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