tasks

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0, MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const RAW_ACCOUNT_TABLE = "zentao_api_accounts"
View Source
const RAW_BUG_TABLE = "zentao_api_bugs"
View Source
const RAW_DEPARTMENT_TABLE = "zentao_api_departments"
View Source
const RAW_EXECUTION_TABLE = "zentao_api_executions"
View Source
const RAW_PRODUCT_TABLE = "zentao_api_products"
View Source
const RAW_PROJECT_TABLE = "zentao_api_projects"
View Source
const RAW_STORY_TABLE = "zentao_api_stories"
View Source
const RAW_TASK_TABLE = "zentao_api_tasks"

Variables

View Source
var CollectAccountMeta = core.SubTaskMeta{
	Name:             "CollectAccount",
	EntryPoint:       CollectAccount,
	EnabledByDefault: true,
	Description:      "Collect Account data from Zentao api",
}
View Source
var CollectBugMeta = core.SubTaskMeta{
	Name:             "CollectBug",
	EntryPoint:       CollectBug,
	EnabledByDefault: true,
	Description:      "Collect Bug data from Zentao api",
}
View Source
var CollectDepartmentMeta = core.SubTaskMeta{
	Name:             "CollectDepartment",
	EntryPoint:       CollectDepartment,
	EnabledByDefault: true,
	Description:      "Collect Department data from Zentao api",
}
View Source
var CollectExecutionMeta = core.SubTaskMeta{
	Name:             "CollectExecution",
	EntryPoint:       CollectExecution,
	EnabledByDefault: true,
	Description:      "Collect Execution data from Zentao api",
}
View Source
var CollectProductMeta = core.SubTaskMeta{
	Name:             "CollectProduct",
	EntryPoint:       CollectProduct,
	EnabledByDefault: true,
	Description:      "Collect Product data from Zentao api",
}
View Source
var CollectProjectMeta = core.SubTaskMeta{
	Name:             "CollectProject",
	EntryPoint:       CollectProject,
	EnabledByDefault: true,
	Description:      "Collect Project data from Zentao api",
}
View Source
var CollectStoryMeta = core.SubTaskMeta{
	Name:             "CollectStory",
	EntryPoint:       CollectStory,
	EnabledByDefault: true,
	Description:      "Collect Story data from Zentao api",
}
View Source
var CollectTaskMeta = core.SubTaskMeta{
	Name:             "CollectTask",
	EntryPoint:       CollectTask,
	EnabledByDefault: true,
	Description:      "Collect Task data from Zentao api",
}
View Source
var ConvertAccountMeta = core.SubTaskMeta{
	Name:             "convertAccount",
	EntryPoint:       ConvertAccount,
	EnabledByDefault: true,
	Description:      "convert Zentao account",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertBugMeta = core.SubTaskMeta{
	Name:             "convertBug",
	EntryPoint:       ConvertBug,
	EnabledByDefault: true,
	Description:      "convert Zentao bug",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertDepartmentMeta = core.SubTaskMeta{
	Name:             "convertDepartment",
	EntryPoint:       ConvertDepartment,
	EnabledByDefault: true,
	Description:      "convert Zentao department",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertExecutionMeta = core.SubTaskMeta{
	Name:             "convertExecutions",
	EntryPoint:       ConvertExecutions,
	EnabledByDefault: true,
	Description:      "convert Zentao executions",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertProductMeta = core.SubTaskMeta{
	Name:             "convertProducts",
	EntryPoint:       ConvertProducts,
	EnabledByDefault: true,
	Description:      "convert Zentao products",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertStoryMeta = core.SubTaskMeta{
	Name:             "convertStory",
	EntryPoint:       ConvertStory,
	EnabledByDefault: true,
	Description:      "convert Zentao story",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ConvertTaskMeta = core.SubTaskMeta{
	Name:             "convertTask",
	EntryPoint:       ConvertTask,
	EnabledByDefault: true,
	Description:      "convert Zentao task",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractAccountMeta = core.SubTaskMeta{
	Name:             "extractAccount",
	EntryPoint:       ExtractAccount,
	EnabledByDefault: true,
	Description:      "extract Zentao account",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractBugMeta = core.SubTaskMeta{
	Name:             "extractBug",
	EntryPoint:       ExtractBug,
	EnabledByDefault: true,
	Description:      "extract Zentao bug",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractDepartmentMeta = core.SubTaskMeta{
	Name:             "extractDepartment",
	EntryPoint:       ExtractDepartment,
	EnabledByDefault: true,
	Description:      "extract Zentao department",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractExecutionMeta = core.SubTaskMeta{
	Name:             "extractExecutions",
	EntryPoint:       ExtractExecutions,
	EnabledByDefault: true,
	Description:      "extract Zentao executions",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractProductMeta = core.SubTaskMeta{
	Name:             "extractProducts",
	EntryPoint:       ExtractProducts,
	EnabledByDefault: true,
	Description:      "extract Zentao products",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractProjectMeta = core.SubTaskMeta{
	Name:             "extractProjects",
	EntryPoint:       ExtractProjects,
	EnabledByDefault: true,
	Description:      "extract Zentao projects",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractStoryMeta = core.SubTaskMeta{
	Name:             "extractStory",
	EntryPoint:       ExtractStory,
	EnabledByDefault: true,
	Description:      "extract Zentao story",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}
View Source
var ExtractTaskMeta = core.SubTaskMeta{
	Name:             "extractTask",
	EntryPoint:       ExtractTask,
	EnabledByDefault: true,
	Description:      "extract Zentao task",
	DomainTypes:      []string{core.DOMAIN_TYPE_TICKET},
}

Functions

func CollectAccount

func CollectAccount(taskCtx core.SubTaskContext) errors.Error

func CollectBug

func CollectBug(taskCtx core.SubTaskContext) errors.Error

func CollectDepartment

func CollectDepartment(taskCtx core.SubTaskContext) errors.Error

func CollectExecution

func CollectExecution(taskCtx core.SubTaskContext) errors.Error

func CollectProduct

func CollectProduct(taskCtx core.SubTaskContext) errors.Error

func CollectProject

func CollectProject(taskCtx core.SubTaskContext) errors.Error

func CollectStory

func CollectStory(taskCtx core.SubTaskContext) errors.Error

func CollectTask

func CollectTask(taskCtx core.SubTaskContext) errors.Error

func ConvertAccount

func ConvertAccount(taskCtx core.SubTaskContext) errors.Error

func ConvertBug

func ConvertBug(taskCtx core.SubTaskContext) errors.Error

func ConvertDepartment

func ConvertDepartment(taskCtx core.SubTaskContext) errors.Error

func ConvertExecutions

func ConvertExecutions(taskCtx core.SubTaskContext) errors.Error

func ConvertProducts

func ConvertProducts(taskCtx core.SubTaskContext) errors.Error

func ConvertStory

func ConvertStory(taskCtx core.SubTaskContext) errors.Error

func ConvertTask

func ConvertTask(taskCtx core.SubTaskContext) errors.Error

func ExtractAccount

func ExtractAccount(taskCtx core.SubTaskContext) errors.Error

func ExtractBug

func ExtractBug(taskCtx core.SubTaskContext) errors.Error

func ExtractDepartment

func ExtractDepartment(taskCtx core.SubTaskContext) errors.Error

func ExtractExecutions

func ExtractExecutions(taskCtx core.SubTaskContext) errors.Error

func ExtractProducts

func ExtractProducts(taskCtx core.SubTaskContext) errors.Error

func ExtractProjects

func ExtractProjects(taskCtx core.SubTaskContext) errors.Error

func ExtractStory

func ExtractStory(taskCtx core.SubTaskContext) errors.Error

func ExtractTask

func ExtractTask(taskCtx core.SubTaskContext) errors.Error

func GetTotalPagesFromResponse

func GetTotalPagesFromResponse(res *http.Response, args *helper.ApiCollectorArgs) (int, errors.Error)

func NewZentaoApiClient

func NewZentaoApiClient(taskCtx core.TaskContext, connection *models.ZentaoConnection) (*helper.ApiAsyncClient, error)

Types

type ZentaoApiParams

type ZentaoApiParams struct {
	ConnectionId uint64
	ProductId    int64
	ExecutionId  int64
	ProjectId    int64
}

type ZentaoOptions

type ZentaoOptions struct {
	// TODO add some custom options here if necessary
	// options means some custom params required by plugin running.
	// Such As How many rows do your want
	// You can use it in sub tasks and you need pass it in main.go and pipelines.
	ConnectionId uint64 `json:"connectionId"`
	ProductId    int64
	ExecutionId  int64
	ProjectId    int64
	Tasks        []string `json:"tasks,omitempty"`
	Since        string
}

func DecodeAndValidateTaskOptions

func DecodeAndValidateTaskOptions(options map[string]interface{}) (*ZentaoOptions, error)

type ZentaoPagination

type ZentaoPagination struct {
	Total int `json:"total"`
	Limit int `json:"limit"`
}

type ZentaoTaskData

type ZentaoTaskData struct {
	Options   *ZentaoOptions
	ApiClient *helper.ApiAsyncClient
}

Jump to

Keyboard shortcuts

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