Documentation ¶
Index ¶
- Constants
- type Bug
- type BugListQuery
- type Cactual_time
- type Calias
- type Cassigned_to
- type Cblocked
- type Cbug
- type Cbug_file_loc
- type Cbug_id
- type Cbug_severity
- type Cbug_status
- type Cbug_when
- type Cbugzilla
- type Ccc
- type Ccclist_accessible
- type Ccf_build_id
- type Ccf_category
- type Ccf_clone_of
- type Ccf_cloudforms_team
- type Ccf_compliance_control_group
- type Ccf_compliance_level
- type Ccf_crm
- type Ccf_cust_facing
- type Ccf_devel_whiteboard
- type Ccf_doc_type
- type Ccf_docs_score
- type Ccf_documentation_action
- type Ccf_environment
- type Ccf_fixed_in
- type Ccf_internal_whiteboard
- type Ccf_last_closed
- type Ccf_mount_type
- type Ccf_ovirt_team
- type Ccf_pgm_internal
- type Ccf_pm_score
- type Ccf_regression_status
- type Ccf_release_notes
- type Ccf_show_homepage
- type Ccf_story_points
- type Ccf_subsystem_team
- type Ccf_type
- type Ccf_verified
- type Ccf_verified_branch
- type Cclassification
- type Cclassification_id
- type Ccomment_count
- type Ccomment_sort_order
- type Ccommentid
- type Ccomponent
- type Ccreation_ts
- type Cdelta_ts
- type Cdependson
- type Cestimated_time
- type Ceverconfirmed
- type Cexternal_bugs
- type Cflag
- type Ckeywords
- type Client
- func (client *Client) AddComment(id int, comment string) (bugInfo map[string]interface{}, err error)
- func (client *Client) BugHistory(id int) (bugInfo map[string]interface{}, err error)
- func (client *Client) BugInfo(id int) (bugInfo map[string]interface{}, err error)
- func (client *Client) BugList(query *BugListQuery) ([]Bug, error)
- func (client *Client) BugsHistory(idList []int) (bugInfo map[string]interface{}, err error)
- func (client *Client) BugsInfo(idList []int) (bugInfo []map[string]interface{}, err error)
- func (client *Client) BugzillaVersion() (version string, err error)
- func (client *Client) ShowBug(id int, currentTimestamp string) (bug *Cbug, cached bool, err error)
- func (client *Client) ShowBugHTML(id int, currentTimestamp string) (html *[]byte, cached bool, err error)
- type Clong_desc
- type Cop_sys
- type Cpriority
- type Cproduct
- type Cqa_contact
- type Cremaining_time
- type Crep_platform
- type Creporter
- type Creporter_accessible
- type Cresolution
- type Cshort_desc
- type Cstatus_whiteboard
- type Ctarget_milestone
- type Ctarget_release
- type Cthetext
- type Ctoken
- type Cversion
- type Cvotes
- type Cwho
- type GetAuthFunc
- type StoreAuthFunc
Constants ¶
View Source
const NO_COLOR = false
View Source
const USE_COLOR = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bug ¶
type Bug struct { ID int URL string Product string Component string Assignee string Status string Resolution string Subject string PMScore int Severity string Changed time.Time }
Bug bugzilla bug data structure
func NewBugFromBzBug ¶
NewBugFromBzBug constructor for Bug
type BugListQuery ¶
type Cactual_time ¶
type Cassigned_to ¶
type Cbug ¶
type Cbug struct { XMLName xml.Name `xml:"bug,omitempty" json:"bug,omitempty"` Cactual_time *Cactual_time `xml:"actual_time,omitempty" json:"actual_time,omitempty"` Calias *Calias `xml:"alias,omitempty" json:"alias,omitempty"` Cassigned_to *Cassigned_to `xml:"assigned_to,omitempty" json:"assigned_to,omitempty"` Cblocked []*Cblocked `xml:"blocked,omitempty" json:"blocked,omitempty"` Cbug_file_loc *Cbug_file_loc `xml:"bug_file_loc,omitempty" json:"bug_file_loc,omitempty"` Cbug_id *Cbug_id `xml:"bug_id,omitempty" json:"bug_id,omitempty"` Cbug_severity *Cbug_severity `xml:"bug_severity,omitempty" json:"bug_severity,omitempty"` Cbug_status *Cbug_status `xml:"bug_status,omitempty" json:"bug_status,omitempty"` Ccc []*Ccc `xml:"cc,omitempty" json:"cc,omitempty"` Ccclist_accessible *Ccclist_accessible `xml:"cclist_accessible,omitempty" json:"cclist_accessible,omitempty"` Ccf_build_id *Ccf_build_id `xml:"cf_build_id,omitempty" json:"cf_build_id,omitempty"` Ccf_category *Ccf_category `xml:"cf_category,omitempty" json:"cf_category,omitempty"` Ccf_clone_of *Ccf_clone_of `xml:"cf_clone_of,omitempty" json:"cf_clone_of,omitempty"` Ccf_cloudforms_team *Ccf_cloudforms_team `xml:"cf_cloudforms_team,omitempty" json:"cf_cloudforms_team,omitempty"` Ccf_compliance_control_group *Ccf_compliance_control_group `xml:"cf_compliance_control_group,omitempty" json:"cf_compliance_control_group,omitempty"` Ccf_compliance_level *Ccf_compliance_level `xml:"cf_compliance_level,omitempty" json:"cf_compliance_level,omitempty"` Ccf_crm *Ccf_crm `xml:"cf_crm,omitempty" json:"cf_crm,omitempty"` Ccf_cust_facing *Ccf_cust_facing `xml:"cf_cust_facing,omitempty" json:"cf_cust_facing,omitempty"` Ccf_devel_whiteboard *Ccf_devel_whiteboard `xml:"cf_devel_whiteboard,omitempty" json:"cf_devel_whiteboard,omitempty"` Ccf_doc_type *Ccf_doc_type `xml:"cf_doc_type,omitempty" json:"cf_doc_type,omitempty"` Ccf_docs_score *Ccf_docs_score `xml:"cf_docs_score,omitempty" json:"cf_docs_score,omitempty"` Ccf_documentation_action *Ccf_documentation_action `xml:"cf_documentation_action,omitempty" json:"cf_documentation_action,omitempty"` Ccf_environment *Ccf_environment `xml:"cf_environment,omitempty" json:"cf_environment,omitempty"` Ccf_fixed_in *Ccf_fixed_in `xml:"cf_fixed_in,omitempty" json:"cf_fixed_in,omitempty"` Ccf_internal_whiteboard *Ccf_internal_whiteboard `xml:"cf_internal_whiteboard,omitempty" json:"cf_internal_whiteboard,omitempty"` Ccf_last_closed *Ccf_last_closed `xml:"cf_last_closed,omitempty" json:"cf_last_closed,omitempty"` Ccf_mount_type *Ccf_mount_type `xml:"cf_mount_type,omitempty" json:"cf_mount_type,omitempty"` Ccf_ovirt_team *Ccf_ovirt_team `xml:"cf_ovirt_team,omitempty" json:"cf_ovirt_team,omitempty"` Ccf_pgm_internal *Ccf_pgm_internal `xml:"cf_pgm_internal,omitempty" json:"cf_pgm_internal,omitempty"` Ccf_pm_score *Ccf_pm_score `xml:"cf_pm_score,omitempty" json:"cf_pm_score,omitempty"` Ccf_regression_status *Ccf_regression_status `xml:"cf_regression_status,omitempty" json:"cf_regression_status,omitempty"` Ccf_release_notes *Ccf_release_notes `xml:"cf_release_notes,omitempty" json:"cf_release_notes,omitempty"` Ccf_show_homepage *Ccf_show_homepage `xml:"cf_show_homepage,omitempty" json:"cf_show_homepage,omitempty"` Ccf_story_points *Ccf_story_points `xml:"cf_story_points,omitempty" json:"cf_story_points,omitempty"` Ccf_subsystem_team *Ccf_subsystem_team `xml:"cf_subsystem_team,omitempty" json:"cf_subsystem_team,omitempty"` Ccf_type *Ccf_type `xml:"cf_type,omitempty" json:"cf_type,omitempty"` Ccf_verified *Ccf_verified `xml:"cf_verified,omitempty" json:"cf_verified,omitempty"` Ccf_verified_branch *Ccf_verified_branch `xml:"cf_verified_branch,omitempty" json:"cf_verified_branch,omitempty"` Cclassification *Cclassification `xml:"classification,omitempty" json:"classification,omitempty"` Cclassification_id *Cclassification_id `xml:"classification_id,omitempty" json:"classification_id,omitempty"` Ccomment_sort_order *Ccomment_sort_order `xml:"comment_sort_order,omitempty" json:"comment_sort_order,omitempty"` Ccomponent *Ccomponent `xml:"component,omitempty" json:"component,omitempty"` Ccreation_ts *Ccreation_ts `xml:"creation_ts,omitempty" json:"creation_ts,omitempty"` Cdelta_ts *Cdelta_ts `xml:"delta_ts,omitempty" json:"delta_ts,omitempty"` Cdependson []*Cdependson `xml:"dependson,omitempty" json:"dependson,omitempty"` Cestimated_time *Cestimated_time `xml:"estimated_time,omitempty" json:"estimated_time,omitempty"` Ceverconfirmed *Ceverconfirmed `xml:"everconfirmed,omitempty" json:"everconfirmed,omitempty"` Cexternal_bugs []*Cexternal_bugs `xml:"external_bugs,omitempty" json:"external_bugs,omitempty"` Cflag []*Cflag `xml:"flag,omitempty" json:"flag,omitempty"` Ckeywords *Ckeywords `xml:"keywords,omitempty" json:"keywords,omitempty"` Clong_desc []*Clong_desc `xml:"long_desc,omitempty" json:"long_desc,omitempty"` Cop_sys *Cop_sys `xml:"op_sys,omitempty" json:"op_sys,omitempty"` Cpriority *Cpriority `xml:"priority,omitempty" json:"priority,omitempty"` Cproduct *Cproduct `xml:"product,omitempty" json:"product,omitempty"` Cqa_contact *Cqa_contact `xml:"qa_contact,omitempty" json:"qa_contact,omitempty"` Cremaining_time *Cremaining_time `xml:"remaining_time,omitempty" json:"remaining_time,omitempty"` Crep_platform *Crep_platform `xml:"rep_platform,omitempty" json:"rep_platform,omitempty"` Creporter *Creporter `xml:"reporter,omitempty" json:"reporter,omitempty"` Creporter_accessible *Creporter_accessible `xml:"reporter_accessible,omitempty" json:"reporter_accessible,omitempty"` Cresolution *Cresolution `xml:"resolution,omitempty" json:"resolution,omitempty"` Cshort_desc *Cshort_desc `xml:"short_desc,omitempty" json:"short_desc,omitempty"` Cstatus_whiteboard *Cstatus_whiteboard `xml:"status_whiteboard,omitempty" json:"status_whiteboard,omitempty"` Ctarget_milestone *Ctarget_milestone `xml:"target_milestone,omitempty" json:"target_milestone,omitempty"` Ctarget_release *Ctarget_release `xml:"target_release,omitempty" json:"target_release,omitempty"` Ctoken *Ctoken `xml:"token,omitempty" json:"token,omitempty"` Cversion *Cversion `xml:"version,omitempty" json:"version,omitempty"` Cvotes *Cvotes `xml:"votes,omitempty" json:"votes,omitempty"` }
func (*Cbug) ShortSummary ¶
type Cbug_file_loc ¶
type Cbug_severity ¶
type Cbug_status ¶
type Cbugzilla ¶
type Cbugzilla struct { XMLName xml.Name `xml:"bugzilla,omitempty" json:"bugzilla,omitempty"` Attrexporter string `xml:"exporter,attr" json:",omitempty"` Attrmaintainer string `xml:"maintainer,attr" json:",omitempty"` Attrurlbase string `xml:"urlbase,attr" json:",omitempty"` Attrversion string `xml:"version,attr" json:",omitempty"` Cbug *Cbug `xml:"bug,omitempty" json:"bug,omitempty"` }
func (*Cbugzilla) Authenticated ¶
type Ccclist_accessible ¶
type Ccf_build_id ¶
type Ccf_category ¶
type Ccf_clone_of ¶
type Ccf_cloudforms_team ¶
type Ccf_compliance_level ¶
type Ccf_cust_facing ¶
type Ccf_devel_whiteboard ¶
type Ccf_doc_type ¶
type Ccf_docs_score ¶
type Ccf_environment ¶
type Ccf_fixed_in ¶
type Ccf_internal_whiteboard ¶
type Ccf_last_closed ¶
type Ccf_mount_type ¶
type Ccf_ovirt_team ¶
type Ccf_pgm_internal ¶
type Ccf_pm_score ¶
type Ccf_regression_status ¶
type Ccf_release_notes ¶
type Ccf_show_homepage ¶
type Ccf_story_points ¶
type Ccf_subsystem_team ¶
type Ccf_verified ¶
type Ccf_verified_branch ¶
type Cclassification ¶
type Cclassification_id ¶
type Ccomment_count ¶
type Ccomment_sort_order ¶
type Ccommentid ¶
type Ccomponent ¶
type Ccreation_ts ¶
type Cdependson ¶
type Cestimated_time ¶
type Ceverconfirmed ¶
type Cexternal_bugs ¶
type Cexternal_bugs struct { XMLName xml.Name `xml:"external_bugs,omitempty" json:"external_bugs,omitempty"` Attrname string `xml:"name,attr" json:",omitempty"` Content string `xml:",chardata" json:",omitempty"` }
func (*Cexternal_bugs) URL ¶
func (extbug *Cexternal_bugs) URL() string
type Cflag ¶
type Cflag struct { XMLName xml.Name `xml:"flag,omitempty" json:"flag,omitempty"` Attrid string `xml:"id,attr" json:",omitempty"` Attrname string `xml:"name,attr" json:",omitempty"` Attrsetter string `xml:"setter,attr" json:",omitempty"` Attrstatus string `xml:"status,attr" json:",omitempty"` Attrtype_id string `xml:"type_id,attr" json:",omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client bugzilla client
func NewClient ¶
func NewClient(bugzillaAddress string, bugzillaLogin string, bugzillaPassword string, getAuth GetAuthFunc, storeAuth StoreAuthFunc) (client *Client, err error)
NewClient creates bugzilla Client instance
func (*Client) AddComment ¶
func (client *Client) AddComment(id int, comment string) (bugInfo map[string]interface{}, err error)
AddComment adds comment for selected bugzilla ticket
func (*Client) BugHistory ¶
BugHistory returns history of selected bugzilla ticket
func (*Client) BugList ¶
func (client *Client) BugList(query *BugListQuery) ([]Bug, error)
BugList list of last changed bugs
func (*Client) BugsHistory ¶
BugsHistory returns history of selected bugzilla tickets
func (*Client) BugzillaVersion ¶
BugzillaVersion returns Bugzilla version
type Clong_desc ¶
type Clong_desc struct { XMLName xml.Name `xml:"long_desc,omitempty" json:"long_desc,omitempty"` Attrisprivate string `xml:"isprivate,attr" json:",omitempty"` Cbug_when *Cbug_when `xml:"bug_when,omitempty" json:"bug_when,omitempty"` Ccomment_count *Ccomment_count `xml:"comment_count,omitempty" json:"comment_count,omitempty"` Ccommentid *Ccommentid `xml:"commentid,omitempty" json:"commentid,omitempty"` Cthetext *Cthetext `xml:"thetext,omitempty" json:"thetext,omitempty"` Cwho *Cwho `xml:"who,omitempty" json:"who,omitempty"` }
type Cqa_contact ¶
type Cremaining_time ¶
type Crep_platform ¶
type Creporter_accessible ¶
type Cresolution ¶
type Cshort_desc ¶
type Cstatus_whiteboard ¶
type Ctarget_milestone ¶
type Ctarget_release ¶
type GetAuthFunc ¶
type StoreAuthFunc ¶
Click to show internal directories.
Click to hide internal directories.