DoRemoveUser 校验并热删用户。
(ctx context.Context, inboundTag, email string)
| 178 | |
| 179 | // DoRemoveUser 校验并热删用户。 |
| 180 | func (a *API) DoRemoveUser(ctx context.Context, inboundTag, email string) error { |
| 181 | if inboundTag == "" || email == "" { |
| 182 | return errors.New("inbound_tag and email are required") |
| 183 | } |
| 184 | return a.activeManager().RemoveUser(ctx, inboundTag, email) |
| 185 | } |
| 186 | |
| 187 | // DoEnsureCert 当前实现仅返回 ok(实际 ACME 流程在 certmgr 包,节点侧无操作)。 |
| 188 | func (a *API) DoEnsureCert(domain, cfToken string) map[string]any { |
no test coverage detected