You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2022/12/07 12:29:38 UTC

[iotdb-client-go] branch main updated: Update auth related code (#67)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 337b23f  Update auth related code (#67)
337b23f is described below

commit 337b23fbbdabe2049cd59260821335390b190957
Author: ZhangHongYin <46...@users.noreply.github.com>
AuthorDate: Wed Dec 7 20:29:32 2022 +0800

    Update auth related code (#67)
---
 client/protocol.go | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/client/protocol.go b/client/protocol.go
index d2cda1d..683484d 100644
--- a/client/protocol.go
+++ b/client/protocol.go
@@ -129,14 +129,22 @@ const (
 	InternalRequestTimeOut    int32 = 712
 	InternalRequestRetryError int32 = 713
 
-	AuthenticationError       int32 = 800
+	InitAuthError             int32 = 800
 	WrongLoginPassword        int32 = 801
 	NotLogin                  int32 = 802
 	NoPermission              int32 = 803
-	UninitializedAuthError    int32 = 804
-	UserNotExist              int32 = 805
-	RoleNotExist              int32 = 806
-	ClearPermissionCacheError int32 = 807
+	UserNotExist              int32 = 804
+	UserAlreadyExist          int32 = 805
+	UserAlreadyHasRole        int32 = 806
+	UserNotHasRole            int32 = 807
+	RoleNotExist              int32 = 808
+	RoleAlreadyExist          int32 = 809
+	AlreadyHasPrivilege       int32 = 810
+	NotHasPrivilege           int32 = 811
+	ClearPermissionCacheError int32 = 812
+	UnknownAuthPrivilege      int32 = 813
+	UnsupportedAuthOperation  int32 = 814
+	AuthIoException           int32 = 815
 
 	MigrateRegionError        int32 = 900
 	CreateRegionError         int32 = 901