Documentation ¶
Index ¶
- type AutoUpdateConfig
- type ChangePasswd
- type CreateDevice
- type CreateSm2
- type CreateSm4
- type CreateUKeyUser
- type DeleteSm2
- type DeleteSm4
- type ExportPub
- type IdsReq
- type KeyBackup
- type Network
- type PageInfo
- type SetNetwork
- type SetSm2Pin
- type SysLogCreate
- type SysLogList
- type UKeyLogin
- type UserCreate
- type UserDelete
- type UserList
- type UserLogin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoUpdateConfig ¶
type AutoUpdateConfig struct { AutoUpdate bool `json:"auto_update"` UpdateRange string `json:"update_range"` Time string `json:"time"` }
AutoUpdateConfig 自动升级配置
type ChangePasswd ¶
type ChangePasswd struct { OldPassword string `json:"old_pin" binding:"required"` NewPassword string `json:"pin" binding:"required"` }
ChangePasswd 修改密码
type CreateDevice ¶
CreateDevice 生成设备密钥
type CreateSm2 ¶
type CreateSm2 struct { Index *uint `json:"index" binding:"required"` Type []int `json:"type"` Pin string `json:"pin" binding:"required"` }
CreateSm2 生成非对称密钥
type CreateSm4 ¶
type CreateSm4 struct {
Index *uint `json:"index" binding:"required"`
}
CreateSm4 生成对称密钥
type CreateUKeyUser ¶
type CreateUKeyUser struct { Name string `json:"name" binding:"required"` Password string `json:"pin" binding:"required"` }
CreateUKeyUser 初始化时的添加后端ukey管理员
type DeleteSm4 ¶
type DeleteSm4 struct {
Index *uint `json:"index" binding:"required"`
}
DeleteSm4 删除对称密钥
type ExportPub ¶
type ExportPub struct {
Index *int `json:"index" form:"index" binding:"required"`
}
ExportPub 导出公钥
type KeyBackup ¶
type KeyBackup struct { Name string `json:"name" binding:"required"` Password string `json:"pin" binding:"required"` }
KeyBackup 密钥备份与恢复
type SetNetwork ¶
SetNetwork 网络配置
type SetSm2Pin ¶
type SetSm2Pin struct { Index *int `json:"index" binding:"required"` Pin string `json:"pin" binding:"required"` }
SetSm2Pin 设置访问码
type SysLogCreate ¶
type SysLogCreate struct { Username string `json:"username"` Content string `json:"content"` ClientIP string `json:"client_ip"` Result int `json:"result"` }
SysLogCreate 添加管理员日志
type SysLogList ¶
type SysLogList struct { PageInfo Category int `json:"category" form:"category"` StartDate time.Time `json:"start_time" form:"start_time"` EndDate time.Time `json:"end_time" form:"end_time"` }
SysLogList 日志列表
type UserCreate ¶
type UserCreate struct { Name string `json:"name" binding:"required"` Serial string `json:"serial"` SignData string `json:"sign"` TimeStamp string `json:"timestamp"` RoleId int `json:"role_id" form:"role_id"` Cert string `json:"cert"` Pin string `json:"pin"` }
UserCreate 创建用户
type UserDelete ¶
type UserDelete struct { ID int `json:"id"` Username string `json:"name"` KeySn string `json:"keysn"` }
UserDelete 删除管理员
Click to show internal directories.
Click to hide internal directories.