Documentation ¶
Index ¶
- func MakeIssuesAggregate(stores *store.Stores) (*models.JiraIssuesAggregate, error)
- func NewClient(cfg *config.Config) (*jira.Client, error)
- func SaveIssue(stores *store.Stores, issue models.JiraIssue) error
- func UpdateAggregate(stores *store.Stores) error
- func UpdateIssues(jiraClient *jira.Client, cfg *config.Config, stores *store.Stores) error
- func UpdateLinkAggregates(stores *store.Stores) error
- func UpdateSingleLinksAggregate(model string, jStore store.Store, lStore store.LinkAggregateStore, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeIssuesAggregate ¶
func MakeIssuesAggregate(stores *store.Stores) (*models.JiraIssuesAggregate, error)
MakeIssuesAggregate returns a JiraIssuesAggregate. An error will be return if one occurs.
func SaveIssue ¶
SaveIssue saves a Jira Issue to a store. It also stores any new Jira Users which is encounters in their own Jira User store.
func UpdateAggregate ¶
UpdateAggregate updates the Jira aggregate and stores it. An error will be returned if one occurs.
func UpdateIssues ¶
UpdateIssues retrieves and saves all Jira issues that were created after the last sync.
An error will be return if one occurs. Nil on success.
func UpdateLinkAggregates ¶
UpdateLinkAggregates updates the link aggregates for the user, label, and issue models. An error will be returned if one occurs.
func UpdateSingleLinksAggregate ¶
func UpdateSingleLinksAggregate(model string, jStore store.Store, lStore store.LinkAggregateStore, stores *store.Stores) error
UpdateSingleLinksAggregate updates and stores a LinkAggregate. Args:
- model: Name of model we are aggregating links for
- Should be models.UserModelName, models.IssueModelName, models.LabelModelName
- jStore: Jira model store to retrieve models to find links for
- lStore: Links store used to save links for model
An error will be returned if one occurs.
Types ¶
This section is empty.