Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + func IdentifierForPull(org, repo string, num int) string + func IsAccessDenied(err error) bool + func IsIdentifierNotForPullErr(err error) bool + func IsInvalidBugID(err error) bool + func IsNotFound(err error) bool + func PrettyStatus(status, resolution string) string + func PullFromIdentifier(identifier string) (org, repo string, num int, err error) + type AddExternalBugParameters struct + BugIDs []int + ExternalBugs []ExternalBugIdentifier + type Bug struct + ActualTime int + Alias []string + AssignedTo string + AssignedToDetail *User + Blocks []int + CC []string + CCDetail []User + Classification string + Component []string + CreationTime string + Creator string + CreatorDetail *User + Deadline string + DependsOn []int + DupeOf int + EstimatedTime int + Flags []Flag + Groups []string + ID int + IsCCAccessible bool + IsConfirmed bool + IsCreatorAccessible bool + IsOpen bool + Keywords []string + LastChangeTime string + OperatingSystem string + PRs []ExternalBug + Platform string + Priority string + Product string + QAContact string + QAContactDetail *User + RemainingTime int + Resolution string + SeeAlso []string + Severity string + Status string + Summary string + TargetMilestone string + TargetRelease []string + URL string + UpdateToken string + Verified []string + Version []string + Whiteboard string + type BugCreate struct + Alias []string + AssignedTo string + CC []string + CommentIsPrivate bool + CommentTags []string + Component []string + Description string + Flags []Flag + Groups []string + IsMarkdown bool + Keywords []string + OperatingSystem string + Platform string + Priority string + Product string + QAContact string + Resolution string + Severity string + Status string + SubComponents map[string][]string + Summary string + TargetMilestone string + TargetRelease []string + Version []string + type BugUpdate struct + Blocks *IDUpdate + DependsOn *IDUpdate + Resolution string + Status string + TargetRelease []string + Version string + Whiteboard string + type Client interface + AddPullRequestAsExternalBug func(id int, org, repo string, num int) (bool, error) + CloneBug func(bug *Bug, mutations ...func(bug *BugCreate)) (int, error) + CreateBug func(bug *BugCreate) (int, error) + CreateComment func(bug *CommentCreate) (int, error) + Endpoint func() string + ForPlugin func(plugin string) Client + ForSubcomponent func(subcomponent string) Client + GetAllClones func(bug *Bug) ([]*Bug, error) + GetBug func(id int) (*Bug, error) + GetClones func(bug *Bug) ([]*Bug, error) + GetComments func(id int) ([]Comment, error) + GetExternalBugPRsOnBug func(id int) ([]ExternalBug, error) + GetRootForClone func(bug *Bug) (*Bug, error) + GetSubComponentsOnBug func(id int) (map[string][]string, error) + RemovePullRequestAsExternalBug func(id int, org, repo string, num int) (bool, error) + SearchBugs func(filters map[string]string) ([]*Bug, error) + SetRoundTripper func(t http.RoundTripper) + UpdateBug func(id int, update BugUpdate) error + Used func() bool + WithFields func(fields logrus.Fields) Client + func NewClient(getAPIKey func() []byte, endpoint string, githubExternalTrackerId uint, ...) Client + type Comment struct + AttachmentID *int + BugID int + Count int + CreationTime time.Time + Creator string + ID int + IsMarkdown bool + IsPrivate bool + Tags []string + Text string + Time time.Time + type CommentCreate struct + Comment string + ID int + IsPrivate bool + type ExternalBug struct + BugzillaBugID int + ExternalBugID string + Num int + Org string + Repo string + Status string + Type ExternalBugType + type ExternalBugIdentifier struct + ID string + TrackerID int + Type string + type ExternalBugType struct + URL string + type Fake struct + BugComments map[int][]Comment + BugCreateErrors sets.String + BugErrorMessages map[int]string + BugErrors sets.Int + Bugs map[int]Bug + EndpointString string + ExternalBugs map[int][]ExternalBug + SearchedBugs []*Bug + SubComponents map[int]map[string][]string + func (c *Fake) AddPullRequestAsExternalBug(id int, org, repo string, num int) (bool, error) + func (c *Fake) CloneBug(bug *Bug, mutations ...func(bug *BugCreate)) (int, error) + func (c *Fake) CreateBug(bug *BugCreate) (int, error) + func (c *Fake) CreateComment(comment *CommentCreate) (int, error) + func (c *Fake) Endpoint() string + func (c *Fake) ForPlugin(plugin string) Client + func (c *Fake) ForSubcomponent(subcomponent string) Client + func (c *Fake) GetAllClones(bug *Bug) ([]*Bug, error) + func (c *Fake) GetBug(id int) (*Bug, error) + func (c *Fake) GetClones(bug *Bug) ([]*Bug, error) + func (c *Fake) GetComments(id int) ([]Comment, error) + func (c *Fake) GetExternalBugPRsOnBug(id int) ([]ExternalBug, error) + func (c *Fake) GetRootForClone(bug *Bug) (*Bug, error) + func (c *Fake) GetSubComponentsOnBug(id int) (map[string][]string, error) + func (c *Fake) RemovePullRequestAsExternalBug(id int, org, repo string, num int) (bool, error) + func (c *Fake) SearchBugs(filters map[string]string) ([]*Bug, error) + func (c *Fake) SetRoundTripper(t http.RoundTripper) + func (c *Fake) UpdateBug(id int, update BugUpdate) error + func (c *Fake) Used() bool + func (c *Fake) WithFields(fields logrus.Fields) Client + type Flag struct + CreationDate string + ID int + ModificationDate string + Name string + Requestee string + Setter string + Status string + TypeID int + type IDUpdate struct + Add []int + Remove []int + Set []int + type RemoveExternalBugParameters struct + BugIDs []int + type User struct + Email string + ID int + Name string + RealName string