Documentation ¶
Index ¶
- func DeleteProject(req *restful.Request, resp *restful.Response)
- func DeleteWhitelist(req *restful.Request, resp *restful.Response)
- func InitStorage() (err error)
- func ListProject(req *restful.Request, resp *restful.Response)
- func ListTask(req *restful.Request, resp *restful.Response)
- func ListWhitelist(req *restful.Request, resp *restful.Response)
- func UpdateProject(req *restful.Request, resp *restful.Response)
- func UpdateWhitelist(req *restful.Request, resp *restful.Response)
- type DeleteProjectType
- type DeleteWhitelistType
- type OperatorType
- type UpdateProjectType
- type UpdateWhitelistType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 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 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 UpdateProjectType ¶
type UpdateProjectType struct { OperatorType Data apisjob.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 []*apisjob.TableWhitelist `json:"data"` }
UpdateWhitelistType describe the param of http request to update whitelist.