Documentation ¶
Index ¶
- func AddHosts(c *gin.Context)
- func BindHostToHostGroup(c *gin.Context)
- func BindHostToHostGroupV2(c *gin.Context)
- func BindTemplateToGroup(c *gin.Context)
- func BindTemplateToGroupV2(c *gin.Context)
- func CheckHostBindHostGroup(c *gin.Context)
- func CrateHostGroup(c *gin.Context)
- func CreateAggregator(c *gin.Context)
- func CreateDeployType(c *gin.Context)
- func CreateDeployTypeV2(c *gin.Context)
- func CreatePlugin(c *gin.Context)
- func CreatePluginV2(c *gin.Context)
- func CreateTplPlugin(c *gin.Context)
- func DeleteAggregator(c *gin.Context)
- func DeleteDeployType(c *gin.Context)
- func DeleteDeployTypeV2(c *gin.Context)
- func DeleteHost(c *gin.Context)
- func DeleteHostGroup(c *gin.Context)
- func DeleteHostGroupV2(c *gin.Context)
- func DeleteHosts(c *gin.Context)
- func DeletePlugin(c *gin.Context)
- func DeleteTplPlugin(c *gin.Context)
- func GetAggregator(c *gin.Context)
- func GetAggregatorListOfGrp(c *gin.Context)
- func GetAllDeployType(c *gin.Context)
- func GetAllDeployTypeV2(c *gin.Context)
- func GetAllTplRelatedPlugin(c *gin.Context)
- func GetDeployType(c *gin.Context)
- func GetDeployTypeOfTplPlugin(c *gin.Context)
- func GetDeployTypeV2(c *gin.Context)
- func GetDomainOfTplPlugin(c *gin.Context)
- func GetGrpsRelatedHost(c *gin.Context)
- func GetHostBindToWhichHostGroup(c *gin.Context)
- func GetHostGroup(c *gin.Context)
- func GetHostGroupInfo(c *gin.Context)
- func GetHostGroupWithTemplate(c *gin.Context)
- func GetHostGroups(c *gin.Context)
- func GetHostGroupsWithTplPlugin(c *gin.Context)
- func GetHostIP(c *gin.Context)
- func GetHostList(c *gin.Context)
- func GetHosts(c *gin.Context)
- func GetIPList(c *gin.Context)
- func GetPluginOfGrp(c *gin.Context)
- func GetPlugins(c *gin.Context)
- func GetTemplateOfHostGroup(c *gin.Context)
- func GetTemplateOfHostGroupV2(c *gin.Context)
- func GetTplRelatedPlugin(c *gin.Context)
- func GetTplRelatedPluginViaName(c *gin.Context)
- func GetTplsRelatedHost(c *gin.Context)
- func Routes(r *gin.Engine)
- func SetMaintain(c *gin.Context)
- func UnBindAHostToHostGroup(c *gin.Context)
- func UnBindAHostToHostGroupV2(c *gin.Context)
- func UnBindPluginToGrp(c *gin.Context)
- func UnBindTemplateToGroup(c *gin.Context)
- func UnBindTemplateToGroupV2(c *gin.Context)
- func UnsetMaintain(c *gin.Context)
- func UpdateAggregator(c *gin.Context)
- func UpdateCmdbDeployType(c *gin.Context)
- func UpdateDeployType(c *gin.Context)
- func UpdateDeployTypeV2(c *gin.Context)
- func UpdateTplPlugin(c *gin.Context)
- type APIAddHostInput
- type APIBindHostToHostGroupInput
- type APIBindHostToHostGroupInputV2
- type APIBindTemplateToGroupInputs
- type APIBindTemplateToGroupInputsV2
- type APICrateHostGroup
- type APICreateAggregatorInput
- type APICreateDeployType
- type APICreateDeployTypeV2
- type APICreatePluginInput
- type APICreatePluginInputV2
- type APICreateTplPlugin
- type APIDeleteHostsInputs
- type APIDeployTypeOfTplPluginInput
- type APIMaintainInputs
- type APIUnBindAHostToHostGroup
- type APIUnBindAHostToHostGroupV2
- type APIUnBindPluginToGroupInputs
- type APIUnBindTemplateToGroupInputs
- type APIUnBindTemplateToGroupInputsV2
- type APIUpdateAggregatorInput
- type CmdbQueryResponse
- type DeployType
- type HostBindHostGroupStruct
- type QueryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindHostToHostGroup ¶
func BindHostToHostGroupV2 ¶
func BindTemplateToGroup ¶
func BindTemplateToGroupV2 ¶
func CheckHostBindHostGroup ¶
func CrateHostGroup ¶
func CreateAggregator ¶
func CreateDeployType ¶
func CreateDeployTypeV2 ¶
func CreatePlugin ¶
func CreatePluginV2 ¶
func CreateTplPlugin ¶
func DeleteAggregator ¶
func DeleteDeployType ¶
func DeleteDeployTypeV2 ¶
func DeleteHostGroup ¶
func DeleteHostGroupV2 ¶
func DeleteHosts ¶
func DeletePlugin ¶
func DeleteTplPlugin ¶
func GetAggregator ¶
func GetAggregatorListOfGrp ¶
func GetAllDeployType ¶
func GetAllDeployTypeV2 ¶
func GetAllTplRelatedPlugin ¶
func GetDeployType ¶
func GetDeployTypeV2 ¶
func GetDomainOfTplPlugin ¶
Get component\template\plugin via domain name, according components configured in cmdb (http://cmdb3.sysop.vipshop.com/app_comp_list.jspx) & db table deploy_type
func GetGrpsRelatedHost ¶
func GetHostGroup ¶
func GetHostGroupInfo ¶
func GetHostGroups ¶
func GetHostList ¶
func GetPluginOfGrp ¶
func GetPlugins ¶
func GetTemplateOfHostGroup ¶
func GetTplRelatedPlugin ¶
func GetTplsRelatedHost ¶
func SetMaintain ¶
func UnBindAHostToHostGroup ¶
func UnBindPluginToGrp ¶
func UnBindTemplateToGroup ¶
func UnBindTemplateToGroupV2 ¶
func UnsetMaintain ¶
func UpdateAggregator ¶
func UpdateCmdbDeployType ¶
func UpdateDeployType ¶
func UpdateDeployTypeV2 ¶
func UpdateTplPlugin ¶
Types ¶
type APIAddHostInput ¶
type APIAddHostInput struct {
Hosts []string `json:"hosts" binding:"required"`
}
type APICrateHostGroup ¶
type APICrateHostGroup struct {
Name string `json:"name" binding:"required"`
}
type APICreateAggregatorInput ¶
type APICreateAggregatorInput struct { GrpId int64 `json:"hostgroup_id" binding:"required"` Numerator string `json:"numerator" binding:"required"` Denominator string `json:"denominator" binding:"required"` Endpoint string `json:"endpoint" binding:"required"` Metric string `json:"metric" binding:"required"` Tags string `json:"tags" binding:"exists"` Step int `json:"step" binding:"required"` }
type APICreateDeployType ¶
type APICreateDeployTypeV2 ¶
type APICreatePluginInput ¶
type APICreatePluginInputV2 ¶
type APICreateTplPlugin ¶
type APIDeleteHostsInputs ¶
type APIDeleteHostsInputs struct {
HostNames []string `json:"host_names"`
}
type APIDeployTypeOfTplPluginInput ¶
type APIDeployTypeOfTplPluginInput struct {
DeployID int `json:"deploy_id" binding:"required"`
}
type APIMaintainInputs ¶
type APIUpdateAggregatorInput ¶
type APIUpdateAggregatorInput struct { ID int64 `json:"id" binding:"required"` Numerator string `json:"numerator" binding:"required"` Denominator string `json:"denominator" binding:"required"` Endpoint string `json:"endpoint" binding:"required"` Metric string `json:"metric" binding:"required"` Tags string `json:"tags" binding:"exists"` Step int `json:"step" binding:"required"` }
type CmdbQueryResponse ¶
type CmdbQueryResponse struct { Code int `json:"code"` Message string `json:"message"` //Object []map[string]interface{} `json:"object"` Object []DeployType `json:"object"` Success bool `json:"success"` }
type DeployType ¶
type HostBindHostGroupStruct ¶
Click to show internal directories.
Click to hide internal directories.