common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

common package contains all shared structs(data structures) required for all connectors

Index

Constants

This section is empty.

Variables

View Source
var PREDICTED_SUB_TYPES map[string]PREDICTED_SUB_TYPE = map[string]PREDICTED_SUB_TYPE{
	"PREDICTED_AUTOMATION_BUG": PREDICTED_AUTOMATION_BUG,
	"PREDICTED_SYSTEM_BUG":     PREDICTED_SYSTEM_BUG,
	"PREDICTED_PRODUCT_BUG":    PREDICTED_PRODUCT_BUG,
}
View Source
var TFA_DEFECT_TYPE_TO_SUB_TYPE map[string]PREDICTED_SUB_TYPE = map[string]PREDICTED_SUB_TYPE{
	"Automation Bug": PREDICTED_AUTOMATION_BUG,
	"Product Bug":    PREDICTED_PRODUCT_BUG,
	"System Issue":   PREDICTED_SYSTEM_BUG,
}

Functions

func PrintGreen

func PrintGreen(str string)

func PrintHeader

func PrintHeader(version string)

func PrintRed

func PrintRed(str string)

func SendHTTPRequest

func SendHTTPRequest(method, url, auth_token string, body *bytes.Buffer, client *http.Client) ([]byte, error, bool)

Types

type GeneralUpdatedList

type GeneralUpdatedList interface {
	GetSelf() GeneralUpdatedList
}

GeneralUpdatedList is an updated list of object, with the prediction from TFA classifier each connector should have it's own UpdatedList structure and implement the GeneralUpdatedList interface

type PREDICTED_SUB_TYPE

type PREDICTED_SUB_TYPE map[string]string
var PREDICTED_AUTOMATION_BUG PREDICTED_SUB_TYPE = PREDICTED_SUB_TYPE{
	"typeRef":   "TO_INVESTIGATE",
	"longName":  "Predicted Automation Bug",
	"shortName": "TIA",
	"color":     "#ffeeaa",
}
var PREDICTED_PRODUCT_BUG PREDICTED_SUB_TYPE = PREDICTED_SUB_TYPE{
	"typeRef":   "TO_INVESTIGATE",
	"longName":  "Predicted Product Bug",
	"shortName": "TIP",
	"color":     "#ffaaaa",
}
var PREDICTED_SYSTEM_BUG PREDICTED_SUB_TYPE = PREDICTED_SUB_TYPE{
	"typeRef":   "TO_INVESTIGATE",
	"longName":  "Predicted System Issue",
	"shortName": "TIS",
	"color":     "#aaaaff",
}

type TFAInput

type TFAInput struct {
	Id       string `json:"id"`
	Project  string `json:"project"`
	Messages string `json:"messages"`
}

type TFAModel

type TFAModel map[string]TFAInput

Jump to

Keyboard shortcuts

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