testplatform

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePipeline

func CreatePipeline(uid uint, payload view.TestPipeline) (err error)

func DeletePipeline

func DeletePipeline(id int) (err error)

func DispatchTask

func DispatchTask(uid, pipelineID uint) (err error)

func Init

func Init(o Option)

func ListPipeline

func ListPipeline(params view.ReqListPipeline) (pipelines []view.TestPipelineUV, err error)

func ListTasks

func ListTasks(params view.ReqQueryTestTasks) (list []view.TestTask, pagination view.Pagination, err error)

func TaskSteps

func TaskSteps(taskId uint) (list []view.TestTaskStepStatus, err error)

func UpdatePipeline

func UpdatePipeline(uid uint, payload view.TestPipeline) (err error)

func UpdateTaskStatus

func UpdateTaskStatus(params view.TestTaskEvent) (err error)

func WorkerZones

func WorkerZones() (zones []view.WorkerZone, err error)

Types

type Option

type Option struct {
	Enable         bool
	DB             *gorm.DB
	GitAccessToken string
	Worker         struct {
		HeartbeatTimeout time.Duration
		LocalQueueDir    string
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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