tracker

package
v0.0.0-...-7a72f0a Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2014 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Project     Project_field   `json:"project"`
	Summary     string          `json:"summary"`
	Issuetype   Issuetype_field `json:"issuetype"`
	Priority    Priority_field  `json:"priority"`
	Description string          `json:"description"`
}

type Issuetype_field

type Issuetype_field struct {
	Id string `json:"id"`
}

type Jira

type Jira struct {
	BaseURL        string
	CAFile         string
	Username       string
	Password       string
	Project        string
	Issuetype      string
	TemplateFile   string
	HighPriority   string
	MediumPriority string
	LowPriority    string
	Template       *template.Template
}

func (Jira) Add

func (j Jira) Add(e nvd.Entry) (string, error)

Add new ticket, return the Jira's ticket id

func (*Jira) Init

func (j *Jira) Init()

func (Jira) Update

func (j Jira) Update(e nvd.Entry, ticketid string) error

Modify existing ticket, ticketid is Jira's ticket id

type JiraTicket

type JiraTicket struct {
	Fields Field `json:"fields"`
}

type Jira_Response

type Jira_Response struct {
	Id   string `json:"id"`
	Key  string `json:"key"`
	Self string `json:"self"`
}

Jira responds with basic information about the created/modified ticket

type Priority_field

type Priority_field struct {
	Id string `json:"id"`
}

type Project_field

type Project_field struct {
	Id string `json:"id"`
}

type RT

type RT struct {
	BaseURL        string
	CAFile         string
	Username       string
	Password       string
	Queue          string
	HighPriority   string
	MediumPriority string
	LowPriority    string
	TemplateFile   string
	Template       *template.Template
}

func (RT) Add

func (rt RT) Add(e nvd.Entry) (string, error)

func (*RT) Init

func (rt *RT) Init()

func (RT) Update

func (rt RT) Update(e nvd.Entry, ticketid string) error

type RTTicket

type RTTicket struct {
	Subject  string
	Queue    string
	Priority string
	Text     string
}

type Tracker

type Tracker interface {
	Init()
	// Returns ticket system's ticket ID when creating new one
	Add(nvd.Entry) (string, error)
	// Refer also to the ticket system's ticket ID
	Update(nvd.Entry, string) error
}

Jump to

Keyboard shortcuts

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