Documentation ¶
Index ¶
- Constants
- func AccessControllerDel(ctx *context.Context)
- func AccessControllerGet(ctx *context.Context)
- func AccessControllerPost(ctx *context.Context)
- func AlarmControllerDel(ctx *context.Context)
- func AlarmControllerGet(ctx *context.Context)
- func AlarmControllerUpdate(ctx *context.Context)
- func AuditControllerGet(ctx *context.Context)
- func AuditMake(ctx *context.Context, opt string, obj string, result ...string)
- func ChangePwdControllerPut(ctx *context.Context)
- func ConsoleControllerGet(ctx *context.Context)
- func LoginControllerGet(ctx *context.Context)
- func LoginControllerGetUsername(ctx *context.Context)
- func LoginControllerPost(ctx *context.Context)
- func LoginSessionGet(ctx *context.Context) string
- func LoginSessionInit(ctx *context.Context, user string)
- func LogoutControllerGet(ctx *context.Context)
- func ProxyControllerBind(ctx *context.Context)
- func ProxyControllerDel(ctx *context.Context)
- func ProxyControllerGet(ctx *context.Context)
- func ProxyControllerPost(ctx *context.Context)
- func ProxyControllerUpdate(ctx *context.Context)
- func RuleControllerDel(ctx *context.Context)
- func RuleControllerGet(ctx *context.Context)
- func RuleControllerPost(ctx *context.Context)
- func RuleControllerUpdate(ctx *context.Context)
- func SysControllerInterfaceGet(ctx *context.Context)
- func UserControllerDel(ctx *context.Context)
- func UserControllerGet(ctx *context.Context)
- func UserControllerPost(ctx *context.Context)
- func UserControllerUpdate(ctx *context.Context)
- func UsergroupControllerDel(ctx *context.Context)
- func UsergroupControllerGet(ctx *context.Context)
- func UsergroupControllerPost(ctx *context.Context)
- func UsergroupControllerUpdate(ctx *context.Context)
- type AccessAddRequest
- type AccessDelRequest
- type AccessGetRsponse
- type AccessNode
- type AlarmDelRequest
- type AlarmRsponse
- type AlarmUpdateRequest
- type AuditRsponse
- type ChangePasswdRequest
- type ConsoleData
- type ConsoleRsponse
- type InfNode
- type InfRsponse
- type PostRsponse
- type ProxyAddRequest
- type ProxyBindRequest
- type ProxyDelRequest
- type ProxyGetRequest
- type ProxyGetRsponse
- type ProxyNode
- type ProxyUpdateRequest
- type RuleAddRequest
- type RuleDelRequest
- type RuleGetRsponse
- type RuleNode
- type RuleUpdateRequest
- type UserDelRequest
- type UserNode
- type UserPostRequest
- type UserRsponse
- type UserUpdateRequest
- type UsergroupNode
- type UsergroupRequest
- type UsergroupRsponse
Constants ¶
View Source
const ( AUDIT_POST = "post" AUDIT_DEL = "del" AUDIT_PUT = "update" AUDIT_IN = "login" AUDIT_OUT = "logout" )
View Source
const ( AUDIT_OBJ_USRGROUP = "usergroup" AUDIT_OBJ_USR = "user" AUDIT_OBJ_PROXY = "proxy" AUDIT_OBJ_ACCESS = "access" AUDIT_OBJ_RULE = "rule" AUDIT_OBJ_LOG = "log" AUDIT_OBJ_ALARM = "alarm" AUDIT_OBJ_SYS = "sys" )
Variables ¶
This section is empty.
Functions ¶
func AccessControllerDel ¶
func AccessControllerGet ¶
func AccessControllerPost ¶
func AlarmControllerDel ¶
func AlarmControllerGet ¶
func AlarmControllerUpdate ¶
func AuditControllerGet ¶
func ChangePwdControllerPut ¶
func ConsoleControllerGet ¶
func LoginControllerGet ¶
func LoginControllerPost ¶
func LoginSessionGet ¶
func LoginSessionInit ¶
func LogoutControllerGet ¶
func ProxyControllerBind ¶
func ProxyControllerDel ¶
func ProxyControllerGet ¶
func ProxyControllerPost ¶
func ProxyControllerUpdate ¶
func RuleControllerDel ¶
func RuleControllerGet ¶
func RuleControllerPost ¶
func RuleControllerUpdate ¶
func UserControllerDel ¶
func UserControllerGet ¶
func UserControllerPost ¶
func UserControllerUpdate ¶
func UsergroupControllerDel ¶
func UsergroupControllerGet ¶
func UsergroupControllerPost ¶
Types ¶
type AccessAddRequest ¶
type AccessDelRequest ¶
type AccessGetRsponse ¶
type AccessGetRsponse struct { Code int `json:"code"` Count int `json:"count"` Message string `json:"msg"` Data []AccessNode `json:"data"` }
type AccessNode ¶
type AlarmDelRequest ¶
type AlarmRsponse ¶
type AlarmUpdateRequest ¶
type AuditRsponse ¶
type ChangePasswdRequest ¶
type ConsoleData ¶
type ConsoleData struct { TodayCnt int `json:"today_cnt"` TotalCnt int `json:"total_cnt"` TodayData string `json:"today_data"` TotalData string `json:"total_data"` ServerUsedRate string `json:"server_used_rate"` ServerTotal string `json:"server_total"` UserToday int `json:"user_today"` UserTotal string `json:"user_total"` CtrlNodeCPU int `json:"ctrl_node_cpu"` CtrlNodeMEM int `json:"ctrl_node_mem"` CtrlNodeDisk int `json:"ctrl_node_disk"` DataNodeCPU int `json:"data_node_cpu"` DataNodeMEM int `json:"data_node_mem"` DataNodeDisk int `json:"data_node_disk"` Version string `json:"version"` }
type ConsoleRsponse ¶
type ConsoleRsponse struct { Code int `json:"code"` Count int `json:"count"` Message string `json:"msg"` Data []ConsoleData `json:"data"` }
type InfRsponse ¶
type PostRsponse ¶
type ProxyAddRequest ¶
type ProxyBindRequest ¶
type ProxyDelRequest ¶
type ProxyDelRequest struct {
ID string `json:"id"`
}
type ProxyGetRequest ¶
type ProxyGetRequest struct {
ID []string `json:"id"`
}
type ProxyGetRsponse ¶
type ProxyNode ¶
type ProxyNode struct { ID string `json:"id"` Date string `json:"date"` Name string `json:"name"` Protocal string `json:"protocal"` IP string `json:"ipaddr"` Port int `json:"port"` Instance string `json:"instance"` Stat string `json:"stat"` Alive string `json:"alive"` Status string `json:"status"` Auth string `json:"auth"` Usergroup []string `json:"usergroup"` Access []string `json:"access"` Rule []string `json:"rule"` }
type ProxyUpdateRequest ¶
type RuleAddRequest ¶
type RuleDelRequest ¶
type RuleDelRequest struct {
Name string `json:"name"`
}
type RuleGetRsponse ¶
type RuleNode ¶
type RuleNode struct { ID string `json:"id"` Prior string `json:"prior"` Date string `json:"date"` Name string `json:"name"` Protocal string `json:"protocal"` Address string `json:"address"` Auth string `json:"auth"` Stat string `json:"stat"` Alive string `json:"alive"` Status string `json:"status"` }
type RuleUpdateRequest ¶
type UserDelRequest ¶
type UserPostRequest ¶
type UserRsponse ¶
type UserUpdateRequest ¶
type UsergroupNode ¶
type UsergroupRequest ¶
type UsergroupRsponse ¶
type UsergroupRsponse struct { Code int `json:"code"` Count int `json:"count"` Message string `json:"msg"` Data []UsergroupNode `json:"data"` }
Click to show internal directories.
Click to hide internal directories.