Documentation ¶
Index ¶
- Constants
- Variables
- func DecryptTaskProviders(encrypted []byte) (decrypted []byte, err error)
- func EncryptTaskProviders(decrypted []byte) (encrypted []byte, err error)
- func GetSprintTaskList(config []byte, sprint serializers.Sprint) (tasks []serializers.Task, err error)
- func GetStatusMapping(config []byte) (map[string][]string, error)
- func GetTaskDetails(config []byte, taskKey string) (*serializers.Task, error)
- func GetTaskList(config []byte, taskKeys []string) (tasks []serializers.Task, err error)
- func GetTaskTypeMappings(config []byte) (map[string][]string, error)
- func RegisterTaskProvider(name string, newProvider TaskProvider)
- func SanitizeTimeLogs(config []byte, timeLogKeys []string) (map[string]string, error)
- func ValidateConfigs(taskProviderConfigList []map[string]interface{}) (err error)
- func ValidateCredentials(credentials map[string]interface{}) (err error)
- type Connection
- type Credentials
- type TaskProvider
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 ¶
DecryptTaskProviders ...
func EncryptTaskProviders ¶
EncryptTaskProviders ... ToDo: Generalize these methods
func GetSprintTaskList ¶
func GetSprintTaskList(config []byte, sprint serializers.Sprint) (tasks []serializers.Task, err error)
GetSprintTaskList ...
func GetStatusMapping ¶
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 ¶
GetTaskTypeMappings ...
func RegisterTaskProvider ¶
func RegisterTaskProvider(name string, newProvider TaskProvider)
RegisterTaskProvider ...
func SanitizeTimeLogs ¶
SanitizeTimeLogs ...
func ValidateConfigs ¶
ValidateConfigs ...
func ValidateCredentials ¶
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 ...
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 ...
Click to show internal directories.
Click to hide internal directories.