2 Star 0 Fork 0

carlmax_my/vpn-core-go

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
client_dpc_profile.go 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
carlmax_my 提交于 2025-06-20 21:52 +08:00 . init
package control_dto
const (
DPC_OP_EQ string = "eq"
DPC_OP_GTE string = "gte"
DPC_OP_LTE string = "lte"
DPC_OP_INCL string = "include"
DPC_OP_EXCL string = "exclude"
)
const (
DPC_TYPE_FILE string = "file"
DPC_TYPE_OS_VER string = "osVersion"
DPC_TYPE_REG_KEY string = "registryKey"
DPC_TYPE_ANTIVIRUS string = "antivirus"
DPC_TYPE_FIREWALL string = "firewall"
DPC_TYPE_SS_PROTECTED string = "screenSaverProtected"
DPC_TYPE_DISK_ENC string = "diskEncrypted"
DPC_TYPE_SCREEN_LOCK string = "screenLock"
DPC_TYPE_BIOMETRIC string = "biometricConfiguration"
DPC_TYPE_PROCESS string = "process"
DPC_TYPE_PATCH string = "patch"
DPC_TYPE_SOFTWARE string = "software"
)
const (
RULE_LOGIC_None int32 = 0
RULE_LOGIC_AllowWhenAll int32 = 1 // 'allow_when_all', // allow when all match
RULE_LOGIC_AllowWhenSome int32 = 2 // 'allow_when_some', // allow when some match
RULE_LOGIC_DenyWhenAll int32 = 3 // 'deny_when_all', // deny when all match
RULE_LOGIC_DenyWhenSome int32 = 4 // 'deny_when_some', // deny when some match
)
type DpcProfileRuleResp struct {
Id string `json:"id"` //
Type string `json:"type"` //
Value string `json:"value"` //
Operator string `json:"operator"` //
Extend string `json:"extend"` //
}
type DpcProfileResp struct {
Id string `json:"id"` //
Os string `json:"os"` //
Name string `json:"name"` //
ManualTrust int32 `json:"manual_trust"` //
IsMinimum int32 `json:"is_minimum"` //
Block int32 `json:"block"` //
Logic int32 `json:"logic"` //
Priority int32 `json:"priority"` //
Rules []DpcProfileRuleResp `json:"rules"` //
}
type DpcRuleRegistryOption struct {
KeyType int `json:"k_type"` //
KeyPath string `json:"k_path"` //
Attr string `json:"attr"` //
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/carlmax_my/vpn-core-go.git
git@gitee.com:carlmax_my/vpn-core-go.git
carlmax_my
vpn-core-go
vpn-core-go
v0.1.64

搜索帮助