host

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 12 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindHostToHostGroup

func BindHostToHostGroup(c *gin.Context)

func BindTemplateToGroup

func BindTemplateToGroup(c *gin.Context)

func CreateAggregator

func CreateAggregator(c *gin.Context)

func CreateHostGroup added in v0.2.2

func CreateHostGroup(c *gin.Context)

func CreatePlugin

func CreatePlugin(c *gin.Context)

func DeleteAggregator

func DeleteAggregator(c *gin.Context)

func DeleteHostGroup

func DeleteHostGroup(c *gin.Context)

func DeletePlugin

func DeletePlugin(c *gin.Context)

func GetAggregator

func GetAggregator(c *gin.Context)

func GetAggregatorListOfGrp

func GetAggregatorListOfGrp(c *gin.Context)

func GetGrpsRelatedHost

func GetGrpsRelatedHost(c *gin.Context)

func GetHostBindToWhichHostGroup

func GetHostBindToWhichHostGroup(c *gin.Context)

func GetHostGroup

func GetHostGroup(c *gin.Context)

func GetHostGroupWithTemplate

func GetHostGroupWithTemplate(c *gin.Context)

func GetHostGroups

func GetHostGroups(c *gin.Context)

func GetPluginOfGrp

func GetPluginOfGrp(c *gin.Context)

func GetTemplateOfHostGroup

func GetTemplateOfHostGroup(c *gin.Context)

func GetTplsRelatedHost

func GetTplsRelatedHost(c *gin.Context)

func PatchHostGroupHost added in v0.2.2

func PatchHostGroupHost(c *gin.Context)

func PutHostGroup added in v0.2.1

func PutHostGroup(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

func SetMaintain added in v0.2.1

func SetMaintain(c *gin.Context)

func UnBindAHostToHostGroup

func UnBindAHostToHostGroup(c *gin.Context)

func UnBindTemplateToGroup

func UnBindTemplateToGroup(c *gin.Context)

func UnsetMaintain added in v0.2.1

func UnsetMaintain(c *gin.Context)

func UpdateAggregator

func UpdateAggregator(c *gin.Context)

Types

type APIBindHostToHostGroupInput

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

type APIBindTemplateToGroupInputs

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

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 APICreateHostGroup added in v0.2.2

type APICreateHostGroup struct {
	Name string `json:"name" binding:"required"`
}

type APICreatePluginInput

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

type APIHostGroupInputs added in v0.2.1

type APIHostGroupInputs struct {
	ID   int64  `json:"id" binding:"required"`
	Name string `json:"grp_name" binding:"required"`
}

type APIPatchHostGroupHost added in v0.2.2

type APIPatchHostGroupHost struct {
	Action string   `json:"action" binding:"required"`
	Hosts  []string `json:"hosts" binding:"required"`
}

type APISetMaintainInput added in v0.2.1

type APISetMaintainInput struct {
	Hosts []string `json:"hosts"`
	Ids   []int64  `json:"ids"`
	Begin int64    `json:"maintain_begin" binding:"required"`
	End   int64    `json:"maintain_end" binding:"required"`
}

type APIUnBindAHostToHostGroup

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

type APIUnBindTemplateToGroupInputs

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

type APIUnsetMaintainInput added in v0.2.1

type APIUnsetMaintainInput struct {
	Hosts []string `json:"hosts"`
	Ids   []int64  `json:"ids"`
}

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"`
}

Jump to

Keyboard shortcuts

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