controllers

package
v0.0.0-...-e4b1f33 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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) SetDefaultApp

func (this *AppController) SetDefaultApp()

切换默认业务

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) DelHostModule

func (this *HostController) DelHostModule()

移至空闲机/故障机

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) GetHostByCondition

func (this *HostController) GetHostByCondition()

查询主机

func (*HostController) GetHostById

func (this *HostController) GetHostById()

func (*HostController) GetTopoTree4view

func (this *HostController) GetTopoTree4view()

func (*HostController) HostQuery

func (this *HostController) HostQuery()

主机管理

func (*HostController) ImportPrivateHostByExcel

func (this *HostController) ImportPrivateHostByExcel()

导入主机

func (*HostController) ModHostModule

func (this *HostController) ModHostModule()

转移主机

func (*HostController) Put

func (this *HostController) Put()

func (*HostController) QuickDistribute

func (this *HostController) QuickDistribute()

分配主机

func (*HostController) QuickImport

func (this *HostController) QuickImport()

快速分配

func (*HostController) ResHostModule

func (this *HostController) ResHostModule()

上交主机

func (*HostController) UpdateHostInfo

func (this *HostController) UpdateHostInfo()

更新主机信息

type MainController

type MainController struct {
	BaseController
}

func (*MainController) Index

func (this *MainController) Index()

func (*MainController) Login

func (this *MainController) Login()

登录

func (*MainController) Logout

func (this *MainController) Logout()

退出登录

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()

Jump to

Keyboard shortcuts

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