jira

package
v0.0.0-...-bc69434 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

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

Authentication data structure

func (*Authentication) SetBasicAuth

func (authentication *Authentication) SetBasicAuth(username, password string)

SetBasicAuth set basic authentication

type BasicAuthTransport

type BasicAuthTransport struct {
	Username  string
	Password  string
	Transport http.RoundTripper
}

BasicAuthTransport data structure

type Issue

type Issue struct {
	ID string `json:"id,omitempty" structs:"id,omitempty"`
}

Issue data structure

type Jira

type Jira struct {
	Authentication *Authentication
	// contains filtered or unexported fields
}

Jira an http client to consume Jira restful API

func New

func New(serverURL string) (*Jira, error)

New create a Jira client

func (*Jira) GetIssue

func (jira *Jira) GetIssue(issueID string) (*Issue, error)

GetIssue get Jira issue details

type QueryOptions

type QueryOptions struct {
	Fields        string `url:"fields,omitempty"`
	Expand        string `url:"expand,omitempty"`
	Properties    string `url:"properties,omitempty"`
	FieldsByKeys  bool   `url:"fieldsByKeys,omitempty"`
	UpdateHistory bool   `url:"updateHistory,omitempty"`
	ProjectKeys   string `url:"projectKeys,omitempty"`
}

QueryOptions data structure

Jump to

Keyboard shortcuts

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