distcc

package
v1.6.0-RC.9 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGcc

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

DeleteGcc handle the http request for deleting gcc.

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 InitStorage

func InitStorage() (err error)

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

func ListGcc

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

ListGcc handle the http request for listing gcc with conditions.

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 UpdateGcc

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

UpdateGcc handle the http request for updating gcc with full fields.

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.

Types

type DeleteGccType

type DeleteGccType struct {
	OperatorType
}

DeleteGccType describe the param of http request to delete gcc.

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 OperatorType

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

OperatorType describe the http request's operator.

type UpdateGccType

type UpdateGccType struct {
	OperatorType
	Data distcc.TableGcc `json:"data"`
}

UpdateGccType describe the param of http request to update gcc.

type UpdateProjectType

type UpdateProjectType struct {
	OperatorType
	Data    distcc.TableProjectSetting `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 load fields data from byte.

type UpdateWhitelistType

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

UpdateWhitelistType describe the param of http request to update whitelist.

Jump to

Keyboard shortcuts

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