Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{
Use: "repair",
Short: "修复数据加密字段",
Long: "对历史数据进行字段加密处理,将未加密但需要加密的字段进行加密",
RunE: runRepair,
}
Functions ¶
This section is empty.
Types ¶
type FieldEncryptionRepairer ¶
type FieldEncryptionRepairer struct {
// contains filtered or unexported fields
}
FieldEncryptionRepairer 字段加密修复器
func NewFieldEncryptionRepairer ¶
func NewFieldEncryptionRepairer( modelSvc model.Service, attrSvc attribute.Service, resourceSvc resource.EncryptedSvc, dryRun bool, ) *FieldEncryptionRepairer
NewFieldEncryptionRepairer 创建字段加密修复器
type FieldProcessor ¶
type FieldProcessor struct {
// contains filtered or unexported fields
}
FieldProcessor 字段处理器
func NewFieldProcessor ¶
func NewFieldProcessor(resourceSvc resource.EncryptedSvc, dryRun bool) *FieldProcessor
NewFieldProcessor 创建字段处理器
func (*FieldProcessor) ProcessResources ¶
func (p *FieldProcessor) ProcessResources( ctx context.Context, modelUid string, secureFields []string, ) (*StatsRepair, error)
ProcessResources 处理资源
type StatsRepair ¶
StatsRepair 修复统计信息
Click to show internal directories.
Click to hide internal directories.