mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
39 lines
1.3 KiB
Go
39 lines
1.3 KiB
Go
package rootcoord
|
|
|
|
const (
|
|
// ComponentPrefix prefix for rootcoord component
|
|
ComponentPrefix = "root-coord"
|
|
|
|
// CollectionMetaPrefix prefix for collection meta
|
|
CollectionMetaPrefix = ComponentPrefix + "/collection"
|
|
|
|
PartitionMetaPrefix = ComponentPrefix + "/partitions"
|
|
AliasMetaPrefix = ComponentPrefix + "/aliases"
|
|
FieldMetaPrefix = ComponentPrefix + "/fields"
|
|
|
|
// CollectionAliasMetaPrefix prefix for collection alias meta
|
|
CollectionAliasMetaPrefix = ComponentPrefix + "/collection-alias"
|
|
|
|
// CommonCredentialPrefix subpath for common credential
|
|
/* #nosec G101 */
|
|
CommonCredentialPrefix = "/credential"
|
|
|
|
// UserSubPrefix subpath for credential user
|
|
UserSubPrefix = CommonCredentialPrefix + "/users"
|
|
|
|
// CredentialPrefix prefix for credential user
|
|
CredentialPrefix = ComponentPrefix + UserSubPrefix
|
|
|
|
// RolePrefix prefix for role
|
|
RolePrefix = ComponentPrefix + CommonCredentialPrefix + "/roles"
|
|
|
|
// RoleMappingPrefix prefix for mapping between user and role
|
|
RoleMappingPrefix = ComponentPrefix + CommonCredentialPrefix + "/user-role-mapping"
|
|
|
|
// GranteePrefix prefix for mapping among role, resource type, resource name
|
|
GranteePrefix = ComponentPrefix + CommonCredentialPrefix + "/grantee-privileges"
|
|
|
|
// GranteeIDPrefix prefix for mapping among privilege and grantor
|
|
GranteeIDPrefix = ComponentPrefix + CommonCredentialPrefix + "/grantee-id"
|
|
)
|