Documentation ¶
Overview ¶
Package config implements configuration file handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteBasicAuth ¶ added in v0.10.0
WriteBasicAuth persists the given Config to the given path.
Types ¶
type Auth ¶
type Auth struct {
OAuth2 *OAuth2 `json:"oauth2"`
}
Auth represents the structure of the auth.yml
type BasicAuth ¶ added in v0.10.0
BasicAuth represents the structure of the auth.yml
func ReadBasicAuth ¶ added in v0.10.0
ReadBasicAuth the config file.
type Config ¶
type Config struct { JiraURL string `json:"jiraURL"` Issues []Issue `json:"issues"` Ignore []Regexp `json:"ignore"` RoundIssues []Regexp `json:"roundIssues"` }
Config represents the structure of the config file.
type Issue ¶
type Issue struct { ID string `json:"id"` Regexes []Regexp `json:"regexes"` DefaultComment string `json:"defaultComment"` }
Issue represents the list of known Jira issues.
type OAuth2 ¶
type OAuth2 struct { ClientID string `json:"clientID"` Secret string `json:"secret"` Token *oauth2.Token `json:"token"` }
OAuth2 is a config entry containing oauth2 secrets
type Regexp ¶
Regexp is a type that supports JSON Unmarshalling
func (*Regexp) MarshalJSON ¶
MarshalJSON satisfies the json.Marshaler interface.
func (*Regexp) UnmarshalJSON ¶
UnmarshalJSON satisfies the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.