bugzilla

package module
v0.0.0-...-74e9944 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

README

bugzilla

Golang client for bugzilla API

list bugs
client, err := bugzilla.NewClient(bugzillaURL, bugzillaUser, bugzillaPassword)
if err != nil {
	return err
}
client.BugList(limit, offset)
bug details for #444
client, err := bugzilla.NewClient(bugzillaURL, bugzillaUser, bugzillaPassword)
if err != nil {
	return err
}
client.BugInfo(444)
add comment to #444
client, err := bugzilla.NewClient(bugzillaURL, bugzillaUser, bugzillaPassword)
if err != nil {
	return err
}
client.AddComment(444, "Hello word!"))

Documentation

Index

Constants

This section is empty.

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
	Changed    time.Time
}

Bug bugzilla bug data structure

func NewBugFromBzBug

func NewBugFromBzBug(protoBug bzBug) (bug *Bug, err error)

NewBugFromBzBug constructor for Bug

func (*Bug) GetSHA1

func (bug *Bug) GetSHA1() string

GetSHA1 computes SHA1 of particular bug

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client bugzilla client

func NewClient

func NewClient(bugzillaAddress string, bugzillaLogin string, bugzillaPassword string) (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

func (client *Client) BugHistory(id int) (bugInfo map[string]interface{}, err error)

BugHistory returns history of selected bugzilla ticket

func (*Client) BugInfo

func (client *Client) BugInfo(id int) (bugInfo map[string]interface{}, err error)

BugInfo returns information about single bugzilla ticket

func (*Client) BugList

func (client *Client) BugList(limit int, offset int) ([]Bug, error)

BugList list of last changed bugs

func (*Client) BugsHistory

func (client *Client) BugsHistory(idList []int) (bugInfo map[string]interface{}, err error)

BugsHistory returns history of selected bugzilla tickets

func (*Client) BugsInfo

func (client *Client) BugsInfo(idList []int) (bugInfo []map[string]interface{}, err error)

BugsInfo returns information about selected bugzilla tickets

func (*Client) BugzillaVersion

func (client *Client) BugzillaVersion() (version string, err error)

BugzillaVersion returns Bugzilla version

Jump to

Keyboard shortcuts

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