Documentation ¶
Index ¶
- type ApiController
- type AppController
- type BaseController
- type HostController
- func (this *HostController) DelHostModule()
- func (this *HostController) DelPrivateDefaultApplicationHost()
- func (this *HostController) Details()
- func (this *HostController) GetHost4QuickImport()
- func (this *HostController) GetHostByCondition()
- func (this *HostController) GetHostById()
- func (this *HostController) GetTopoTree4view()
- func (this *HostController) HostQuery()
- func (this *HostController) ImportPrivateHostByExcel()
- func (this *HostController) ModHostModule()
- func (this *HostController) Put()
- func (this *HostController) QuickDistribute()
- func (this *HostController) QuickImport()
- func (this *HostController) ResHostModule()
- func (this *HostController) UpdateHostInfo()
- type MainController
- type ModuleController
- type SetController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiController ¶
type ApiController struct {
beego.Controller
}
func (*ApiController) GetCCHosts ¶
func (this *ApiController) GetCCHosts()
func (*ApiController) GetCCModuleTree ¶
func (this *ApiController) GetCCModuleTree()
func (*ApiController) GetHostsByIPs ¶
func (this *ApiController) GetHostsByIPs()
type AppController ¶
type AppController struct {
BaseController
}
func (*AppController) AddApp ¶
func (this *AppController) AddApp()
func (*AppController) DeleteApp ¶
func (this *AppController) DeleteApp()
func (*AppController) GetMainterners ¶
func (this *AppController) GetMainterners()
func (*AppController) Index ¶
func (this *AppController) Index()
func (*AppController) NewApp ¶
func (this *AppController) NewApp()
func (*AppController) TopologyIndex ¶
func (this *AppController) TopologyIndex()
type BaseController ¶
type BaseController struct { beego.Controller // contains filtered or unexported fields }
func (*BaseController) Prepare ¶
func (this *BaseController) Prepare()
type HostController ¶
type HostController struct {
BaseController
}
oprations for Host
func (*HostController) DelPrivateDefaultApplicationHost ¶
func (this *HostController) DelPrivateDefaultApplicationHost()
删除主机
func (*HostController) Details ¶
func (this *HostController) Details()
@Title Get @Description get Host by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Host @Failure 403 :id is empty @router /:id [get]
func (*HostController) GetHost4QuickImport ¶
func (this *HostController) GetHost4QuickImport()
func (*HostController) GetHostById ¶
func (this *HostController) GetHostById()
func (*HostController) GetTopoTree4view ¶
func (this *HostController) GetTopoTree4view()
func (*HostController) ImportPrivateHostByExcel ¶
func (this *HostController) ImportPrivateHostByExcel()
导入主机
func (*HostController) Put ¶
func (this *HostController) Put()
type MainController ¶
type MainController struct {
BaseController
}
func (*MainController) Index ¶
func (this *MainController) Index()
type ModuleController ¶
type ModuleController struct {
BaseController
}
oprations for Module
func (*ModuleController) Delete ¶
func (this *ModuleController) Delete()
@Title Delete @Description delete the Module @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*ModuleController) GetAll ¶
func (this *ModuleController) GetAll()
@Title Get All @Description get Module @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Module @Failure 403 @router / [get]
func (*ModuleController) GetOne ¶
func (this *ModuleController) GetOne()
@Title Get @Description get Module by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Module @Failure 403 :id is empty @router /:id [get]
func (*ModuleController) NewModule ¶
func (this *ModuleController) NewModule()
func (*ModuleController) Put ¶
func (this *ModuleController) Put()
@Title Update @Description update the Module @Param id path string true "The id you want to update" @Param body body models.Module true "body for Module content" @Success 200 {object} models.Module @Failure 403 :id is not int @router /:id [put]
type SetController ¶
type SetController struct {
BaseController
}
func (*SetController) DelSet ¶
func (this *SetController) DelSet()
func (*SetController) EditSet ¶
func (this *SetController) EditSet()
func (*SetController) GetAllSetInfo ¶
func (this *SetController) GetAllSetInfo()
func (*SetController) GetSetInfoById ¶
func (this *SetController) GetSetInfoById()
func (*SetController) NewSet ¶
func (this *SetController) NewSet()