jira

package
v0.0.0-...-ab9d506 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(cfg *config.Config) (*jira.Client, error)

NewClient creates a new Jira Client. An error is returned if one occurs.

func SaveIssue

func SaveIssue(stores *store.Stores, issue models.JiraIssue) error

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

func UpdateAggregate(stores *store.Stores) error

UpdateAggregate updates the Jira aggregate and stores it. An error will be returned if one occurs.

func UpdateIssues

func UpdateIssues(jiraClient *jira.Client, cfg *config.Config,
	stores *store.Stores) error

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

func UpdateLinkAggregates(stores *store.Stores) error

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.

Jump to

Keyboard shortcuts

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