controllers

package
v0.0.0-...-f35954e Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Fill

func Fill(parentID uint64, m map[uint64][]ms.RouteItem) []ms.RouteItem

Types

type APIController

type APIController struct {
	beego.Controller
	JSONRetMsg
}

APIController for backstage api

func (*APIController) CheckMD5

func (c *APIController) CheckMD5()

func (*APIController) CheckTime

func (c *APIController) CheckTime()

func (*APIController) GetAllItems

func (c *APIController) GetAllItems()

GetItems return items

func (*APIController) GetConfs

func (c *APIController) GetConfs()

GetConfs returns confs

func (*APIController) GetConfsWithMd5

func (c *APIController) GetConfsWithMd5()

GetConfsWithMd5 returns with md5

func (*APIController) GetEnvs

func (c *APIController) GetEnvs()

GetEnvs return envs

func (*APIController) GetHosts

func (c *APIController) GetHosts()

GetHosts return hosts

func (*APIController) GetItemsTree

func (c *APIController) GetItemsTree()

GetItems return items

func (*APIController) GetServs

func (c *APIController) GetServs()

func (*APIController) UpdateEnv

func (c *APIController) UpdateEnv()

UpdateEnv update env

func (*APIController) UpdateGroup

func (c *APIController) UpdateGroup()

GetItems return items

func (*APIController) UpdateHost

func (c *APIController) UpdateHost()

UpdateHost update host

func (*APIController) UpdateItem

func (c *APIController) UpdateItem()

UpdateItem update item

func (*APIController) UpdateServsConf

func (c *APIController) UpdateServsConf()

UpdateServsConf update conf

func (*APIController) UpdateUserGroup

func (c *APIController) UpdateUserGroup()

GetItems return items

type JSONRetMsg

type JSONRetMsg struct {
	// contains filtered or unexported fields
}

JSONRetMsg represent return data

func (*JSONRetMsg) GenRetJSON

func (r *JSONRetMsg) GenRetJSON() map[string]interface{}

GenRetJSON m to jsonM

type MainController

type MainController struct {
	beego.Controller
}

MainController main controller

func (*MainController) Home

func (c *MainController) Home()

Home goes to index.html file from ./../dist

type ReleaseController

type ReleaseController struct {
	beego.Controller
	JSONRetMsg
}

ReleaseController struct

func (*ReleaseController) Pack

func (c *ReleaseController) Pack()

Pack returns a list of users

func (*ReleaseController) Post

func (c *ReleaseController) Post()

//Post replace exe and restart

func (*ReleaseController) Trans

func (c *ReleaseController) Trans()

//Trans to server

type ThirdController

type ThirdController struct {
	beego.Controller
	JSONRetMsg
}

ThirdController for backstage api

func (*ThirdController) DeleteUser

func (c *ThirdController) DeleteUser()

GetEnvs return envs

Jump to

Keyboard shortcuts

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