task

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright © 2022 zbc <zbc@sangfor.com.cn>

Copyright © 2022 zbc <zbc@sangfor.com.cn>

Copyright © 2022 zbc <zbc@sangfor.com.cn>

Copyright © 2022 zbc <zbc@sangfor.com.cn>

Copyright © 2022 zbc <zbc@sangfor.com.cn>

Copyright © 2023 xmz <xmz@sangfor.com.cn>

Copyright © 2023 xmz <xmz@sangfor.com.cn>

Copyright © 2023 xmz <xmz@sangfor.com.cn>

Index

Constants

This section is empty.

Variables

Functions

func CheckTaskName

func CheckTaskName(modelName string, helpCmd string) error

*

  • Validate task/model name

func RunHttpServer

func RunHttpServer()

* Start HTTP server and register routes

Types

type ResponseData

type ResponseData struct {
	Code    string      `json:"code"`
	Message string      `json:"message"`
	Success bool        `json:"success"`
	Data    interface{} `json:"data"`
}

type TaskColumn

type TaskColumn struct {
	UUID       string `json:"uuid"`
	Name       string `json:"name"`
	Status     string `json:"status"`
	Template   string `json:"template"`
	Project    string `json:"project"`
	Pool       string `json:"pool"`
	Namespace  string `json:"namespace"`
	CreatedBy  string `json:"created_by"`
	CreateTime string `json:"create_time"`
	Age        string `json:"age,omitempty"`
}

*

  • Task columns for listing display

type TaskFinishedCallback

type TaskFinishedCallback struct {
	Name    string `json:"name"`
	Uuid    string `json:"uuid"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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