v1

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error_name = map[int32]string{
		0:  "ERR_UNKNOWN",
		1:  "ERR_TENANT_ALREADY_EXISTED",
		2:  "ERR_LIST_TENANT",
		3:  "ERR_INVALID_ARGUMENT",
		4:  "ERR_INTERNAL_STORE",
		5:  "ERR_INTERNAL_ERROR",
		6:  "ERR_STORE_CREAT_TENANT",
		7:  "ERR_ALREADY_EXISTED_USER_",
		8:  "ERR_RESOURCE_NOT_FOUND",
		9:  "ERR_STORE_CREAT_ADMIN",
		10: "ERR_STORE_CREAT_ADMIN_ROLE",
		11: "ERR_TENANT_NOT_FOUND",
	}
	Error_value = map[string]int32{
		"ERR_UNKNOWN":                0,
		"ERR_TENANT_ALREADY_EXISTED": 1,
		"ERR_LIST_TENANT":            2,
		"ERR_INVALID_ARGUMENT":       3,
		"ERR_INTERNAL_STORE":         4,
		"ERR_INTERNAL_ERROR":         5,
		"ERR_STORE_CREAT_TENANT":     6,
		"ERR_ALREADY_EXISTED_USER_":  7,
		"ERR_RESOURCE_NOT_FOUND":     8,
		"ERR_STORE_CREAT_ADMIN":      9,
		"ERR_STORE_CREAT_ADMIN_ROLE": 10,
		"ERR_TENANT_NOT_FOUND":       11,
	}
)

Enum value maps for Error.

View Source
var File_api_tenant_v1_error_proto protoreflect.FileDescriptor
View Source
var File_api_tenant_v1_tenant_proto protoreflect.FileDescriptor
View Source
var Tenant_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "io.tkeel.security.api.tenant.v1.Tenant",
	HandlerType: (*TenantServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTenant",
			Handler:    _Tenant_CreateTenant_Handler,
		},
		{
			MethodName: "GetTenant",
			Handler:    _Tenant_GetTenant_Handler,
		},
		{
			MethodName: "ListTenant",
			Handler:    _Tenant_ListTenant_Handler,
		},
		{
			MethodName: "TenantByExactSearch",
			Handler:    _Tenant_TenantByExactSearch_Handler,
		},
		{
			MethodName: "UpdateTenant",
			Handler:    _Tenant_UpdateTenant_Handler,
		},
		{
			MethodName: "DeleteTenant",
			Handler:    _Tenant_DeleteTenant_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _Tenant_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _Tenant_GetUser_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _Tenant_ListUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _Tenant_DeleteUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _Tenant_UpdateUser_Handler,
		},
		{
			MethodName: "AddTenantPlugin",
			Handler:    _Tenant_AddTenantPlugin_Handler,
		},
		{
			MethodName: "ListTenantPlugin",
			Handler:    _Tenant_ListTenantPlugin_Handler,
		},
		{
			MethodName: "DeleteTenantPlugin",
			Handler:    _Tenant_DeleteTenantPlugin_Handler,
		},
		{
			MethodName: "TenantPluginPermissible",
			Handler:    _Tenant_TenantPluginPermissible_Handler,
		},
		{
			MethodName: "GetResetPasswordKey",
			Handler:    _Tenant_GetResetPasswordKey_Handler,
		},
		{
			MethodName: "ResetPasswordKeyInfo",
			Handler:    _Tenant_ResetPasswordKeyInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/tenant/v1/tenant.proto",
}

Tenant_ServiceDesc is the grpc.ServiceDesc for Tenant service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func ErrAlreadyExistedUser

func ErrAlreadyExistedUser() errors.Error

func ErrInternalError

func ErrInternalError() errors.Error

func ErrInternalStore

func ErrInternalStore() errors.Error

func ErrInvalidArgument

func ErrInvalidArgument() errors.Error

func ErrListTenant

func ErrListTenant() errors.Error

func ErrResourceNotFound

func ErrResourceNotFound() errors.Error

func ErrStoreCreatAdmin

func ErrStoreCreatAdmin() errors.Error

func ErrStoreCreatAdminRole

func ErrStoreCreatAdminRole() errors.Error

func ErrStoreCreatTenant

func ErrStoreCreatTenant() errors.Error

func ErrTenantAlreadyExisted

func ErrTenantAlreadyExisted() errors.Error

func ErrTenantNotFound added in v1.0.0

func ErrTenantNotFound() errors.Error

func ErrUnknown

func ErrUnknown() errors.Error

func RegisterTenantHTTPServer

func RegisterTenantHTTPServer(container *go_restful.Container, srv TenantHTTPServer)

func RegisterTenantServer

func RegisterTenantServer(s grpc.ServiceRegistrar, srv TenantServer)

Types

type AddTenantPluginBody

type AddTenantPluginBody struct {
	PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTenantPluginBody) Descriptor deprecated

func (*AddTenantPluginBody) Descriptor() ([]byte, []int)

Deprecated: Use AddTenantPluginBody.ProtoReflect.Descriptor instead.

func (*AddTenantPluginBody) GetPluginId

func (x *AddTenantPluginBody) GetPluginId() string

func (*AddTenantPluginBody) ProtoMessage

func (*AddTenantPluginBody) ProtoMessage()

func (*AddTenantPluginBody) ProtoReflect

func (x *AddTenantPluginBody) ProtoReflect() protoreflect.Message

func (*AddTenantPluginBody) Reset

func (x *AddTenantPluginBody) Reset()

func (*AddTenantPluginBody) String

func (x *AddTenantPluginBody) String() string

type AddTenantPluginRequest

