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

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