mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-28 05:46:36 +08:00
06d5fedbfc
Keep only plugin entry, httpapi, migrate and updater at the server root. Shared model/repository/adapters live in kernel/; product bounded contexts live in domain/.
21 lines
1.1 KiB
Go
21 lines
1.1 KiB
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package agent
|
|
|
|
const (
|
|
errMissingAgentToken = "缺少 Agent Token" //nolint:gosec // false positive: this is an error message, not hardcoded credentials
|
|
errInvalidAgentToken = "无权进行此操作,Agent Token 无效" //nolint:gosec // false positive: this is an error message, not hardcoded credentials
|
|
errInvalidDiscoveryToken = "无权进行此操作,注册 Token 无效" //nolint:gosec // false positive: this is an error message, not hardcoded credentials
|
|
errNodeMissingFromContext = "Node object missing from context"
|
|
errNoActiveConfig = "当前没有激活版本"
|
|
errNodeNotFound = "节点不存在"
|
|
errNodeIDRequired = "node_id 不能为空"
|
|
errVersionRequired = "version 不能为空"
|
|
errInvalidApplyResult = "result 仅支持 success、warning 或 failed"
|
|
errIPRequired = "ip 不能为空"
|
|
errIPInvalid = "ip 格式无效"
|
|
errAgentVersionRequired = "version 不能为空"
|
|
errNodeIDConflict = "节点标识生成冲突,请重试"
|
|
)
|