type AddTenantPluginRequest struct {
	TenantId string               `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Body     *AddTenantPluginBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTenantPluginRequest) Descriptor deprecated

func (*AddTenantPluginRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddTenantPluginRequest.ProtoReflect.Descriptor instead.

func (*AddTenantPluginRequest) GetBody

func (*AddTenantPluginRequest) GetTenantId

func (x *AddTenantPluginRequest) GetTenantId() string

func (*AddTenantPluginRequest) ProtoMessage

func (*AddTenantPluginRequest) ProtoMessage()

func (*AddTenantPluginRequest) ProtoReflect

func (x *AddTenantPluginRequest) ProtoReflect() protoreflect.Message

func (*AddTenantPluginRequest) Reset

func (x *AddTenantPluginRequest) Reset()

func (*AddTenantPluginRequest) String

func (x *AddTenantPluginRequest) String() string

type AddTenantPluginResponse

type AddTenantPluginResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTenantPluginResponse) Descriptor deprecated

func (*AddTenantPluginResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddTenantPluginResponse.ProtoReflect.Descriptor instead.

func (*AddTenantPluginResponse) GetOk

func (x *AddTenantPluginResponse) GetOk() bool

func (*AddTenantPluginResponse) ProtoMessage

func (*AddTenantPluginResponse) ProtoMessage()

func (*AddTenantPluginResponse) ProtoReflect

func (x *AddTenantPluginResponse) ProtoReflect() protoreflect.Message

func (*AddTenantPluginResponse) Reset

func (x *AddTenantPluginResponse) Reset()

func (*AddTenantPluginResponse) String

func (x *AddTenantPluginResponse) String() string

type CreateTenantRequest

type CreateTenantRequest struct {
	Body *TenantCreateBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

The request message.

func (*CreateTenantRequest) Descriptor deprecated

func (*CreateTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTenantRequest.ProtoReflect.Descriptor instead.

func (*CreateTenantRequest) GetBody

func (x *CreateTenantRequest) GetBody() *TenantCreateBody

func (*CreateTenantRequest) ProtoMessage

func (*CreateTenantRequest) ProtoMessage()

func (*CreateTenantRequest) ProtoReflect

func (x *CreateTenantRequest) ProtoReflect() protoreflect.Message

func (*CreateTenantRequest) Reset

func (x *CreateTenantRequest) Reset()

func (*CreateTenantRequest) String

func (x *CreateTenantRequest) String() string

type CreateTenantResponse

type CreateTenantResponse struct {
	TenantId      string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	TenantTitle   string `protobuf:"bytes,2,opt,name=tenant_title,json=tenantTitle,proto3" json:"tenant_title,omitempty"`
	AdminUsername string `protobuf:"bytes,3,opt,name=admin_username,json=adminUsername,proto3" json:"admin_username,omitempty"`
	ResetKey      string `protobuf:"bytes,4,opt,name=reset_key,json=resetKey,proto3" json:"reset_key,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the greetings

func (*CreateTenantResponse) Descriptor deprecated

func (*CreateTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateTenantResponse.ProtoReflect.Descriptor instead.

func (*CreateTenantResponse) GetAdminUsername

func (x *CreateTenantResponse) GetAdminUsername() string

func (*CreateTenantResponse) GetResetKey

func (x *CreateTenantResponse) GetResetKey() string

func (*CreateTenantResponse) GetTenantId

func (x *CreateTenantResponse) GetTenantId() string

func (*CreateTenantResponse) GetTenantTitle

func (x *CreateTenantResponse) GetTenantTitle() string

func (*CreateTenantResponse) ProtoMessage

func (*CreateTenantResponse) ProtoMessage()

func (*CreateTenantResponse) ProtoReflect

func (x *CreateTenantResponse) ProtoReflect() protoreflect.Message

func (*CreateTenantResponse) Reset

func (x *CreateTenantResponse) Reset()

func (*CreateTenantResponse) String

func (x *CreateTenantResponse) String() string

type CreateUserBody

type CreateUserBody struct {
	Username string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Roles    []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
	NickName string   `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserBody) Descriptor deprecated

func (*CreateUserBody) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserBody.ProtoReflect.Descriptor instead.

func (*CreateUserBody) GetNickName

func (x *CreateUserBody) GetNickName() string

func (*CreateUserBody) GetPassword

func (x *CreateUserBody) GetPassword() string

func (*CreateUserBody) GetRoles

func (x *CreateUserBody) GetRoles() []string

func (*CreateUserBody) GetUsername

func (x *CreateUserBody) GetUsername() string

func (*CreateUserBody) ProtoMessage

func (*CreateUserBody) ProtoMessage()

func (*CreateUserBody) ProtoReflect

func (x *CreateUserBody) ProtoReflect() protoreflect.Message

func (*CreateUserBody) Reset

func (x *CreateUserBody) Reset()

func (*CreateUserBody) String

func (x *CreateUserBody) String() string

type CreateUserRequest

type CreateUserRequest struct {
	TenantId string          `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Body     *CreateUserBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

user

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetBody

func (x *CreateUserRequest) GetBody() *CreateUserBody

func (*CreateUserRequest) GetTenantId

func (x *CreateUserRequest) GetTenantId() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

type CreateUserResponse struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// reset password key
	ResetKey string `protobuf:"bytes,4,opt,name=reset_key,json=resetKey,proto3" json:"reset_key,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

func (*CreateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetResetKey

func (x *CreateUserResponse) GetResetKey() string

func (*CreateUserResponse) GetTenantId

func (x *CreateUserResponse) GetTenantId() string

func (*CreateUserResponse) GetUserId

func (x *CreateUserResponse) GetUserId() string

func (*CreateUserResponse) GetUsername

func (x *CreateUserResponse) GetUsername() string

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

func (x *CreateUserResponse) ProtoReflect() protoreflect.Message

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type DeleteTenantPluginRequest

type DeleteTenantPluginRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	PluginId string `protobuf:"bytes,2,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTenantPluginRequest) Descriptor deprecated

func (*DeleteTenantPluginRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTenantPluginRequest.ProtoReflect.Descriptor instead.

func (*DeleteTenantPluginRequest) GetPluginId

func (x *DeleteTenantPluginRequest) GetPluginId() string

func (*DeleteTenantPluginRequest) GetTenantId

func (x *DeleteTenantPluginRequest) GetTenantId() string

func (*DeleteTenantPluginRequest) ProtoMessage

func (*DeleteTenantPluginRequest) ProtoMessage()

func (*DeleteTenantPluginRequest) ProtoReflect

func (*DeleteTenantPluginRequest) Reset

func (x *DeleteTenantPluginRequest) Reset()

func (*DeleteTenantPluginRequest) String

func (x *DeleteTenantPluginRequest) String() string

type DeleteTenantPluginResponse

type DeleteTenantPluginResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTenantPluginResponse) Descriptor deprecated

func (*DeleteTenantPluginResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTenantPluginResponse.ProtoReflect.Descriptor instead.

func (*DeleteTenantPluginResponse) GetOk

func (x *DeleteTenantPluginResponse) GetOk() bool

func (*DeleteTenantPluginResponse) ProtoMessage

func (*DeleteTenantPluginResponse) ProtoMessage()

func (*DeleteTenantPluginResponse) ProtoReflect

func (*DeleteTenantPluginResponse) Reset

func (x *DeleteTenantPluginResponse) Reset()

func (*DeleteTenantPluginResponse) String

func (x *DeleteTenantPluginResponse) String() string

type DeleteTenantRequest

type DeleteTenantRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTenantRequest) Descriptor deprecated

func (*DeleteTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTenantRequest.ProtoReflect.Descriptor instead.

func (*DeleteTenantRequest) GetTenantId

func (x *DeleteTenantRequest) GetTenantId() string

func (*DeleteTenantRequest) ProtoMessage

func (*DeleteTenantRequest) ProtoMessage()

func (*DeleteTenantRequest) ProtoReflect

func (x *DeleteTenantRequest) ProtoReflect() protoreflect.Message

func (*DeleteTenantRequest) Reset

func (x *DeleteTenantRequest) Reset()

func (*DeleteTenantRequest) String

func (x *DeleteTenantRequest) String() string

type DeleteUserRequest

type DeleteUserRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetTenantId

func (x *DeleteUserRequest) GetTenantId() string

func (*DeleteUserRequest) GetUserId

func (x *DeleteUserRequest) GetUserId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type Error

type Error int32

@plugins=protoc-gen-go-errors 错误

const (
	// @msg=未知类型
	// @code=UNKNOWN
	Error_ERR_UNKNOWN Error = 0
	// @msg=已存在的租户
	// @code=INTERNAL
	Error_ERR_TENANT_ALREADY_EXISTED Error = 1
	// @msg=获取租户列表数据出错
	// @code=INTERNAL
	Error_ERR_LIST_TENANT Error = 2
	// @msg=请求参数无效
	// @code=INVALID_ARGUMENT
	Error_ERR_INVALID_ARGUMENT Error = 3
	// @msg=请求后端存储错误
	// @code=INTERNAL
	Error_ERR_INTERNAL_STORE Error = 4
	// @msg=内部错误
	// @code=INTERNAL
	Error_ERR_INTERNAL_ERROR Error = 5
	// @msg=创建租户错误
	// @code=INTERNAL
	Error_ERR_STORE_CREAT_TENANT Error = 6
	// @msg=创建已存在的用户
	// @code=INTERNAL
	Error_ERR_ALREADY_EXISTED_USER_ Error = 7
	// @msg=资源不存在
	// @code=INTERNAL
	Error_ERR_RESOURCE_NOT_FOUND Error = 8
	// @msg=创建租户管理员用户错误
	// @code=INTERNAL
	Error_ERR_STORE_CREAT_ADMIN Error = 9
	// @msg=创建租户管理员角色错误
	// @code=INTERNAL
	Error_ERR_STORE_CREAT_ADMIN_ROLE Error = 10
	// @msg=租户不存在
	// @code=INTERNAL
	Error_ERR_TENANT_NOT_FOUND Error = 11
)

func (Error) Descriptor

func (Error) Descriptor() protoreflect.EnumDescriptor

func (Error) Enum

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated

func (Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error.Descriptor instead.

func (Error) Number

func (x Error) Number() protoreflect.EnumNumber

func (Error) String

func (x Error) String() string

func (Error) Type

func (Error) Type() protoreflect.EnumType

type ExactTenantRequest

type ExactTenantRequest struct {
	Title    string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ExactTenantRequest) Descriptor deprecated

func (*ExactTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExactTenantRequest.ProtoReflect.Descriptor instead.

func (*ExactTenantRequest) GetTenantId

func (x *ExactTenantRequest) GetTenantId() string

func (*ExactTenantRequest) GetTitle

func (x *ExactTenantRequest) GetTitle() string

func (*ExactTenantRequest) ProtoMessage

func (*ExactTenantRequest) ProtoMessage()

func (*ExactTenantRequest) ProtoReflect

func (x *ExactTenantRequest) ProtoReflect() protoreflect.Message

func (*ExactTenantRequest) Reset

func (x *ExactTenantRequest) Reset()

func (*ExactTenantRequest) String

func (x *ExactTenantRequest) String() string

type ExactTenantResponse

type ExactTenantResponse struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Title    string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	AuthType string `protobuf:"bytes,3,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ExactTenantResponse) Descriptor deprecated

func (*ExactTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExactTenantResponse.ProtoReflect.Descriptor instead.

func (*ExactTenantResponse) GetAuthType added in v1.0.0

func (x *ExactTenantResponse) GetAuthType() string

func (*ExactTenantResponse) GetTenantId

func (x *ExactTenantResponse) GetTenantId() string

func (*ExactTenantResponse) GetTitle

func (x *ExactTenantResponse) GetTitle() string

func (*ExactTenantResponse) ProtoMessage

func (*ExactTenantResponse) ProtoMessage()

func (*ExactTenantResponse) ProtoReflect

func (x *ExactTenantResponse) ProtoReflect() protoreflect.Message

func (*ExactTenantResponse) Reset

func (x *ExactTenantResponse) Reset()

func (*ExactTenantResponse) String

func (x *ExactTenantResponse) String() string

type GetResetPasswordKeyRequest

type GetResetPasswordKeyRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResetPasswordKeyRequest) Descriptor deprecated

func (*GetResetPasswordKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResetPasswordKeyRequest.ProtoReflect.Descriptor instead.

func (*GetResetPasswordKeyRequest) GetTenantId

func (x *GetResetPasswordKeyRequest) GetTenantId() string

func (*GetResetPasswordKeyRequest) GetUserId

func (x *GetResetPasswordKeyRequest) GetUserId() string

func (*GetResetPasswordKeyRequest) ProtoMessage

func (*GetResetPasswordKeyRequest) ProtoMessage()

func (*GetResetPasswordKeyRequest) ProtoReflect

func (*GetResetPasswordKeyRequest) Reset

func (x *GetResetPasswordKeyRequest) Reset()

func (*GetResetPasswordKeyRequest) String

func (x *GetResetPasswordKeyRequest) String() string

type GetResetPasswordKeyResponse

type GetResetPasswordKeyResponse struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	ResetKey string `protobuf:"bytes,5,opt,name=reset_key,json=resetKey,proto3" json:"reset_key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResetPasswordKeyResponse) Descriptor deprecated

func (*GetResetPasswordKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResetPasswordKeyResponse.ProtoReflect.Descriptor instead.

func (*GetResetPasswordKeyResponse) GetNickName

func (x *GetResetPasswordKeyResponse) GetNickName() string

func (*GetResetPasswordKeyResponse) GetResetKey

func (x *GetResetPasswordKeyResponse) GetResetKey() string

func (*GetResetPasswordKeyResponse) GetTenantId

func (x *GetResetPasswordKeyResponse) GetTenantId() string

func (*GetResetPasswordKeyResponse) GetUserId

func (x *GetResetPasswordKeyResponse) GetUserId() string

func (*GetResetPasswordKeyResponse) GetUsername

func (x *GetResetPasswordKeyResponse) GetUsername() string

func (*GetResetPasswordKeyResponse) ProtoMessage

func (*GetResetPasswordKeyResponse) ProtoMessage()

func (*GetResetPasswordKeyResponse) ProtoReflect

func (*GetResetPasswordKeyResponse) Reset

func (x *GetResetPasswordKeyResponse) Reset()

func (*GetResetPasswordKeyResponse) String

func (x *GetResetPasswordKeyResponse) String() string

type GetTenantRequest

type GetTenantRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTenantRequest) Descriptor deprecated

func (*GetTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTenantRequest.ProtoReflect.Descriptor instead.

func (*GetTenantRequest) GetTenantId

func (x *GetTenantRequest) GetTenantId() string

func (*GetTenantRequest) ProtoMessage

func (*GetTenantRequest) ProtoMessage()

func (*GetTenantRequest) ProtoReflect

func (x *GetTenantRequest) ProtoReflect() protoreflect.Message

func (*GetTenantRequest) Reset

func (x *GetTenantRequest) Reset()

func (*GetTenantRequest) String

func (x *GetTenantRequest) String() string

type GetTenantResponse

type GetTenantResponse struct {
	TenantId  string         `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Title     string         `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Remark    string         `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
	CreatedAt int64          `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	NumUser   int32          `protobuf:"varint,5,opt,name=num_user,json=numUser,proto3" json:"num_user,omitempty"`
	Admins    []*TenantAdmin `protobuf:"bytes,6,rep,name=admins,proto3" json:"admins,omitempty"`
	AuthType  string         `protobuf:"bytes,7,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTenantResponse) Descriptor deprecated

func (*GetTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetTenantResponse.ProtoReflect.Descriptor instead.

func (*GetTenantResponse) GetAdmins

func (x *GetTenantResponse) GetAdmins() []*TenantAdmin

func (*GetTenantResponse) GetAuthType added in v1.0.0

func (x *GetTenantResponse) GetAuthType() string

func (*GetTenantResponse) GetCreatedAt

func (x *GetTenantResponse) GetCreatedAt() int64

func (*GetTenantResponse) GetNumUser

func (x *GetTenantResponse) GetNumUser() int32

func (*GetTenantResponse) GetRemark

func (x *GetTenantResponse) GetRemark() string

func (*GetTenantResponse) GetTenantId

func (x *GetTenantResponse) GetTenantId() string

func (*GetTenantResponse) GetTitle

func (x *GetTenantResponse) GetTitle() string

func (*GetTenantResponse) ProtoMessage

func (*GetTenantResponse) ProtoMessage()

func (*GetTenantResponse) ProtoReflect

func (x *GetTenantResponse) ProtoReflect() protoreflect.Message

func (*GetTenantResponse) Reset

func (x *GetTenantResponse) Reset()

func (*GetTenantResponse) String

func (x *GetTenantResponse) String() string

type GetUserRequest

type GetUserRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetTenantId

func (x *GetUserRequest) GetTenantId() string

func (*GetUserRequest) GetUserId

func (x *GetUserRequest) GetUserId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {
	TenantId   string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId     string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	Username   string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Email      string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	NickName   string `protobuf:"bytes,6,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	Avatar     string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetAvatar

func (x *GetUserResponse) GetAvatar() string

func (*GetUserResponse) GetEmail

func (x *GetUserResponse) GetEmail() string

func (*GetUserResponse) GetExternalId

func (x *GetUserResponse) GetExternalId() string

func (*GetUserResponse) GetNickName

func (x *GetUserResponse) GetNickName() string

func (*GetUserResponse) GetTenantId

func (x *GetUserResponse) GetTenantId() string

func (*GetUserResponse) GetUserId

func (x *GetUserResponse) GetUserId() string

func (*GetUserResponse) GetUsername

func (x *GetUserResponse) GetUsername() string

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type ListTenantPluginRequest

type ListTenantPluginRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTenantPluginRequest) Descriptor deprecated

func (*ListTenantPluginRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTenantPluginRequest.ProtoReflect.Descriptor instead.

func (*ListTenantPluginRequest) GetTenantId

func (x *ListTenantPluginRequest) GetTenantId() string

func (*ListTenantPluginRequest) ProtoMessage

func (*ListTenantPluginRequest) ProtoMessage()

func (*ListTenantPluginRequest) ProtoReflect

func (x *ListTenantPluginRequest) ProtoReflect() protoreflect.Message

func (*ListTenantPluginRequest) Reset

func (x *ListTenantPluginRequest) Reset()

func (*ListTenantPluginRequest) String

func (x *ListTenantPluginRequest) String() string

type ListTenantPluginResponse

type ListTenantPluginResponse struct {
	Plugins []string `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTenantPluginResponse) Descriptor deprecated

func (*ListTenantPluginResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTenantPluginResponse.ProtoReflect.Descriptor instead.

func (*ListTenantPluginResponse) GetPlugins

func (x *ListTenantPluginResponse) GetPlugins() []string

func (*ListTenantPluginResponse) ProtoMessage

func (*ListTenantPluginResponse) ProtoMessage()

func (*ListTenantPluginResponse) ProtoReflect

func (x *ListTenantPluginResponse) ProtoReflect() protoreflect.Message

func (*ListTenantPluginResponse) Reset

func (x *ListTenantPluginResponse) Reset()

func (*ListTenantPluginResponse) String

func (x *ListTenantPluginResponse) String() string

type ListTenantRequest

type ListTenantRequest struct {
	PageNum      int32  `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize     int32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	OrderBy      string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	IsDescending bool   `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"`
	KeyWords     string `protobuf:"bytes,5,opt,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTenantRequest) Descriptor deprecated

func (*ListTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTenantRequest.ProtoReflect.Descriptor instead.

func (*ListTenantRequest) GetIsDescending

func (x *ListTenantRequest) GetIsDescending() bool

func (*ListTenantRequest) GetKeyWords

func (x *ListTenantRequest) GetKeyWords() string

func (*ListTenantRequest) GetOrderBy

func (x *ListTenantRequest) GetOrderBy() string

func (*ListTenantRequest) GetPageNum

func (x *ListTenantRequest) GetPageNum() int32

func (*ListTenantRequest) GetPageSize

func (x *ListTenantRequest) GetPageSize() int32

func (*ListTenantRequest) ProtoMessage

func (*ListTenantRequest) ProtoMessage()

func (*ListTenantRequest) ProtoReflect

func (x *ListTenantRequest) ProtoReflect() protoreflect.Message

func (*ListTenantRequest) Reset

func (x *ListTenantRequest) Reset()

func (*ListTenantRequest) String

func (x *ListTenantRequest) String() string

type ListTenantResponse

type ListTenantResponse struct {
	Total    int32           `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	PageNum  int32           `protobuf:"varint,2,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize int32           `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Tenants  []*TenantDetail `protobuf:"bytes,4,rep,name=tenants,proto3" json:"tenants,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTenantResponse) Descriptor deprecated

func (*ListTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTenantResponse.ProtoReflect.Descriptor instead.

func (*ListTenantResponse) GetPageNum

func (x *ListTenantResponse) GetPageNum() int32

func (*ListTenantResponse) GetPageSize

func (x *ListTenantResponse) GetPageSize() int32

func (*ListTenantResponse) GetTenants

func (x *ListTenantResponse) GetTenants() []*TenantDetail

func (*ListTenantResponse) GetTotal

func (x *ListTenantResponse) GetTotal() int32

func (*ListTenantResponse) ProtoMessage

func (*ListTenantResponse) ProtoMessage()

func (*ListTenantResponse) ProtoReflect

func (x *ListTenantResponse) ProtoReflect() protoreflect.Message

func (*ListTenantResponse) Reset

func (x *ListTenantResponse) Reset()

func (*ListTenantResponse) String

func (x *ListTenantResponse) String() string

type ListUserRequest

type ListUserRequest struct {
	TenantId     string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	PageNum      int32  `protobuf:"varint,2,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize     int32  `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	OrderBy      string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	IsDescending bool   `protobuf:"varint,5,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"`
	KeyWords     string `protobuf:"bytes,6,opt,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserRequest) Descriptor deprecated

func (*ListUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserRequest) GetIsDescending

func (x *ListUserRequest) GetIsDescending() bool

func (*ListUserRequest) GetKeyWords

func (x *ListUserRequest) GetKeyWords() string

func (*ListUserRequest) GetOrderBy

func (x *ListUserRequest) GetOrderBy() string

func (*ListUserRequest) GetPageNum

func (x *ListUserRequest) GetPageNum() int32

func (*ListUserRequest) GetPageSize

func (x *ListUserRequest) GetPageSize() int32

func (*ListUserRequest) GetTenantId

func (x *ListUserRequest) GetTenantId() string

func (*ListUserRequest) ProtoMessage

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) ProtoReflect

func (x *ListUserRequest) ProtoReflect() protoreflect.Message

func (*ListUserRequest) Reset

func (x *ListUserRequest) Reset()

func (*ListUserRequest) String

func (x *ListUserRequest) String() string

type ListUserResponse

type ListUserResponse struct {
	Total    int32           `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	PageNum  int32           `protobuf:"varint,2,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize int32           `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Users    []*UserListData `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserResponse) Descriptor deprecated

func (*ListUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.

func (*ListUserResponse) GetPageNum

func (x *ListUserResponse) GetPageNum() int32

func (*ListUserResponse) GetPageSize

func (x *ListUserResponse) GetPageSize() int32

func (*ListUserResponse) GetTotal

func (x *ListUserResponse) GetTotal() int32

func (*ListUserResponse) GetUsers

func (x *ListUserResponse) GetUsers() []*UserListData

func (*ListUserResponse) ProtoMessage

func (*ListUserResponse) ProtoMessage()

func (*ListUserResponse) ProtoReflect

func (x *ListUserResponse) ProtoReflect() protoreflect.Message

func (*ListUserResponse) Reset

func (x *ListUserResponse) Reset()

func (*ListUserResponse) String

func (x *ListUserResponse) String() string

type PluginPermissibleRequest

type PluginPermissibleRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	PluginId string `protobuf:"bytes,2,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginPermissibleRequest) Descriptor deprecated

func (*PluginPermissibleRequest) Descriptor() ([]byte, []int)

Deprecated: Use PluginPermissibleRequest.ProtoReflect.Descriptor instead.

func (*PluginPermissibleRequest) GetPluginId

func (x *PluginPermissibleRequest) GetPluginId() string

func (*PluginPermissibleRequest) GetTenantId

func (x *PluginPermissibleRequest) GetTenantId() string

func (*PluginPermissibleRequest) ProtoMessage

func (*PluginPermissibleRequest) ProtoMessage()

func (*PluginPermissibleRequest) ProtoReflect

func (x *PluginPermissibleRequest) ProtoReflect() protoreflect.Message

func (*PluginPermissibleRequest) Reset

func (x *PluginPermissibleRequest) Reset()

func (*PluginPermissibleRequest) String

func (x *PluginPermissibleRequest) String() string

type PluginPermissibleResponse

type PluginPermissibleResponse struct {
	Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginPermissibleResponse) Descriptor deprecated

func (*PluginPermissibleResponse) Descriptor() ([]byte, []int)

Deprecated: Use PluginPermissibleResponse.ProtoReflect.Descriptor instead.

func (*PluginPermissibleResponse) GetAllowed

func (x *PluginPermissibleResponse) GetAllowed() bool

func (*PluginPermissibleResponse) ProtoMessage

func (*PluginPermissibleResponse) ProtoMessage()

func (*PluginPermissibleResponse) ProtoReflect

func (*PluginPermissibleResponse) Reset

func (x *PluginPermissibleResponse) Reset()

func (*PluginPermissibleResponse) String

func (x *PluginPermissibleResponse) String() string

type RPKInfoBody

type RPKInfoBody struct {
	ResetKey string `protobuf:"bytes,1,opt,name=reset_key,json=resetKey,proto3" json:"reset_key,omitempty"`
	// contains filtered or unexported fields
}

func (*RPKInfoBody) Descriptor deprecated

func (*RPKInfoBody) Descriptor() ([]byte, []int)

Deprecated: Use RPKInfoBody.ProtoReflect.Descriptor instead.

func (*RPKInfoBody) GetResetKey

func (x *RPKInfoBody) GetResetKey() string

func (*RPKInfoBody) ProtoMessage

func (*RPKInfoBody) ProtoMessage()

func (*RPKInfoBody) ProtoReflect

func (x *RPKInfoBody) ProtoReflect() protoreflect.Message

func (*RPKInfoBody) Reset

func (x *RPKInfoBody) Reset()

func (*RPKInfoBody) String

func (x *RPKInfoBody) String() string

type RPKInfoRequest

type RPKInfoRequest struct {
	Body *RPKInfoBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*RPKInfoRequest) Descriptor deprecated

func (*RPKInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use RPKInfoRequest.ProtoReflect.Descriptor instead.

func (*RPKInfoRequest) GetBody

func (x *RPKInfoRequest) GetBody() *RPKInfoBody

func (*RPKInfoRequest) ProtoMessage

func (*RPKInfoRequest) ProtoMessage()

func (*RPKInfoRequest) ProtoReflect

func (x *RPKInfoRequest) ProtoReflect() protoreflect.Message

func (*RPKInfoRequest) Reset

func (x *RPKInfoRequest) Reset()

func (*RPKInfoRequest) String

func (x *RPKInfoRequest) String() string

type RPKInfoResponse

type RPKInfoResponse struct {
	UserId   string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	TenantId string `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPKInfoResponse) Descriptor deprecated

func (*RPKInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use RPKInfoResponse.ProtoReflect.Descriptor instead.

func (*RPKInfoResponse) GetNickName

func (x *RPKInfoResponse) GetNickName() string

func (*RPKInfoResponse) GetTenantId

func (x *RPKInfoResponse) GetTenantId() string

func (*RPKInfoResponse) GetUserId

func (x *RPKInfoResponse) GetUserId() string

func (*RPKInfoResponse) GetUsername

func (x *RPKInfoResponse) GetUsername() string

func (*RPKInfoResponse) ProtoMessage

func (*RPKInfoResponse) ProtoMessage()

func (*RPKInfoResponse) ProtoReflect

func (x *RPKInfoResponse) ProtoReflect() protoreflect.Message

func (*RPKInfoResponse) Reset

func (x *RPKInfoResponse) Reset()

func (*RPKInfoResponse) String

func (x *RPKInfoResponse) String() string

type TenantAdmin

type TenantAdmin struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantAdmin) Descriptor deprecated

func (*TenantAdmin) Descriptor() ([]byte, []int)

Deprecated: Use TenantAdmin.ProtoReflect.Descriptor instead.

func (*TenantAdmin) GetPassword

func (x *TenantAdmin) GetPassword() string

func (*TenantAdmin) GetUsername

func (x *TenantAdmin) GetUsername() string

func (*TenantAdmin) ProtoMessage

func (*TenantAdmin) ProtoMessage()

func (*TenantAdmin) ProtoReflect

func (x *TenantAdmin) ProtoReflect() protoreflect.Message

func (*TenantAdmin) Reset

func (x *TenantAdmin) Reset()

func (*TenantAdmin) String

func (x *TenantAdmin) String() string

type TenantClient

type TenantClient interface {
	// create a tenant.
	CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*CreateTenantResponse, error)
	// get a tenant.
	GetTenant(ctx context.Context, in *GetTenantRequest, opts ...grpc.CallOption) (*GetTenantResponse, error)
	// list tenant.
	ListTenant(ctx context.Context, in *ListTenantRequest, opts ...grpc.CallOption) (*ListTenantResponse, error)
	// exact search by title (open for auth).
	TenantByExactSearch(ctx context.Context, in *ExactTenantRequest, opts ...grpc.CallOption) (*ExactTenantResponse, error)
	// update tenant.
	UpdateTenant(ctx context.Context, in *UpdateTenantRequest, opts ...grpc.CallOption) (*UpdateTenantResponse, error)
	// delete a tenant.
	DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// create a user.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	//  get user.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	// list user.
	ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error)
	// delete a user.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// update user
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	// add a plugin
	AddTenantPlugin(ctx context.Context, in *AddTenantPluginRequest, opts ...grpc.CallOption) (*AddTenantPluginResponse, error)
	// list plugin
	ListTenantPlugin(ctx context.Context, in *ListTenantPluginRequest, opts ...grpc.CallOption) (*ListTenantPluginResponse, error)
	// delete plugin
	DeleteTenantPlugin(ctx context.Context, in *DeleteTenantPluginRequest, opts ...grpc.CallOption) (*DeleteTenantPluginResponse, error)
	TenantPluginPermissible(ctx context.Context, in *PluginPermissibleRequest, opts ...grpc.CallOption) (*PluginPermissibleResponse, error)
	GetResetPasswordKey(ctx context.Context, in *GetResetPasswordKeyRequest, opts ...grpc.CallOption) (*GetResetPasswordKeyResponse, error)
	ResetPasswordKeyInfo(ctx context.Context, in *RPKInfoRequest, opts ...grpc.CallOption) (*RPKInfoResponse, error)
}

TenantClient is the client API for Tenant service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTenantClient

func NewTenantClient(cc grpc.ClientConnInterface) TenantClient

type TenantCreateBody

type TenantCreateBody struct {
	Title          string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Remark         string       `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`
	TenantId       string       `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Admin          *TenantAdmin `protobuf:"bytes,4,opt,name=admin,proto3" json:"admin,omitempty"`
	AuthType       string       `protobuf:"bytes,5,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	IdProviderType string       `protobuf:"bytes,6,opt,name=id_provider_type,json=idProviderType,proto3" json:"id_provider_type,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantCreateBody) Descriptor deprecated

func (*TenantCreateBody) Descriptor() ([]byte, []int)

Deprecated: Use TenantCreateBody.ProtoReflect.Descriptor instead.

func (*TenantCreateBody) GetAdmin

func (x *TenantCreateBody) GetAdmin() *TenantAdmin

func (*TenantCreateBody) GetAuthType added in v1.0.0

func (x *TenantCreateBody) GetAuthType() string

func (*TenantCreateBody) GetIdProviderType added in v1.0.0

func (x *TenantCreateBody) GetIdProviderType() string

func (*TenantCreateBody) GetRemark

func (x *TenantCreateBody) GetRemark() string

func (*TenantCreateBody) GetTenantId

func (x *TenantCreateBody) GetTenantId() string

func (*TenantCreateBody) GetTitle

func (x *TenantCreateBody) GetTitle() string

func (*TenantCreateBody) ProtoMessage

func (*TenantCreateBody) ProtoMessage()

func (*TenantCreateBody) ProtoReflect

func (x *TenantCreateBody) ProtoReflect() protoreflect.Message

func (*TenantCreateBody) Reset

func (x *TenantCreateBody) Reset()

func (*TenantCreateBody) String

func (x *TenantCreateBody) String() string

type TenantDetail

type TenantDetail struct {
	TenantId  string         `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Title     string         `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Remark    string         `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
	NumUser   int32          `protobuf:"varint,4,opt,name=num_user,json=numUser,proto3" json:"num_user,omitempty"`
	CreatedAt int64          `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Roles     []string       `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	Admins    []*TenantAdmin `protobuf:"bytes,7,rep,name=admins,proto3" json:"admins,omitempty"`
	AuthType  string         `protobuf:"bytes,8,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantDetail) Descriptor deprecated

func (*TenantDetail) Descriptor() ([]byte, []int)

Deprecated: Use TenantDetail.ProtoReflect.Descriptor instead.

func (*TenantDetail) GetAdmins

func (x *TenantDetail) GetAdmins() []*TenantAdmin

func (*TenantDetail) GetAuthType added in v1.0.0

func (x *TenantDetail) GetAuthType() string

func (*TenantDetail) GetCreatedAt

func (x *TenantDetail) GetCreatedAt() int64

func (*TenantDetail) GetNumUser

func (x *TenantDetail) GetNumUser() int32

func (*TenantDetail) GetRemark

func (x *TenantDetail) GetRemark() string

func (*TenantDetail) GetRoles

func (x *TenantDetail) GetRoles() []string

func (*TenantDetail) GetTenantId

func (x *TenantDetail) GetTenantId() string

func (*TenantDetail) GetTitle

func (x *TenantDetail) GetTitle() string

func (*TenantDetail) ProtoMessage

func (*TenantDetail) ProtoMessage()

func (*TenantDetail) ProtoReflect

func (x *TenantDetail) ProtoReflect() protoreflect.Message

func (*TenantDetail) Reset

func (x *TenantDetail) Reset()

func (*TenantDetail) String

func (x *TenantDetail) String() string

type TenantHTTPHandler

type TenantHTTPHandler struct {
	// contains filtered or unexported fields
}

func (*TenantHTTPHandler) AddTenantPlugin

func (h *TenantHTTPHandler) AddTenantPlugin(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) CreateTenant

func (h *TenantHTTPHandler) CreateTenant(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) CreateUser

func (h *TenantHTTPHandler) CreateUser(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) DeleteTenant

func (h *TenantHTTPHandler) DeleteTenant(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) DeleteTenantPlugin

func (h *TenantHTTPHandler) DeleteTenantPlugin(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) DeleteUser

func (h *TenantHTTPHandler) DeleteUser(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) GetResetPasswordKey

func (h *TenantHTTPHandler) GetResetPasswordKey(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) GetTenant

func (h *TenantHTTPHandler) GetTenant(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) GetUser

func (h *TenantHTTPHandler) GetUser(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) ListTenant

func (h *TenantHTTPHandler) ListTenant(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) ListTenantPlugin

func (h *TenantHTTPHandler) ListTenantPlugin(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) ListUser

func (h *TenantHTTPHandler) ListUser(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) ResetPasswordKeyInfo

func (h *TenantHTTPHandler) ResetPasswordKeyInfo(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) TenantByExactSearch

func (h *TenantHTTPHandler) TenantByExactSearch(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) TenantPluginPermissible

func (h *TenantHTTPHandler) TenantPluginPermissible(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) UpdateTenant

func (h *TenantHTTPHandler) UpdateTenant(req *go_restful.Request, resp *go_restful.Response)

func (*TenantHTTPHandler) UpdateUser

func (h *TenantHTTPHandler) UpdateUser(req *go_restful.Request, resp *go_restful.Response)

type TenantServer

type TenantServer interface {
	// create a tenant.
	CreateTenant(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error)
	// get a tenant.
	GetTenant(context.Context, *GetTenantRequest) (*GetTenantResponse, error)
	// list tenant.
	ListTenant(context.Context, *ListTenantRequest) (*ListTenantResponse, error)
	// exact search by title (open for auth).
	TenantByExactSearch(context.Context, *ExactTenantRequest) (*ExactTenantResponse, error)
	// update tenant.
	UpdateTenant(context.Context, *UpdateTenantRequest) (*UpdateTenantResponse, error)
	// delete a tenant.
	DeleteTenant(context.Context, *DeleteTenantRequest) (*emptypb.Empty, error)
	// create a user.
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	//  get user.
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	// list user.
	ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
	// delete a user.
	DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
	// update user
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
	// add a plugin
	AddTenantPlugin(context.Context, *AddTenantPluginRequest) (*AddTenantPluginResponse, error)
	// list plugin
	ListTenantPlugin(context.Context, *ListTenantPluginRequest) (*ListTenantPluginResponse, error)
	// delete plugin
	DeleteTenantPlugin(context.Context, *DeleteTenantPluginRequest) (*DeleteTenantPluginResponse, error)
	TenantPluginPermissible(context.Context, *PluginPermissibleRequest) (*PluginPermissibleResponse, error)
	GetResetPasswordKey(context.Context, *GetResetPasswordKeyRequest) (*GetResetPasswordKeyResponse, error)
	ResetPasswordKeyInfo(context.Context, *RPKInfoRequest) (*RPKInfoResponse, error)
	// contains filtered or unexported methods
}

TenantServer is the server API for Tenant service. All implementations must embed UnimplementedTenantServer for forward compatibility

type UnimplementedTenantServer

type UnimplementedTenantServer struct {
}

UnimplementedTenantServer must be embedded to have forward compatible implementations.

func (UnimplementedTenantServer) AddTenantPlugin

func (UnimplementedTenantServer) CreateTenant

func (UnimplementedTenantServer) CreateUser

func (UnimplementedTenantServer) DeleteTenant

func (UnimplementedTenantServer) DeleteUser

func (UnimplementedTenantServer) GetTenant

func (UnimplementedTenantServer) GetUser

func (UnimplementedTenantServer) ListTenant

func (UnimplementedTenantServer) ListTenantPlugin

func (UnimplementedTenantServer) ListUser

func (UnimplementedTenantServer) ResetPasswordKeyInfo

func (UnimplementedTenantServer) TenantByExactSearch

func (UnimplementedTenantServer) TenantPluginPermissible

func (UnimplementedTenantServer) UpdateTenant

func (UnimplementedTenantServer) UpdateUser

type UnsafeTenantServer

type UnsafeTenantServer interface {
	// contains filtered or unexported methods
}

UnsafeTenantServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantServer will result in compilation errors.

type UpdateTenantBody

type UpdateTenantBody struct {
	Title  string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTenantBody) Descriptor deprecated

func (*UpdateTenantBody) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTenantBody.ProtoReflect.Descriptor instead.

func (*UpdateTenantBody) GetRemark

func (x *UpdateTenantBody) GetRemark() string

func (*UpdateTenantBody) GetTitle

func (x *UpdateTenantBody) GetTitle() string

func (*UpdateTenantBody) ProtoMessage

func (*UpdateTenantBody) ProtoMessage()

func (*UpdateTenantBody) ProtoReflect

func (x *UpdateTenantBody) ProtoReflect() protoreflect.Message

func (*UpdateTenantBody) Reset

func (x *UpdateTenantBody) Reset()

func (*UpdateTenantBody) String

func (x *UpdateTenantBody) String() string

type UpdateTenantRequest

type UpdateTenantRequest struct {
	TenantId string            `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Body     *UpdateTenantBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTenantRequest) Descriptor deprecated

func (*UpdateTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTenantRequest.ProtoReflect.Descriptor instead.

func (*UpdateTenantRequest) GetBody

func (x *UpdateTenantRequest) GetBody() *UpdateTenantBody

func (*UpdateTenantRequest) GetTenantId

func (x *UpdateTenantRequest) GetTenantId() string

func (*UpdateTenantRequest) ProtoMessage

func (*UpdateTenantRequest) ProtoMessage()

func (*UpdateTenantRequest) ProtoReflect

func (x *UpdateTenantRequest) ProtoReflect() protoreflect.Message

func (*UpdateTenantRequest) Reset

func (x *UpdateTenantRequest) Reset()

func (*UpdateTenantRequest) String

func (x *UpdateTenantRequest) String() string

type UpdateTenantResponse

type UpdateTenantResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateTenantResponse) Descriptor deprecated

func (*UpdateTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTenantResponse.ProtoReflect.Descriptor instead.

func (*UpdateTenantResponse) ProtoMessage

func (*UpdateTenantResponse) ProtoMessage()

func (*UpdateTenantResponse) ProtoReflect

func (x *UpdateTenantResponse) ProtoReflect() protoreflect.Message

func (*UpdateTenantResponse) Reset

func (x *UpdateTenantResponse) Reset()

func (*UpdateTenantResponse) String

func (x *UpdateTenantResponse) String() string

type UpdateUserBody

type UpdateUserBody struct {
	NickName string   `protobuf:"bytes,1,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	Roles    []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserBody) Descriptor deprecated

func (*UpdateUserBody) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserBody.ProtoReflect.Descriptor instead.

func (*UpdateUserBody) GetNickName

func (x *UpdateUserBody) GetNickName() string

func (*UpdateUserBody) GetRoles

func (x *UpdateUserBody) GetRoles() []string

func (*UpdateUserBody) ProtoMessage

func (*UpdateUserBody) ProtoMessage()

func (*UpdateUserBody) ProtoReflect

func (x *UpdateUserBody) ProtoReflect() protoreflect.Message

func (*UpdateUserBody) Reset

func (x *UpdateUserBody) Reset()

func (*UpdateUserBody) String

func (x *UpdateUserBody) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	TenantId string          `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId   string          `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Body     *UpdateUserBody `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetBody

func (x *UpdateUserRequest) GetBody() *UpdateUserBody

func (*UpdateUserRequest) GetTenantId

func (x *UpdateUserRequest) GetTenantId() string

func (*UpdateUserRequest) GetUserId

func (x *UpdateUserRequest) GetUserId() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

type UpdateUserResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

func (*UpdateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetOk

func (x *UpdateUserResponse) GetOk() bool

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type UserListData

type UserListData struct {
	TenantId   string      `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserId     string      `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ExternalId string      `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	Username   string      `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Email      string      `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	NickName   string      `protobuf:"bytes,6,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	Avatar     string      `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"`
	CreatedAt  int64       `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Roles      []*UserRole `protobuf:"bytes,9,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*UserListData) Descriptor deprecated

func (*UserListData) Descriptor() ([]byte, []int)

Deprecated: Use UserListData.ProtoReflect.Descriptor instead.

func (*UserListData) GetAvatar

func (x *UserListData) GetAvatar() string

func (*UserListData) GetCreatedAt

func (x *UserListData) GetCreatedAt() int64

func (*UserListData) GetEmail

func (x *UserListData) GetEmail() string

func (*UserListData) GetExternalId

func (x *UserListData) GetExternalId() string

func (*UserListData) GetNickName

func (x *UserListData) GetNickName() string

func (*UserListData) GetRoles

func (x *UserListData) GetRoles() []*UserRole

func (*UserListData) GetTenantId

func (x *UserListData) GetTenantId() string

func (*UserListData) GetUserId

func (x *UserListData) GetUserId() string

func (*UserListData) GetUsername

func (x *UserListData) GetUsername() string

func (*UserListData) ProtoMessage

func (*UserListData) ProtoMessage()

func (*UserListData) ProtoReflect

func (x *UserListData) ProtoReflect() protoreflect.Message

func (*UserListData) Reset

func (x *UserListData) Reset()

func (*UserListData) String

func (x *UserListData) String() string

type UserRole

type UserRole struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserRole) Descriptor deprecated

func (*UserRole) Descriptor() ([]byte, []int)

Deprecated: Use UserRole.ProtoReflect.Descriptor instead.

func (*UserRole) GetId

func (x *UserRole) GetId() string

func (*UserRole) GetName

func (x *UserRole) GetName() string

func (*UserRole) ProtoMessage

func (*UserRole) ProtoMessage()

func (*UserRole) ProtoReflect

func (x *UserRole) ProtoReflect() protoreflect.Message

func (*UserRole) Reset

func (x *UserRole) Reset()

func (*UserRole) String

func (x *UserRole) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL