controllers

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: GPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TypeConf contain setting.AnalyzeTypeDict
	TypeConf map[string]interface{}
)

Functions

func ErrorReturn

func ErrorReturn() *models.CodeInfo

ErrorReturn return the error struct

func FileUpload

func FileUpload(system string, platform string, c *FileController) *models.CodeInfo

FileUpload save file and file info after upload file

func GetAliveServerList

func GetAliveServerList() []string

GetAliveServerList return alive server url list

func GetServerList

func GetServerList() []string

GetServerList Get all server url string

func HasInstall

func HasInstall() int

HasInstall check current step with install

func IsLearn

func IsLearn() bool

IsLearn is watching mode

func WatchModeExempt

func WatchModeExempt(c *BaseController) bool

WatchModeExempt emmm...

Types

type AgentApiController

type AgentApiController struct {
	beego.Controller
}

AgentApiController web api for agent

func (*AgentApiController) Get

func (c *AgentApiController) Get()

Get agent will get publickey content and serverlist here

type AnalyzeController

type AnalyzeController struct {
	BaseController
}

AnalyzeController /analyze

func (*AnalyzeController) Get

func (c *AnalyzeController) Get()

Get method GET

func (*AnalyzeController) Post

func (c *AnalyzeController) Post()

Post method POST

type BaseController

type BaseController struct {
	beego.Controller
	IsRoot bool
}

BaseController base web controller, base struct

func (*BaseController) InitPaginator

func (c *BaseController) InitPaginator() utils.Paginator

InitPaginator : Paginator function

func (*BaseController) Options

func (c *BaseController) Options()

Options : chrome "preflighted" requests first send an HTTP request by the OPTIONS method to the resource on the other domain

func (*BaseController) Prepare

func (c *BaseController) Prepare()

Prepare access Control, 2FA, csrf check and other security options

type ClientController

type ClientController struct {
	BaseController
}

ClientController /client

func (*ClientController) Get

func (c *ClientController) Get()

Get http method

type ConfigController

type ConfigController struct {
	BaseController
}

ConfigController /config

func (*ConfigController) Add

func (c *ConfigController) Add()

Add HTTP method PUT

func (*ConfigController) Del

func (c *ConfigController) Del()

Del HTTP method DELETE

func (*ConfigController) Edit

func (c *ConfigController) Edit()

Edit HTTP method POST

func (*ConfigController) Get

func (c *ConfigController) Get()

Get HTTP method GET

type DloadController

type DloadController struct {
	beego.Controller
}

DloadController /download

func (*DloadController) Get

func (c *DloadController) Get()

Get http method GET, uri: ?type=agent&system=linux&platform=32&action=check&access_token=AAA&hash=BBB

func (*DloadController) Head

func (c *DloadController) Head()

Head HTTP method HEAD, bitsadmin will Head before Get

type FileController

type FileController struct {
	BaseController
}

FileController /file

func (*FileController) Upload

func (c *FileController) Upload()

Upload HTTP method POST

type InfoController

type InfoController struct {
	BaseController
}

InfoController /info

func (*InfoController) Get

func (c *InfoController) Get()

Get not route to this controller

func (*InfoController) GetInfoByIp

func (c *InfoController) GetInfoByIp()

GetInfoByIp HTTP method GET

type InstallController

type InstallController struct {
	BaseController
}

InstallController /install

func (*InstallController) Get

func (c *InstallController) Get()

Get return the install page

func (*InstallController) Post

func (c *InstallController) Post()

Post HTTP method POST

type LoginController

type LoginController struct {
	beego.Controller
}

LoginController /login

func (*LoginController) Get

func (c *LoginController) Get()

Get the first page in this project

func (*LoginController) Post

func (c *LoginController) Post()

Post HTTP method POST

type LogoutController

type LogoutController struct {
	beego.Controller
}

LogoutController /login

func (*LogoutController) Post

func (c *LogoutController) Post()

Post HTTP method POST

type MainController

type MainController struct {
	BaseController
}

MainController index url:/

func (*MainController) Get

func (c *MainController) Get()

Get HTTP method GET

type MonitorController

type MonitorController struct {
	BaseController
}

MonitorController old contorller

func (*MonitorController) GetAllType

func (c *MonitorController) GetAllType()

GetAllType not suppored

func (*MonitorController) GetTwenty

func (c *MonitorController) GetTwenty()

GetTwenty not supported

type NoticeController

type NoticeController struct {
	BaseController
}

NoticeController /notice

func (*NoticeController) ChangeStatus

func (c *NoticeController) ChangeStatus()

ChangeStatus POST

func (*NoticeController) Delete

func (c *NoticeController) Delete()

Delete DELETE method

func (*NoticeController) Get

func (c *NoticeController) Get()

Get method

type RuleController

type RuleController struct {
	BaseController
}

RuleController /rules

func (*RuleController) Get

func (c *RuleController) Get()

Get method

func (*RuleController) Post

func (c *RuleController) Post()

Post method

type StatisticsController

type StatisticsController struct {
	BaseController
}

StatisticsController /statistics

func (*StatisticsController) Get

func (c *StatisticsController) Get()

Get method

type TaskController

type TaskController struct {
	BaseController
}

TaskController /task

func (*TaskController) Get

func (c *TaskController) Get()

Get method

func (*TaskController) Post

func (c *TaskController) Post()

Post method

Jump to

Keyboard shortcuts

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