Documentation
¶
Index ¶
- func AddCommentToBug(bugNum int, conf *config.OneCRLConfig, comment string) error
- func AttachToBug(bugNum int, apiKey string, attachments []Attachment, conf *config.OneCRLConfig) error
- func CreateBug(bug Bug, conf *config.OneCRLConfig) (int, error)
- type Attachment
- type AttachmentFlag
- type AttachmentResponse
- type Bug
- type BugData
- type BugResponse
- type Comment
- type SearchResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommentToBug ¶
func AddCommentToBug(bugNum int, conf *config.OneCRLConfig, comment string) error
func AttachToBug ¶
func AttachToBug(bugNum int, apiKey string, attachments []Attachment, conf *config.OneCRLConfig) error
Types ¶
type Attachment ¶
type Attachment struct { ApiKey string `json:"api_key"` Ids []int `json:"ids"` ContentType string `json:"content_type"` Data string `json:"data"` Summary string `json:"summary"` FileName string `json:"file_name"` Flags []AttachmentFlag `json:"flags"` BugId int `json:"bug_id"` Comment string `json:"comment"` }
type AttachmentFlag ¶
type AttachmentResponse ¶
type AttachmentResponse struct {
Ids []string `json:"ids"`
}
type Bug ¶
type Bug struct { ApiKey string `json:"api_key"` Product string `json:"product"` Component string `json:"component"` Version string `json:"version"` Type string `json:"type"` Summary string `json:"summary"` Comment string `json:"comment"` Description string `json:"description"` Blocks []int `json:"blocks,omitempty"` }
type BugResponse ¶
type BugResponse struct {
Id int `json:"id"`
}
type SearchResponse ¶
type SearchResponse struct {
Bugs []BugData `json:"bugs"`
}
func GetBugData ¶
func GetBugData(bugNumStrings []string, conf *config.OneCRLConfig) (SearchResponse, error)
Click to show internal directories.
Click to hide internal directories.