work

package
v0.0.0-...-2200605 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsItemNotFoundError

func IsItemNotFoundError(err error) bool

func NewJira

func NewJira(host, username, password string) (*jira, error)

func NewJiraFromConfig

func NewJiraFromConfig(servername string) (*jira, error)

func NewReplicaItemServer

func NewReplicaItemServer(servers ...ItemServer) *replicas

Types

type Artifact

type Artifact struct {
	ObjectType  string `json:"_type"`
	Name        string `json:"Name"`
	Description string `json:"Description"`
	Id          string `json:"_refObjectUUID"`
	FormattedID string `json:"FormattedID"`
}

func (*Artifact) GetDescription

func (a *Artifact) GetDescription() string

func (*Artifact) GetId

func (a *Artifact) GetId() string

func (*Artifact) GetName

func (a *Artifact) GetName() string

func (*Artifact) GetType

func (a *Artifact) GetType() string

type FetchedItem

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

func FetchItems

func FetchItems(server ItemServer, ids ...string) []*FetchedItem

func (*FetchedItem) GetDescription

func (f *FetchedItem) GetDescription() string

func (*FetchedItem) GetId

func (f *FetchedItem) GetId() string

func (*FetchedItem) GetSummary

func (f *FetchedItem) GetSummary() string

type Fields

type Fields struct {
	Summary     string    `json:"summary"`
	Description string    `json:"description"`
	IssueType   IssueType `json:"issuetype"`
}

type Issue

type Issue struct {
	Fields Fields `json:"fields"`
	Key    string `json:"key"`
}

func (*Issue) GetDescription

func (i *Issue) GetDescription() string

func (*Issue) GetId

func (i *Issue) GetId() string

func (*Issue) GetName

func (i *Issue) GetName() string

func (*Issue) GetType

func (i *Issue) GetType() string

type IssueType

type IssueType struct {
	Name string `json:"name"`
}

type Item

type Item interface {
	GetType() string
	GetName() string
	GetDescription() string
	GetId() string
}

type ItemNotFoundError

type ItemNotFoundError string

func (ItemNotFoundError) Error

func (s ItemNotFoundError) Error() string

type ItemServer

type ItemServer interface {
	GetItem(id string) (Item, error)
}

func NewCachingServer

func NewCachingServer(server ItemServer) ItemServer

func NewItemServer

func NewItemServer() (ItemServer, error)

func NewItemServerFromConfig

func NewItemServerFromConfig(name config.ServerName) (ItemServer, error)

func SetupServer

func SetupServer(t *testing.T, servername string) ItemServer

type QueryResult

type QueryResult struct {
	Artifacts []Artifact `json:"Results"`
}

type Rally

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

func NewRally

func NewRally(host, apikey string) (*Rally, error)

func NewRallyFromConfig

func NewRallyFromConfig(servername string) (*Rally, error)

func (*Rally) GetItem

func (r *Rally) GetItem(id string) (Item, error)

type RallyResult

type RallyResult struct {
	QueryResult QueryResult `json:"QueryResult"`
}

Jump to

Keyboard shortcuts

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