jira

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2015 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const Id = "jira"
View Source
const LocalConfigTemplate = `
#jira:
#  server_url: "https://example.com/jira"
#  project_key: "EX"
`
View Source
const ServiceName = "JIRA"

Variables

This section is empty.

Functions

func NewFactory added in v0.14.0

func NewFactory() common.IssueTrackerFactory

Types

type BasicAuthRoundTripper

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

func (*BasicAuthRoundTripper) RoundTrip

func (rt *BasicAuthRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type Config

type Config interface {
	ServerURL() *url.URL
	Username() string
	Password() string
	ProjectKey() string
}

func LoadConfig

func LoadConfig() (Config, error)

type Credentials

type Credentials struct {
	ServerPrefix string `yaml:"server_prefix"`
	Username     string `yaml:"username"`
	Password     string `yaml:"password"`
	// contains filtered or unexported fields
}

type GlobalConfig

type GlobalConfig struct {
	JIRA struct {
		Credentials []*Credentials `yaml:"credentials"`
	} `yaml:"jira"`
}

type LocalConfig

type LocalConfig struct {
	JIRA struct {
		ServerURL  string `yaml:"server_url"`
		ProjectKey string `yaml:"project_key"`
	} `yaml:"jira"`
}

Jump to

Keyboard shortcuts

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