host

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHosts

func AddHosts(c *gin.Context)

func BindHostToHostGroup

func BindHostToHostGroup(c *gin.Context)

func BindHostToHostGroupV2

func BindHostToHostGroupV2(c *gin.Context)

func BindTemplateToGroup

func BindTemplateToGroup(c *gin.Context)

func BindTemplateToGroupV2

func BindTemplateToGroupV2(c *gin.Context)

func CheckHostBindHostGroup

func CheckHostBindHostGroup(c *gin.Context)

func CrateHostGroup

func CrateHostGroup(c *gin.Context)

func CreateAggregator

func CreateAggregator(c *gin.Context)

func CreateDeployType

func CreateDeployType(c *gin.Context)

func CreateDeployTypeV2

func CreateDeployTypeV2(c *gin.Context)

func CreatePlugin

func CreatePlugin(c *gin.Context)

func CreatePluginV2

func CreatePluginV2(c *gin.Context)

func CreateTplPlugin

func CreateTplPlugin(c *gin.Context)

func DeleteAggregator

func DeleteAggregator(c *gin.Context)

func DeleteDeployType

func DeleteDeployType(c *gin.Context)

func DeleteDeployTypeV2

func DeleteDeployTypeV2(c *gin.Context)

func DeleteHost

func DeleteHost(c *gin.Context)

delete host & related grp_host, graphs, alarms

func DeleteHostGroup

func DeleteHostGroup(c *gin.Context)

func DeleteHostGroupV2

func DeleteHostGroupV2(c *gin.Context)

func DeleteHosts

func DeleteHosts(c *gin.Context)

func DeletePlugin

func DeletePlugin(c *gin.Context)

func DeleteTplPlugin

func DeleteTplPlugin(c *gin.Context)

func GetAggregator

func GetAggregator(c *gin.Context)

func GetAggregatorListOfGrp

func GetAggregatorListOfGrp(c *gin.Context)

func GetAllDeployType

func GetAllDeployType(c *gin.Context)

func GetAllDeployTypeV2

func GetAllDeployTypeV2(c *gin.Context)

func GetAllTplRelatedPlugin

func GetAllTplRelatedPlugin(c *gin.Context)

func GetDeployType

func GetDeployType(c *gin.Context)

func GetDeployTypeOfTplPlugin

func GetDeployTypeOfTplPlugin(c *gin.Context)

func GetDeployTypeV2

func GetDeployTypeV2(c *gin.Context)

func GetDomainOfTplPlugin

func GetDomainOfTplPlugin(c *gin.Context)

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 GetGrpsRelatedHost(c *gin.Context)

func GetHostBindToWhichHostGroup

func GetHostBindToWhichHostGroup(c *gin.Context)

func GetHostGroup

func GetHostGroup(c *gin.Context)

func GetHostGroupInfo

func GetHostGroupInfo(c *gin.Context)

func GetHostGroupWithTemplate

func GetHostGroupWithTemplate(c *gin.Context)

func GetHostGroups

func GetHostGroups(c *gin.Context)

func GetHostGroupsWithTplPlugin

func GetHostGroupsWithTplPlugin(c *gin.Context)

func GetHostIP

func GetHostIP(c *gin.Context)

func GetHostList

func GetHostList(c *gin.Context)

func GetHosts

func GetHosts(c *gin.Context)

func GetIPList

func GetIPList(c *gin.Context)

func GetPluginOfGrp

func GetPluginOfGrp(c *gin.Context)

func GetPlugins

func GetPlugins(c *gin.Context)

func GetTemplateOfHostGroup

func GetTemplateOfHostGroup(c *gin.Context)

func GetTemplateOfHostGroupV2

func GetTemplateOfHostGroupV2(c *gin.Context)

func GetTplRelatedPlugin

func GetTplRelatedPlugin(c *gin.Context)

func GetTplRelatedPluginViaName

func GetTplRelatedPluginViaName(c *gin.Context)

func GetTplsRelatedHost

