Documentation ¶
Index ¶
- type IntegrationController
- type LicenseController
- func (this *LicenseController) AddLicenseFile()
- func (this *LicenseController) GetFeatureCode()
- func (this *LicenseController) GetLicense()
- func (this *LicenseController) GetLicenseHistory()
- func (this *LicenseController) GetLicensedHostCount()
- func (this *LicenseController) GetModuleLicenseCount()
- func (this *LicenseController) SetHostLicense()
- func (this *LicenseController) VerifyFeatureCode()
- type ProbeDriverController
- type RespCenterController
- type SystemController
- func (this *SystemController) AddRuleDefine()
- func (this *SystemController) AddSysConfig()
- func (this *SystemController) AddWarningWhiteList()
- func (this *SystemController) CheckLogoIsExist()
- func (this *SystemController) DeleteRuleDefine()
- func (this *SystemController) DeleteWarningWhiteList()
- func (this *SystemController) GetRuleDefine()
- func (this *SystemController) GetSysConfigs()
- func (this *SystemController) GetWarningWhiteList()
- func (this *SystemController) ImportWhiteList()
- func (this *SystemController) RestoreDefaultLogo()
- func (this *SystemController) UpdateMetricData()
- func (this *SystemController) UpdateRuleDefine()
- func (this *SystemController) UpdateSysConfig()
- func (this *SystemController) UpdateWarningWhiteList()
- func (this *SystemController) UploadLogo()
- func (this *SystemController) Version()
- type VulnerabilityController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntegrationController ¶
type IntegrationController struct {
beego.Controller
}
func (*IntegrationController) AddLogConfig ¶
func (this *IntegrationController) AddLogConfig()
@Title Log Config // @Description SystemIntegration Config // @Param token header string true "authToken"
// @Param body body models.LogConfig false "日志配置信息" // @Success 200 {object} models.Result // @router /system/logconfig [post]
func (*IntegrationController) GetLogConfig ¶
func (this *IntegrationController) GetLogConfig()
@Title Get Log Config @Description Get Log Config @Param token header string true "authToken" @Param configName query string true "配置项名,支持的值: SysLogExport" @Success 200 {object} models.Result @router /system/logconfig [get]
func (*IntegrationController) UpdateLogConfig ¶
func (this *IntegrationController) UpdateLogConfig()
@Title Update Log Config @Description Update Log Config @Param token header string true "authToken" @Param body body models.LogConfig false "日志配置信息" @Success 200 {object} models.Result @router /system/logconfig [put]
type LicenseController ¶
type LicenseController struct {
beego.Controller
}
func (*LicenseController) AddLicenseFile ¶
func (this *LicenseController) AddLicenseFile()
@Title Import License File @Description ImportLicense @Param token header string true "authToken" @Param licenseFile formData file true "licenseFile" @Param isForce formData bool false true "force" @Success 200 {object} models.Result @router /system/license/import [post]
func (*LicenseController) GetFeatureCode ¶
func (this *LicenseController) GetFeatureCode()
@Title Get FeatureCode @Description GetFeatureCode @Param token header string true "authToken" @Success 200 {object} models.Result @router /system/featurecode [get]
func (*LicenseController) GetLicense ¶
func (this *LicenseController) GetLicense()
@Title Get License @Description GetLicense @Param token header string true "authToken" @Param id query string false "id" @Success 200 {object} models.Result @router /system/license [get]
func (*LicenseController) GetLicenseHistory ¶
func (this *LicenseController) GetLicenseHistory()
@Title Get License History @Description Get LicenseHistory @Param token header string true "authToken" @Param from query int 0 false "from" @Param limit query int 50 false "limit" @Success 200 {object} models.Result @router /system/licensehistory [get]
func (*LicenseController) GetLicensedHostCount ¶
func (this *LicenseController) GetLicensedHostCount()
@Title Get Licensed Host Count @Description Get Licensed Host Count @Param token header string true "authToken" @Success 200 {object} models.Result @router /system/license/hostcount [get]
func (*LicenseController) GetModuleLicenseCount ¶
func (this *LicenseController) GetModuleLicenseCount()
@Title Get module License Count(获取授权模块授权数) @Description GetModuleLicenseCount @Param token header string true "authToken" @Param body body models.LicenseModule false "license 模块信息" @Success 200 {object} models.Result @router /system/license/modulecount [post]
func (*LicenseController) SetHostLicense ¶
func (this *LicenseController) SetHostLicense()
@Title Set Host License @Description Set One Host License @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param isLicense query string "" true "add or remove host license, bool" @Success 200 {object} models.Result @router /system/license/hostlicense/:hostId [put]
func (*LicenseController) VerifyFeatureCode ¶
func (this *LicenseController) VerifyFeatureCode()
@Title Verify Feature Code @Description Verify FeatureCode @Param token header string true "authToken" @Param featurecode query string true "featurecode" @Success 200 {object} models.Result @router /system/featurecode/verify [get]
type ProbeDriverController ¶
type ProbeDriverController struct {
beego.Controller
}
Falco Driver Download(驱动下载)
func (*ProbeDriverController) DownloadProbeDriver ¶
func (this *ProbeDriverController) DownloadProbeDriver()
@Title DownloadProbeDriver @Description downloads the drivers file @Param token header string true "authorized token" @Param version path string "" "probe driver version" @Param filename path string "" true "probe driver filename" @Success 200 {object} models.Result @router /downloads/probe/:version/:filename [get]
type RespCenterController ¶
type RespCenterController struct {
beego.Controller
}
Container Response Center api list
func (*RespCenterController) ContainerOperation ¶
func (this *RespCenterController) ContainerOperation()
@Title ContainerOperation @Description Resp Center operation @Param token header string true "authToken" @Param body body models.RespCenter true "RespCenter" @Success 200 {object} models.Result @router /respcenter/operation [post]
func (*RespCenterController) DeleteRespCenter ¶
func (this *RespCenterController) DeleteRespCenter()
@Title DeleteRespCenter @Description Delete Resp Center @Param token header string true "authToken" @Param id query string "" true "id" @Success 200 {object} models.Result @router /respcenter [delete]
func (*RespCenterController) GetRespCenter ¶
func (this *RespCenterController) GetRespCenter()
@Title GetRespCenter @Description Get Resp Center (暂不支持租户查询) @Param token header string true "authToken" @Param id path string "" true "id" @Success 200 {object} models.Result @router /respcenter/:id [post]
func (*RespCenterController) GetRespCenterList ¶
func (this *RespCenterController) GetRespCenterList()
@Title GetRespCenterList @Description Get Resp Center List (暂不支持租户查询) @Param token header string true "authToken" @Param body body models.RespCenter false "响应中心" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /respcenter [post]
type SystemController ¶
type SystemController struct {
beego.Controller
}
func (*SystemController) AddRuleDefine ¶
func (this *SystemController) AddRuleDefine()
@Title AddRuleDefine @Description Add RuleDefine Item @Param token header string true "authToken" @Param body body models.RuleDefine false "规则定义" @Success 200 {object} models.Result @router /system/ruledefine [post]
func (*SystemController) AddSysConfig ¶
func (this *SystemController) AddSysConfig()
@Title AddSysConfig @Description Add System Config @Param token header string true "authToken" @Param body body models.SysConfig false "系统配置信息" @Success 200 {object} models.Result @router /system/sysconfig [post]
func (*SystemController) AddWarningWhiteList ¶
func (this *SystemController) AddWarningWhiteList()
@Title AddWarningWhiteList @Description Add WarningWhiteList Item @Param token header string true "authToken" @Param body body models.WarningWhiteList false "告警白名单" @Success 200 {object} models.Result @router /system/warnwhitelist [post]
func (*SystemController) CheckLogoIsExist ¶
func (this *SystemController) CheckLogoIsExist()
@Title Check Logo isexist @Description Check kLogo IsExist @Param token header string true "authToken" @Success 200 {object} models.Result @router /system/logo/isexist [get]
func (*SystemController) DeleteRuleDefine ¶
func (this *SystemController) DeleteRuleDefine()
@Title DeleteRuleDefine @Description Delete RuleDefine @Param token header string true "authToken" @Param id path string "" true "id" @Success 200 {object} models.RuleDefine @router /system/ruledefine/:id [delete]
func (*SystemController) DeleteWarningWhiteList ¶
func (this *SystemController) DeleteWarningWhiteList()
@Title DeleteWarningWhiteList @Description Delete WarningWhiteList @Param token header string true "authToken" @Param id path string "" true "id" @Success 200 {object} models.Result @router /system/warnwhitelist/:id [delete]
func (*SystemController) GetRuleDefine ¶
func (this *SystemController) GetRuleDefine()
@Title GetRuleDefine @Description Get RuleDefine @Param token header string true "authToken" @Param body body models.RuleDefine false "规则定义" @Success 200 {object} models.Result @Param from query int 0 false "from" @Param limit query int 20 false "limit" @router /system/ruledefinelist [post]
func (*SystemController) GetSysConfigs ¶
func (this *SystemController) GetSysConfigs()
@Title GetSysConfigs @Description Get System Config @Param token header string true "authToken" @Param key query string false "配置项键名" @Success 200 {object} models.Result @router /system/sysconfig [get]
func (*SystemController) GetWarningWhiteList ¶
func (this *SystemController) GetWarningWhiteList()
@Title GetWarningWhiteList @Description Get WarningWhiteList @Param token header string true "authToken" @Param body body models.WarningWhiteList false "告警白名单" @Success 200 {object} models.Result @Param from query int 0 false "from" @Param limit query int 20 false "limit" @router /system/warnwhitelists [post]
func (*SystemController) ImportWhiteList ¶
func (this *SystemController) ImportWhiteList()
@Title ImportWarnWhiteList @Description Import WarnInfo WhiteList @Param token header string true "authToken" @Param whitelistfile formData file true "whitelistfile" @Success 200 {object} models.Result @router /system/warnwhitelist/import [post]
func (*SystemController) RestoreDefaultLogo ¶
func (this *SystemController) RestoreDefaultLogo()
@Title Restore Default Logo @Description Restore Default Logo @Param token header string true "authToken" @Success 200 {object} models.Result @router /system/logo/restore [get]
func (*SystemController) UpdateMetricData ¶
func (this *SystemController) UpdateMetricData()
@Title UpdateMetricData @Description Update Metric Data @Param token header string true "authToken" @Param hostIds path string "" false "hostId" @Param body body models.UpdateAssets true "更新配置设置" @Success 200 {object} models.Result @router /updatemetricdata [post]
func (*SystemController) UpdateRuleDefine ¶
func (this *SystemController) UpdateRuleDefine()
@Title UpdateRuleDefine @Description Update RuleDefine @Param token header string true "authToken" @Param id path string "" true "Id" @Param body body models.RuleDefine false "规则定义" @Success 200 {object} models.Result @router /system/ruledefine/:id [put]
func (*SystemController) UpdateSysConfig ¶
func (this *SystemController) UpdateSysConfig()
@Title UpdateSysConfig @Description Update System Config @Param token header string true "authToken" @Param id path string "" true "Id" @Param body body models.SysConfig false "系统配置信息" @Success 200 {object} models.Result @router /system/sysconfig/:id [put]
func (*SystemController) UpdateWarningWhiteList ¶
func (this *SystemController) UpdateWarningWhiteList()
@Title UpdateWarningWhiteList @Description Update WarningWhiteList @Param token header string true "authToken" @Param id path string "" true "Id" @Param body body models.WarningWhiteList false "告警白名单" @Success 200 {object} models.Result @router /system/warnwhitelist/:id [put]
func (*SystemController) UploadLogo ¶
func (this *SystemController) UploadLogo()
@Title UpLoadLogo @Description UpLoad Logo @Param token header string true "authToken" @Param logo formData file true "logo" @Success 200 {object} models.Result @router /system/logo [post]
func (*SystemController) Version ¶
func (this *SystemController) Version()
@Title Version @Description version @Param token header string true "authToken" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /version [post]
type VulnerabilityController ¶
type VulnerabilityController struct {
beego.Controller
}
Vulnerability Database Download(漏洞库下载)
func (*VulnerabilityController) DownloadVulnDB ¶
func (this *VulnerabilityController) DownloadVulnDB()
@Title DownloadVulnDB @Description download vulnerability database file @Param token header string true "authorized token" @Param If-Modified-Since header string false "vulnerability database last modified timestamp" @Param filename path string scanner.db.gz true "vulnerability database filename" @Success 200 {object} models.Result @router /downloads/vuln/:filename [get]