tasktracker

package
v0.0.0-...-e75809f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

View Source
const DoneStatus = "DoneStatus"

DoneStatus ...

Variables

View Source
var StatusTypes = []string{DoneStatus}

StatusTypes ...

View Source
var TaskProviders = make(map[string]TaskProvider)

TaskProviders ...

View Source
var TaskTypes = []string{"FeatureTypes", "TaskTypes", "BugTypes"}

TaskTypes ...

Functions

func DecryptTaskProviders

func DecryptTaskProviders(encrypted []byte) (decrypted []byte, err error)

DecryptTaskProviders ...

func EncryptTaskProviders

func EncryptTaskProviders(decrypted []byte) (encrypted []byte, err error)

EncryptTaskProviders ... ToDo: Generalize these methods

func GetSprintTaskList

func GetSprintTaskList(config []byte, sprint serializers.Sprint) (tasks []serializers.Task, err error)

GetSprintTaskList ...

func GetStatusMapping

func GetStatusMapping(config []byte) (map[string][]string, error)

GetStatusMapping ...

func GetTaskDetails

func GetTaskDetails(config []byte, taskKey string) (*serializers.Task, error)

GetTaskDetails ...

func GetTaskList

func GetTaskList(config []byte, taskKeys []string) (tasks []serializers.Task, err error)

GetTaskList ...

func GetTaskTypeMappings

func GetTaskTypeMappings(config []byte) (map[string][]string, error)

GetTaskTypeMappings ...

func RegisterTaskProvider

func RegisterTaskProvider(name string, newProvider TaskProvider)

RegisterTaskProvider ...

func SanitizeTimeLogs

func SanitizeTimeLogs(config []byte, timeLogKeys []string) (map[string]string, error)

SanitizeTimeLogs ...

func ValidateConfigs

func ValidateConfigs(taskProviderConfigList []map[string]interface{}) (err error)

ValidateConfigs ...

func ValidateCredentials

func ValidateCredentials(credentials map[string]interface{}) (err error)

ValidateCredentials ...

Types

type Connection

type Connection interface {
	GetTaskList(ticketKeys []string) []serializers.Task
	GetTask(ticketKey string) (*serializers.Task, error)
	GetTaskUrl(ticketKey string) string
	GetSprint(sprintID string) *serializers.Sprint
	GetSprintTaskList(sprint serializers.Sprint) []serializers.Task
	ValidateConfig() error
	SanitizeTimeLogs([]string) map[string]string
}

Connection ...

func GetConnection

func GetConnection(config []byte) Connection

GetConnection ...

type Credentials

type Credentials struct {
	Type     string `json:"Type"`
	Username string `json:"Username"`
	Password string `json:"Password"`
	APIToken string `json:"APIToken"`
}

Credentials ...

type TaskProvider

type TaskProvider interface {
	New(config interface{}) Connection
	ConfigTemplate() map[string]interface{}
}

TaskProvider ...

func GetTaskProvider

func GetTaskProvider(name string) TaskProvider

GetTaskProvider ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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