func GetTplsRelatedHost(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

func SetMaintain

func SetMaintain(c *gin.Context)

func UnBindAHostToHostGroup

func UnBindAHostToHostGroup(c *gin.Context)

func UnBindAHostToHostGroupV2

func UnBindAHostToHostGroupV2(c *gin.Context)

func UnBindPluginToGrp

func UnBindPluginToGrp(c *gin.Context)

func UnBindTemplateToGroup

func UnBindTemplateToGroup(c *gin.Context)

func UnBindTemplateToGroupV2

func UnBindTemplateToGroupV2(c *gin.Context)

func UnsetMaintain

func UnsetMaintain(c *gin.Context)

func UpdateAggregator

func UpdateAggregator(c *gin.Context)

func UpdateCmdbDeployType

func UpdateCmdbDeployType(c *gin.Context)

func UpdateDeployType

func UpdateDeployType(c *gin.Context)

func UpdateDeployTypeV2

func UpdateDeployTypeV2(c *gin.Context)

func UpdateTplPlugin

func UpdateTplPlugin(c *gin.Context)

Types

type APIAddHostInput

type APIAddHostInput struct {
	Hosts []string `json:"hosts" binding:"required"`
}

type APIBindHostToHostGroupInput

type APIBindHostToHostGroupInput struct {
	Hosts       []string `json:"hosts" binding:"required"`
	HostGroupID int64    `json:"hostgroup_id" binding:"required"`
}

type APIBindHostToHostGroupInputV2

type APIBindHostToHostGroupInputV2 struct {
	Hosts     []string `json:"hosts" binding:"required"`
	HostGroup string   `json:"hostgroup" binding:"required"`
}

type APIBindTemplateToGroupInputs

type APIBindTemplateToGroupInputs struct {
	TplID int64 `json:"tpl_id"`
	GrpID int64 `json:"grp_id"`
}

type APIBindTemplateToGroupInputsV2

type APIBindTemplateToGroupInputsV2 struct {
	TplName string `json:"tpl_name"`
	GrpName string `json:"grp_name"`
}

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 APICreateDeployType struct {
	CmdbID int64  `json:"cmdb_id" binding:"required"`
	TplIDs string `json:"tpl_ids" binding:"required"`
}

type APICreateDeployTypeV2

type APICreateDeployTypeV2 struct {
	//CmdbID int64  `json:"cmdb_id" binding:"required"`
	CompName string `json:"comp_name" binding:"required"`
	TplIDs   string `json:"tpl_ids" binding:"required"`
}

type APICreatePluginInput

type APICreatePluginInput struct {
	GrpId   int64  `json:"hostgroup_id" binding:"required"`
	DirPaht string `json:"dir_path" binding:"required"`
}

type APICreatePluginInputV2

type APICreatePluginInputV2 struct {
	GrpName string `json:"hostgroup" binding:"required"`
	DirPath string `json:"dir_path" binding:"required"`
}

type APICreateTplPlugin

type APICreateTplPlugin struct {
	TplID  int64  `json:"tpl_id" binding:"required"`
	Plugin string `json:"plugin" binding:"required"`
}

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 APIMaintainInputs struct {
	HostNames []string `json:"host_names"`
	Duration  int64    `json:"duration"`
}

type APIUnBindAHostToHostGroup

type APIUnBindAHostToHostGroup struct {
	HostID      int64 `json:"host_id" binding:"required"`
	HostGroupID int64 `json:"hostgroup_id" binding:"required"`
}

type APIUnBindAHostToHostGroupV2

type APIUnBindAHostToHostGroupV2 struct {
	Host      string `json:"host" binding:"required"`
	HostGroup string `json:"hostgroup" binding:"required"`
}

type APIUnBindPluginToGroupInputs

type APIUnBindPluginToGroupInputs struct {
	PluginDir string `json:"plugin_dir"`
	GrpName   string `json:"grp_name"`
}

type APIUnBindTemplateToGroupInputs

type APIUnBindTemplateToGroupInputs struct {
	TplID int64 `json:"tpl_id"`
	GrpID int64 `json:"grp_id"`
}

type APIUnBindTemplateToGroupInputsV2

type APIUnBindTemplateToGroupInputsV2 struct {
	TplName string `json:"tpl_name"`
	GrpName string `json:"grp_name"`
}

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 DeployType struct {
	DictCode  string `json:"dict_code"`
	DictValue string `json:"dict_value"`
}

type HostBindHostGroupStruct

type HostBindHostGroupStruct struct {
	HostID int `json:"host_id"`
	GrpID  int `json:"grp_id"`
}

type QueryResponse

type QueryResponse struct {
	Code    int                      `json:"code"`
	Message string                   `json:"message"`
	Object  []map[string]interface{} `json:"object"`
	Success bool                     `json:"success"`
}

Jump to

Keyboard shortcuts

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