# Packages
No description provided by the author
# Functions
Arguments2Labels 将参数列表适配成旧的标签模型.
No description provided by the author
BuildDefaultStrategyName 构建默认鉴权策略的名称信息.
BuildInBoundsFromV2 Convert the routing rules of V2 to the inbounds in the routing rule of V1.
BuildKeyForClientConfigFileInfo 必须保证和 ConfigFileReleaseKey.FileKey 是一样的生成规则.
BuildOutBoundsFromV2 According to the routing rules of the V2 version, it is adapted to the outbounds in the routing rule of V1 version.
BuildV1RoutesFromV2 According to the routing rules of the V2 version, it is adapted to the V1 version of the routing rules.
BuildV2ExtendRouting Build the internal data object routing rules of V2 version.
BuildV2RoutingFromV1Route Build a V2 version of API data object routing rules.
CheckPrincipalType 检查鉴权策略成员角色信息.
CompareRoutingV2 Compare the priority of two routing.
CompositeRoutingV1AndV2 The routing rules of the V1 version and the rules of the V2 version.
ConvertRoutingV1ToExtendV2 The routing rules of the V1 version are converted to V2 version for storage TODO Reduce duplicate code logic.
No description provided by the author
CreateInstanceModel 创建存储层服务实例模型.
ExpandStore2Instance 扩展store转换.
No description provided by the author
FromTagJson 从 Tags Json 字符串里反序列化出 Tags.
GetGrayConfigRealseKey 获取灰度资源key.
Int2bool 整数转换为bool值.
MarshalModCmd mod cmd转为sid.
MarshalSid Sid结构体,序列化转为sid字符串.
NewAcquireContext 创建一个请求响应
@param options @return *AcquireContext.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseRouteRuleAnyToMessage convert the any routing proto to message object.
RoutingArguments2Labels Adapt the parameter list to the old label model.
RoutingConfigV1ToAPI Convert the internal data structure to API parameter to pass out.
RoutingLabels2Arguments Adapting the old label model into a list of parameters.
StatusBoolToInt 状态bool转int.
Store2Instance store的数据转换为组合了api的数据结构.
No description provided by the author
Store2Instance store的数据转换为组合了api的数据结构.
Store2Location 转成内存数据结构.
No description provided by the author
ToConfigFileReleaseStore.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ToConfiogFileReleaseApi.
No description provided by the author
No description provided by the author
UnmarshalSid 把sid字符串反序列化为结构体Sid.
WithAccessResources 设置本次访问的资源
@param accessResources @return acquireContextOption.
WithAttachment 设置本次请求的额外携带信息
@param attachment @return acquireContextOption.
WithFromClient 设置本次请求来自客户端.
WithFromConsole 设置本次请求来自控制台.
WithMethod 本次操作函数名称.
WithModule 设置本次请求的模块
@param module @return acquireContextOption.
WithOperation 设置本次的操作类型
@param operation @return acquireContextOption.
WithRequestContext 设置请求上下文
@param ctx @return acquireContextOption.
# Constants
No description provided by the author
AuthModule 鉴权模块.
BootstrapModule 初始化模块.
ClientLabel_ID 客户端 ID.
ClientLabel_IP 客户端 IP.
ClientLabel_Language 客户端语言.
ClientLabel_Version 客户端版本.
ConfigModule 配置模块.
CoreModule 核心模块.
Create 创建动作.
CtxEventKeyMetadata 用于将metadata从Context中传入并取出.
DefaultStrategySuffix 默认策略的名称前缀.
Delete 删除动作.
DiscoverModule 服务模块.
EventClientOffline .
EventDiscoverNone empty discover event.
EventInstanceCloseIsolate Instance shutdown isolation state.
EventInstanceOffline Instance offline.
EventInstanceOnline instance becoming online.
EventInstanceOpenIsolate Instance is in isolation.
EventInstanceSendHeartbeat Instance send heartbeat package to server.
EventInstanceTurnHealth Instance becomes healthy.
EventInstanceTurnUnHealth Instance becomes unhealthy.
EventInstanceUpdate Instance metadata and info update event.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaintainModule 运维操作模块.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MetaKeyBuildRevision build revision for server.
MetaKeyConfigFileDataKey 加密密钥 tag key.
MetaKeyConfigFileEncryptAlgo 加密算法 tag key.
MetaKeyConfigFileSyncSourceClusterKey 配置同步来源所在集群.
---- 以下参数仅适配 polaris-controller 生态 ---- MetaKeyConfigFileSyncSourceKey 配置同步来源.
MetaKeyConfigFileSyncToKubernetes 配置同步到 kubernetes.
MetaKeyConfigFileUseEncrypted 配置加密开关标识,value 为 boolean.
MetaKeyPolarisService service identifier by self registration.
Modify 修改动作.
OCreate create.
ODelete delete.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ORollback Rollback resource.
OUpdate update.
OEnableRateLimit Update enable state.
OUpdateGroup Update user-user group association relationship.
OUpdateIsolate Update isolation state.
OUpdateToken Update token.
No description provided by the author
No description provided by the author
No description provided by the author
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Read 只读动作.
ReleaseTypeFull 全量类型.
ReleaseTypeGray 灰度类型.
No description provided by the author
No description provided by the author
No description provided by the author
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
Define the type of resource type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnknowModule 未知模块.
No description provided by the author
V1RuleIDKey v1 版本的路由规则 ID.
V1RuleInRoute inBound 类型.
V1RuleOutRoute outBound 类型.
V1RuleRouteIndexKey v1 版本 route 规则在自己 route 链中的 index 信息.
V1RuleRouteTypeKey 标识当前 v2 路由规则在 v1 的 inBound 还是 outBound.
V2RuleIDKey v2 版本的规则路由 ID.
WEIGHTDYNAMIC 动态权重.
WEIGHTSTATIC 静态权重.
# Variables
ErrorNoNamespace 没有找到对应的命名空间.
ErrorNoService 没有找到对应的服务.
ErrorNoUser 没有找到对应的用户.
ErrorNoUserGroup 没有找到对应的用户组.
ErrorTokenDisabled token 已经被禁用.
ErrorTokenInvalid 非法的 token.
ErrorTokenNotExist token 不存在.
ErrorWrongUsernameOrPassword 用户或者密码错误.
MetaRoutingTypeUrl 记录 anypb.Any 中关于 MetadataRoutingConfig 的 url 信息.
PrincipalNames principal name map.
RuleRoutingTypeUrl 记录 anypb.Any 中关于 RuleRoutingConfig 的 url 信息.
No description provided by the author
WeightEnum weight enum map.
WeightString weight string map.
# Structs
AcquireContext 每次鉴权请求上下文信息.
Callee 被调信息,对应t_server+t_ip_config.
CircuitBreaker 熔断规则.
CircuitBreakerDetail 返回给控制台的熔断规则及服务数据.
CircuitBreakerInfo 熔断规则及绑定服务.
CircuitBreakerRelation 熔断规则绑定关系.
CircuitBreakerRule 熔断规则.
Cl5ServerCluster cl5集群的ctx的key.
Cl5ServerProtocol cl5.server的协议ctx.
Client 客户端上报信息表.
No description provided by the author
No description provided by the author
ClientStore 对应store层(database)的对象.
ConfigFile 配置文件数据持久化对象.
ConfigFileGroup 配置文件组数据持久化对象.
No description provided by the author
ConfigFileRelease 配置文件发布数据持久化对象.
ConfigFileReleaseHistory 配置文件发布历史记录数据持久化对象.
No description provided by the author
ConfigFileTag 配置文件标签数据持久化对象.
ConfigFileTemplate config file template data object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EnhancedService 服务增强数据.
No description provided by the author
ExpandInstanceStore 包含服务名的store信息.
ExtendRateLimit 包含服务信息的限流规则.
ExtendRouterConfig 路由信息的扩展.
ExtendRoutingConfig 路由配置的扩展结构体.
FaultDetectRule 故障探测规则.
GrayRule 灰度资源.
Instance 组合了api的Instance对象.
InstanceCount Service instance statistics.
InstanceEvent 服务实例事件.
InstanceStore 对应store层(database)的对象.
InstanceVersionCount instance version metrics count.
No description provided by the author
IPConfig IP的区域信息.
LeaderElection leader election info.
Location cmdb信息,对应内存结构体.
LocationStore 地域信息,对应数据库字段.
LocationView cmdb信息,对应内存结构体.
ModifyStrategyDetail 修改鉴权策略详细.
ModifyUserGroup 用户组修改.
Namespace 命名空间结构体.
NamespaceServiceCount Namespace service data.
Policy 有状态规则路由策略信息.
Principal 策略相关人.
No description provided by the author
PrometheusTarget 用于对接 prometheus service discovery 的数据结构.
RateLimit 限流规则.
RateLimitRevision 包含最新版本号的限流规则.
RecordEntry Operation records.
ResourceEntry 资源最简单信息.
Route 访问关系.
RouterConfig Routing rules.
* RoutingConfig 路由配置
*/.
Section 有状态规则路由分段信息.
Service 服务数据.
ServiceAlias 服务别名结构体.
No description provided by the author
No description provided by the author
ServiceKey 服务名.
No description provided by the author
ServiceWithCircuitBreaker 与服务关系绑定的熔断规则.
ServiceWithCircuitBreakerRules 与服务关系绑定的熔断规则.
ServiceWithFaultDetectRules 与服务关系绑定的探测规则.
Sid sid信息.
SidConfig sid信息,对应t_sid表.
SimpleConfigFileRelease 配置文件发布数据持久化对象.
Strategy 策略main信息.
StrategyDetail 鉴权策略详细.
StrategyDetailCache 鉴权策略详细.
StrategyResource 策略资源.
User 用户.
UserGroup 用户组.
UserGroupDetail 用户组详细(带用户列表).
UserGroupRelation 用户-用户组关联关系具体信息.
# Type aliases
BzModule 模块标识.
No description provided by the author
InstanceEventType 探测事件类型.
OperationType Operating type.
go:generate stringer -type=PrincipalType.
No description provided by the author
Resource Operating resources.
ResourceOperation 资源操作.
UserRoleType 用户角色类型.
WeightType 服务下实例的权重类型.