disttask

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoDeleteProject

func AutoDeleteProject(req *restful.Request, resp *restful.Response)

AutoDeleteProject 自动从url中获取并补全scene, 然后delete project

func AutoDeleteWhitelist

func AutoDeleteWhitelist(req *restful.Request, resp *restful.Response)

AutoDeleteWhitelist 自动从url中获取并补全scene, 然后delete whitelist

func AutoDeleteWorker

func AutoDeleteWorker(req *restful.Request, resp *restful.Response)

AutoDeleteWorker 自动从url中获取并补全scene, 然后delete worker

func AutoListProject

func AutoListProject(req *restful.Request, resp *restful.Response)

AutoListProject 自动从url中获取并补全scene, 然后list project

func AutoListTask

func AutoListTask(req *restful.Request, resp *restful.Response)

AutoListTask 自动从url中获取并补全scene, 然后list task

func AutoListWhitelist

func AutoListWhitelist(req *restful.Request, resp *restful.Response)

AutoDeleteProject 自动从url中获取并补全scene, 然后delete project

func AutoListWorkStats

func AutoListWorkStats(req *restful.Request, resp *restful.Response)

AutoListWorkStats 自动从url中获取并补全scene, 然后list stats

func AutoListWorker

func AutoListWorker(req *restful.Request, resp *restful.Response)

AutoListWorker 自动从url中获取并补全scene, 然后list worker

func AutoUpdateProject

func AutoUpdateProject(req *restful.Request, resp *restful.Response)

AutoUpdateProject 自动从url中获取并补全scene, 然后update project

func AutoUpdateWhitelist

func AutoUpdateWhitelist(req *restful.Request, resp *restful.Response)

AutoUpdateWhitelist 自动从url中获取并补全scene, 然后update whitelist

func AutoUpdateWorker

func AutoUpdateWorker(req *restful.Request, resp *restful.Response)

AutoUpdateWorker 自动从url中获取并补全scene, 然后update worker

func DeleteProject

func DeleteProject(req *restful.Request, resp *restful.Response)

DeleteProject handle the http request for deleting project.

func DeleteWhitelist

func DeleteWhitelist(req *restful.Request, resp *restful.Response)

DeleteWhitelist handle the http request for deleting whitelist.

func DeleteWorker

func DeleteWorker(req *restful.Request, resp *restful.Response)

DeleteWorker handle the http request for deleting worker.

func InitStorage

func InitStorage() (err error)

InitStorage After server init, the instances of manager, store ... etc. should be given into api handler.

func ListClientVersion

func ListClientVersion(req *restful.Request, resp *restful.Response)

ListClientVersion handle the http request for listing client version

func ListProject

func ListProject(req *restful.Request, resp *restful.Response)

ListProject handle the http request for listing project with conditions.

func ListTask

func ListTask(req *restful.Request, resp *restful.Response)

ListTask handle the http request for listing task with conditions.

func ListWhitelist

func ListWhitelist(req *restful.Request, resp *restful.Response)

ListWhitelist handle the http request for listing whitelist with conditions.

func ListWorkStats

func ListWorkStats(req *restful.Request, resp *restful.Response)

ListWorkStats handle the http request for listing work stats with conditions.

func ListWorker

func ListWorker(req *restful.Request, resp *restful.Response)

ListWorker handle the http request for listing worker with conditions.

func ListWorkerImages

func ListWorkerImages(req *restful.Request, resp *restful.Response)

ListWorkerImages handle the http request for listing worker images

func Summary

func Summary(req *restful.Request, resp *restful.Response)

Summary handle the http request for summary cpu used info.

func SummaryByUser

func SummaryByUser(req *restful.Request, resp *restful.Response)

SummaryByUser handle the http request for summary cpu used info group by user.

func UpdateProject

func UpdateProject(req *restful.Request, resp *restful.Response)

UpdateProject handle the http request for updating project with some fields.

func UpdateWhitelist

func UpdateWhitelist(req *restful.Request, resp *restful.Response)

UpdateWhitelist handle the http request for updating whitelist with full fields.

func UpdateWorker

func UpdateWorker(req *restful.Request, resp *restful.Response)

UpdateWorker handle the http request for updating worker with full fields.

Types

type DeleteProjectType

type DeleteProjectType struct {
	OperatorType
}

DeleteProjectType describe the param of http request to delete project.

type DeleteWhitelistType

type DeleteWhitelistType struct {
	OperatorType
	Data []*engine.WhiteListKey `json:"data"`
}

DeleteWhitelistType describe the param of http request to delete whitelist.

type DeleteWorkerType

type DeleteWorkerType struct {
	OperatorType
}

DeleteWorkerType describe the param of http request to delete worker.

type OperatorType

type OperatorType struct {
	Operator string `json:"operator"`
}

OperatorType describe the http request's operator.

type UpdateProjectSettingShell

type UpdateProjectSettingShell struct {
	disttask.TableProjectSetting

	CCacheEnable bool `json:"ccache_enabled"`
}

UpdateProjectSettingShell get project settings and add some extra message

type UpdateProjectType

type UpdateProjectType struct {
	OperatorType
	Data    UpdateProjectSettingShell `json:"data"`
	RawData map[string]interface{}    `json:"-"`
}

UpdateProjectType describe the param of http request to update project.

func (*UpdateProjectType) CheckData

func (upt *UpdateProjectType) CheckData() error

CheckData check if the data is valid.

func (*UpdateProjectType) Load

func (upt *UpdateProjectType) Load(rawBody []byte) error

Load UpdateProjectType from http body bytes

type UpdateWhitelistType

type UpdateWhitelistType struct {
	OperatorType
	Data []*disttask.TableWhitelist `json:"data"`
}

UpdateWhitelistType describe the param of http request to update whitelist.

type UpdateWorkerType

type UpdateWorkerType struct {
	OperatorType
	Data disttask.TableWorker `json:"data"`
}

UpdateWorkerType describe the param of http request to update worker.

Jump to

Keyboard shortcuts

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