Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorAdminEmailInvalid(format string, args ...interface{}) *errors.Error
- func ErrorAdminEmailInvalidLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorAdminIdentityRequired(format string, args ...interface{}) *errors.Error
- func ErrorAdminIdentityRequiredLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorAdminPasswordRequired(format string, args ...interface{}) *errors.Error
- func ErrorAdminPasswordRequiredLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorAdminUsernameInvalid(format string, args ...interface{}) *errors.Error
- func ErrorAdminUsernameInvalidLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorDuplicateTenantName(format string, args ...interface{}) *errors.Error
- func ErrorDuplicateTenantNameLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorTenantForbidden(format string, args ...interface{}) *errors.Error
- func ErrorTenantForbiddenLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorTenantNotFound(format string, args ...interface{}) *errors.Error
- func ErrorTenantNotFoundLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorTenantNotReady(format string, args ...interface{}) *errors.Error
- func ErrorTenantNotReadyLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func IsAdminEmailInvalid(err error) bool
- func IsAdminIdentityRequired(err error) bool
- func IsAdminPasswordRequired(err error) bool
- func IsAdminUsernameInvalid(err error) bool
- func IsDuplicateTenantName(err error) bool
- func IsTenantForbidden(err error) bool
- func IsTenantNotFound(err error) bool
- func IsTenantNotReady(err error) bool
- func RegisterTenantInternalServiceServer(s grpc.ServiceRegistrar, srv TenantInternalServiceServer)
- func RegisterTenantServiceHTTPServer(s *http.Server, srv TenantServiceHTTPServer)
- func RegisterTenantServiceServer(s grpc.ServiceRegistrar, srv TenantServiceServer)
- type CreateTenantRequest
- func (*CreateTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTenantRequest) GetAdminEmail() *wrapperspb.StringValue
- func (x *CreateTenantRequest) GetAdminPassword() *wrapperspb.StringValue
- func (x *CreateTenantRequest) GetAdminUsername() *wrapperspb.StringValue
- func (x *CreateTenantRequest) GetDisplayName() string
- func (x *CreateTenantRequest) GetLogo() string
- func (x *CreateTenantRequest) GetName() string
- func (x *CreateTenantRequest) GetRegion() string
- func (x *CreateTenantRequest) GetSeparateDb() bool
- func (*CreateTenantRequest) ProtoMessage()
- func (x *CreateTenantRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTenantRequest) Reset()
- func (x *CreateTenantRequest) String() string
- func (m *CreateTenantRequest) Validate() error
- func (m *CreateTenantRequest) ValidateAll() error
- type CreateTenantRequestMultiError
- type CreateTenantRequestValidationError
- func (e CreateTenantRequestValidationError) Cause() error
- func (e CreateTenantRequestValidationError) Error() string
- func (e CreateTenantRequestValidationError) ErrorName() string
- func (e CreateTenantRequestValidationError) Field() string
- func (e CreateTenantRequestValidationError) Key() bool
- func (e CreateTenantRequestValidationError) Reason() string
- type DeleteTenantReply
- func (*DeleteTenantReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTenantReply) GetId() string
- func (*DeleteTenantReply) ProtoMessage()
- func (x *DeleteTenantReply) ProtoReflect() protoreflect.Message
- func (x *DeleteTenantReply) Reset()
- func (x *DeleteTenantReply) String() string
- func (m *DeleteTenantReply) Validate() error
- func (m *DeleteTenantReply) ValidateAll() error
- type DeleteTenantReplyMultiError
- type DeleteTenantReplyValidationError
- func (e DeleteTenantReplyValidationError) Cause() error
- func (e DeleteTenantReplyValidationError) Error() string
- func (e DeleteTenantReplyValidationError) ErrorName() string
- func (e DeleteTenantReplyValidationError) Field() string
- func (e DeleteTenantReplyValidationError) Key() bool
- func (e DeleteTenantReplyValidationError) Reason() string
- type DeleteTenantRequest
- func (*DeleteTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTenantRequest) GetId() string
- func (*DeleteTenantRequest) ProtoMessage()
- func (x *DeleteTenantRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTenantRequest) Reset()
- func (x *DeleteTenantRequest) String() string
- func (m *DeleteTenantRequest) Validate() error
- func (m *DeleteTenantRequest) ValidateAll() error
- type DeleteTenantRequestMultiError
- type DeleteTenantRequestValidationError
- func (e DeleteTenantRequestValidationError) Cause() error
- func (e DeleteTenantRequestValidationError) Error() string
- func (e DeleteTenantRequestValidationError) ErrorName() string
- func (e DeleteTenantRequestValidationError) Field() string
- func (e DeleteTenantRequestValidationError) Key() bool
- func (e DeleteTenantRequestValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetCurrentTenantReply
- func (*GetCurrentTenantReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentTenantReply) GetIsHost() bool
- func (x *GetCurrentTenantReply) GetTenant() *TenantInfo
- func (*GetCurrentTenantReply) ProtoMessage()
- func (x *GetCurrentTenantReply) ProtoReflect() protoreflect.Message
- func (x *GetCurrentTenantReply) Reset()
- func (x *GetCurrentTenantReply) String() string
- func (m *GetCurrentTenantReply) Validate() error
- func (m *GetCurrentTenantReply) ValidateAll() error
- type GetCurrentTenantReplyMultiError
- type GetCurrentTenantReplyValidationError
- func (e GetCurrentTenantReplyValidationError) Cause() error
- func (e GetCurrentTenantReplyValidationError) Error() string
- func (e GetCurrentTenantReplyValidationError) ErrorName() string
- func (e GetCurrentTenantReplyValidationError) Field() string
- func (e GetCurrentTenantReplyValidationError) Key() bool
- func (e GetCurrentTenantReplyValidationError) Reason() string
- type GetCurrentTenantRequest
- func (*GetCurrentTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetCurrentTenantRequest) ProtoMessage()
- func (x *GetCurrentTenantRequest) ProtoReflect() protoreflect.Message
- func (x *GetCurrentTenantRequest) Reset()
- func (x *GetCurrentTenantRequest) String() string
- func (m *GetCurrentTenantRequest) Validate() error
- func (m *GetCurrentTenantRequest) ValidateAll() error
- type GetCurrentTenantRequestMultiError
- type GetCurrentTenantRequestValidationError
- func (e GetCurrentTenantRequestValidationError) Cause() error
- func (e GetCurrentTenantRequestValidationError) Error() string
- func (e GetCurrentTenantRequestValidationError) ErrorName() string
- func (e GetCurrentTenantRequestValidationError) Field() string
- func (e GetCurrentTenantRequestValidationError) Key() bool
- func (e GetCurrentTenantRequestValidationError) Reason() string
- type GetTenantPublicRequest
- func (*GetTenantPublicRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTenantPublicRequest) GetIdOrName() string
- func (*GetTenantPublicRequest) ProtoMessage()
- func (x *GetTenantPublicRequest) ProtoReflect() protoreflect.Message
- func (x *GetTenantPublicRequest) Reset()
- func (x *GetTenantPublicRequest) String() string
- func (m *GetTenantPublicRequest) Validate() error
- func (m *GetTenantPublicRequest) ValidateAll() error
- type GetTenantPublicRequestMultiError
- type GetTenantPublicRequestValidationError
- func (e GetTenantPublicRequestValidationError) Cause() error
- func (e GetTenantPublicRequestValidationError) Error() string
- func (e GetTenantPublicRequestValidationError) ErrorName() string
- func (e GetTenantPublicRequestValidationError) Field() string
- func (e GetTenantPublicRequestValidationError) Key() bool
- func (e GetTenantPublicRequestValidationError) Reason() string
- type GetTenantRequest
- func (*GetTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTenantRequest) GetIdOrName() string
- func (*GetTenantRequest) ProtoMessage()
- func (x *GetTenantRequest) ProtoReflect() protoreflect.Message
- func (x *GetTenantRequest) Reset()
- func (x *GetTenantRequest) String() string
- func (m *GetTenantRequest) Validate() error
- func (m *GetTenantRequest) ValidateAll() error
- type GetTenantRequestMultiError
- type GetTenantRequestValidationError
- func (e GetTenantRequestValidationError) Cause() error
- func (e GetTenantRequestValidationError) Error() string
- func (e GetTenantRequestValidationError) ErrorName() string
- func (e GetTenantRequestValidationError) Field() string
- func (e GetTenantRequestValidationError) Key() bool
- func (e GetTenantRequestValidationError) Reason() string
- type ListTenantReply
- func (*ListTenantReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantReply) GetFilterSize() int32
- func (x *ListTenantReply) GetItems() []*Tenant
- func (x *ListTenantReply) GetTotalSize() int32
- func (*ListTenantReply) ProtoMessage()
- func (x *ListTenantReply) ProtoReflect() protoreflect.Message
- func (x *ListTenantReply) Reset()
- func (x *ListTenantReply) String() string
- func (m *ListTenantReply) Validate() error
- func (m *ListTenantReply) ValidateAll() error
- type ListTenantReplyMultiError
- type ListTenantReplyValidationError
- func (e ListTenantReplyValidationError) Cause() error
- func (e ListTenantReplyValidationError) Error() string
- func (e ListTenantReplyValidationError) ErrorName() string
- func (e ListTenantReplyValidationError) Field() string
- func (e ListTenantReplyValidationError) Key() bool
- func (e ListTenantReplyValidationError) Reason() string
- type ListTenantRequest
- func (*ListTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantRequest) GetFields() *fieldmaskpb.FieldMask
- func (x *ListTenantRequest) GetFilter() *TenantFilter
- func (x *ListTenantRequest) GetPageOffset() int32
- func (x *ListTenantRequest) GetPageSize() int32
- func (x *ListTenantRequest) GetSearch() string
- func (x *ListTenantRequest) GetSort() []string
- func (*ListTenantRequest) ProtoMessage()
- func (x *ListTenantRequest) ProtoReflect() protoreflect.Message
- func (x *ListTenantRequest) Reset()
- func (x *ListTenantRequest) String() string
- func (m *ListTenantRequest) Validate() error
- func (m *ListTenantRequest) ValidateAll() error
- type ListTenantRequestMultiError
- type ListTenantRequestValidationError
- func (e ListTenantRequestValidationError) Cause() error
- func (e ListTenantRequestValidationError) Error() string
- func (e ListTenantRequestValidationError) ErrorName() string
- func (e ListTenantRequestValidationError) Field() string
- func (e ListTenantRequestValidationError) Key() bool
- func (e ListTenantRequestValidationError) Reason() string
- type Tenant
- func (*Tenant) Descriptor() ([]byte, []int)deprecated
- func (x *Tenant) GetConn() []*TenantConnectionString
- func (x *Tenant) GetCreatedAt() *timestamppb.Timestamp
- func (x *Tenant) GetDisplayName() string
- func (x *Tenant) GetFeatures() []*TenantFeature
- func (x *Tenant) GetHost() string
- func (x *Tenant) GetId() string
- func (x *Tenant) GetLogo() *blob.BlobFile
- func (x *Tenant) GetName() string
- func (x *Tenant) GetRegion() string
- func (x *Tenant) GetSeparateDb() bool
- func (x *Tenant) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Tenant) NormalizeHost(ctx context.Context, app *conf.AppConfig)
- func (*Tenant) ProtoMessage()
- func (x *Tenant) ProtoReflect() protoreflect.Message
- func (x *Tenant) Reset()
- func (x *Tenant) String() string
- func (x *Tenant) ToTenantInfo() *TenantInfo
- func (m *Tenant) Validate() error
- func (m *Tenant) ValidateAll() error
- type TenantConnectionString
- func (*TenantConnectionString) Descriptor() ([]byte, []int)deprecated
- func (x *TenantConnectionString) GetKey() string
- func (x *TenantConnectionString) GetValue() string
- func (*TenantConnectionString) ProtoMessage()
- func (x *TenantConnectionString) ProtoReflect() protoreflect.Message
- func (x *TenantConnectionString) Reset()
- func (x *TenantConnectionString) String() string
- func (m *TenantConnectionString) Validate() error
- func (m *TenantConnectionString) ValidateAll() error
- type TenantConnectionStringMultiError
- type TenantConnectionStringValidationError
- func (e TenantConnectionStringValidationError) Cause() error
- func (e TenantConnectionStringValidationError) Error() string
- func (e TenantConnectionStringValidationError) ErrorName() string
- func (e TenantConnectionStringValidationError) Field() string
- func (e TenantConnectionStringValidationError) Key() bool
- func (e TenantConnectionStringValidationError) Reason() string
- type TenantFeature
- func (*TenantFeature) Descriptor() ([]byte, []int)deprecated
- func (x *TenantFeature) GetKey() string
- func (x *TenantFeature) GetValue() string
- func (*TenantFeature) ProtoMessage()
- func (x *TenantFeature) ProtoReflect() protoreflect.Message
- func (x *TenantFeature) Reset()
- func (x *TenantFeature) String() string
- func (m *TenantFeature) Validate() error
- func (m *TenantFeature) ValidateAll() error
- type TenantFeatureMultiError
- type TenantFeatureValidationError
- func (e TenantFeatureValidationError) Cause() error
- func (e TenantFeatureValidationError) Error() string
- func (e TenantFeatureValidationError) ErrorName() string
- func (e TenantFeatureValidationError) Field() string
- func (e TenantFeatureValidationError) Key() bool
- func (e TenantFeatureValidationError) Reason() string
- type TenantFilter
- func (*TenantFilter) Descriptor() ([]byte, []int)deprecated
- func (x *TenantFilter) GetId() *query.StringFilterOperation
- func (x *TenantFilter) GetName() *query.StringFilterOperation
- func (x *TenantFilter) GetRegion() *query.StringFilterOperation
- func (*TenantFilter) ProtoMessage()
- func (x *TenantFilter) ProtoReflect() protoreflect.Message
- func (x *TenantFilter) Reset()
- func (x *TenantFilter) String() string
- func (m *TenantFilter) Validate() error
- func (m *TenantFilter) ValidateAll() error
- type TenantFilterMultiError
- type TenantFilterValidationError
- func (e TenantFilterValidationError) Cause() error
- func (e TenantFilterValidationError) Error() string
- func (e TenantFilterValidationError) ErrorName() string
- func (e TenantFilterValidationError) Field() string
- func (e TenantFilterValidationError) Key() bool
- func (e TenantFilterValidationError) Reason() string
- type TenantInfo
- func (*TenantInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TenantInfo) GetDisplayName() string
- func (x *TenantInfo) GetHost() string
- func (x *TenantInfo) GetId() string
- func (x *TenantInfo) GetLogo() *blob.BlobFile
- func (x *TenantInfo) GetName() string
- func (x *TenantInfo) GetRegion() string
- func (x *TenantInfo) NormalizeHost(ctx context.Context, app *conf.AppConfig)
- func (*TenantInfo) ProtoMessage()
- func (x *TenantInfo) ProtoReflect() protoreflect.Message
- func (x *TenantInfo) Reset()
- func (x *TenantInfo) String() string
- func (m *TenantInfo) Validate() error
- func (m *TenantInfo) ValidateAll() error
- type TenantInfoMultiError
- type TenantInfoValidationError
- type TenantInternalServiceClient
- type TenantInternalServiceServer
- type TenantMultiError
- type TenantServiceClient
- type TenantServiceHTTPClient
- type TenantServiceHTTPClientImpl
- func (c *TenantServiceHTTPClientImpl) CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...http.CallOption) (*Tenant, error)
- func (c *TenantServiceHTTPClientImpl) DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...http.CallOption) (*DeleteTenantReply, error)
- func (c *TenantServiceHTTPClientImpl) GetCurrentTenant(ctx context.Context, in *GetCurrentTenantRequest, opts ...http.CallOption) (*GetCurrentTenantReply, error)
- func (c *TenantServiceHTTPClientImpl) GetTenant(ctx context.Context, in *GetTenantRequest, opts ...http.CallOption) (*Tenant, error)
- func (c *TenantServiceHTTPClientImpl) GetTenantPublic(ctx context.Context, in *GetTenantPublicRequest, opts ...http.CallOption) (*TenantInfo, error)
- func (c *TenantServiceHTTPClientImpl) ListTenant(ctx context.Context, in *ListTenantRequest, opts ...http.CallOption) (*ListTenantReply, error)
- func (c *TenantServiceHTTPClientImpl) UpdateTenant(ctx context.Context, in *UpdateTenantRequest, opts ...http.CallOption) (*Tenant, error)
- type TenantServiceHTTPServer
- type TenantServiceServer
- type TenantValidationError
- type UnimplementedTenantInternalServiceServer
- type UnimplementedTenantServiceServer
- func (UnimplementedTenantServiceServer) CreateTenant(context.Context, *CreateTenantRequest) (*Tenant, error)
- func (UnimplementedTenantServiceServer) DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantReply, error)
- func (UnimplementedTenantServiceServer) GetCurrentTenant(context.Context, *GetCurrentTenantRequest) (*GetCurrentTenantReply, error)
- func (UnimplementedTenantServiceServer) GetTenant(context.Context, *GetTenantRequest) (*Tenant, error)
- func (UnimplementedTenantServiceServer) GetTenantPublic(context.Context, *GetTenantPublicRequest) (*TenantInfo, error)
- func (UnimplementedTenantServiceServer) ListTenant(context.Context, *ListTenantRequest) (*ListTenantReply, error)
- func (UnimplementedTenantServiceServer) UpdateTenant(context.Context, *UpdateTenantRequest) (*Tenant, error)
- type UnsafeTenantInternalServiceServer
- type UnsafeTenantServiceServer
- type UpdateTenant
- func (*UpdateTenant) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTenant) GetConn() []*TenantConnectionString
- func (x *UpdateTenant) GetDisplayName() string
- func (x *UpdateTenant) GetFeatures() []*TenantFeature
- func (x *UpdateTenant) GetId() string
- func (x *UpdateTenant) GetLogo() string
- func (x *UpdateTenant) GetName() string
- func (*UpdateTenant) ProtoMessage()
- func (x *UpdateTenant) ProtoReflect() protoreflect.Message
- func (x *UpdateTenant) Reset()
- func (x *UpdateTenant) String() string
- func (m *UpdateTenant) Validate() error
- func (m *UpdateTenant) ValidateAll() error
- type UpdateTenantMultiError
- type UpdateTenantRequest
- func (*UpdateTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTenantRequest) GetTenant() *UpdateTenant
- func (x *UpdateTenantRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateTenantRequest) ProtoMessage()
- func (x *UpdateTenantRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTenantRequest) Reset()
- func (x *UpdateTenantRequest) String() string
- func (m *UpdateTenantRequest) Validate() error
- func (m *UpdateTenantRequest) ValidateAll() error
- type UpdateTenantRequestMultiError
- type UpdateTenantRequestValidationError
- func (e UpdateTenantRequestValidationError) Cause() error
- func (e UpdateTenantRequestValidationError) Error() string
- func (e UpdateTenantRequestValidationError) ErrorName() string
- func (e UpdateTenantRequestValidationError) Field() string
- func (e UpdateTenantRequestValidationError) Key() bool
- func (e UpdateTenantRequestValidationError) Reason() string
- type UpdateTenantValidationError
- func (e UpdateTenantValidationError) Cause() error
- func (e UpdateTenantValidationError) Error() string
- func (e UpdateTenantValidationError) ErrorName() string
- func (e UpdateTenantValidationError) Field() string
- func (e UpdateTenantValidationError) Key() bool
- func (e UpdateTenantValidationError) Reason() string
Constants ¶
const OperationTenantServiceCreateTenant = "/saas.api.tenant.v1.TenantService/CreateTenant"
const OperationTenantServiceDeleteTenant = "/saas.api.tenant.v1.TenantService/DeleteTenant"
const OperationTenantServiceGetCurrentTenant = "/saas.api.tenant.v1.TenantService/GetCurrentTenant"
const OperationTenantServiceGetTenant = "/saas.api.tenant.v1.TenantService/GetTenant"
const OperationTenantServiceGetTenantPublic = "/saas.api.tenant.v1.TenantService/GetTenantPublic"
const OperationTenantServiceListTenant = "/saas.api.tenant.v1.TenantService/ListTenant"
const OperationTenantServiceUpdateTenant = "/saas.api.tenant.v1.TenantService/UpdateTenant"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "DUPLICATE_TENANT_NAME", 1: "TENANT_NOT_FOUND", 2: "TENANT_FORBIDDEN", 3: "TENANT_NOT_READY", 4: "ADMIN_IDENTITY_REQUIRED", 5: "ADMIN_PASSWORD_REQUIRED", 6: "ADMIN_USERNAME_INVALID", 7: "ADMIN_EMAIL_INVALID", } ErrorReason_value = map[string]int32{ "DUPLICATE_TENANT_NAME": 0, "TENANT_NOT_FOUND": 1, "TENANT_FORBIDDEN": 2, "TENANT_NOT_READY": 3, "ADMIN_IDENTITY_REQUIRED": 4, "ADMIN_PASSWORD_REQUIRED": 5, "ADMIN_USERNAME_INVALID": 6, "ADMIN_EMAIL_INVALID": 7, } )
Enum value maps for ErrorReason.
var File_saas_api_tenant_v1_error_reason_proto protoreflect.FileDescriptor
var File_saas_api_tenant_v1_tenant_proto protoreflect.FileDescriptor
var TenantInternalService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saas.api.tenant.v1.TenantInternalService", HandlerType: (*TenantInternalServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTenant", Handler: _TenantInternalService_GetTenant_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "saas/api/tenant/v1/tenant.proto", }
TenantInternalService_ServiceDesc is the grpc.ServiceDesc for TenantInternalService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TenantService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saas.api.tenant.v1.TenantService", HandlerType: (*TenantServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTenant", Handler: _TenantService_CreateTenant_Handler, }, { MethodName: "UpdateTenant", Handler: _TenantService_UpdateTenant_Handler, }, { MethodName: "DeleteTenant", Handler: _TenantService_DeleteTenant_Handler, }, { MethodName: "GetTenant", Handler: _TenantService_GetTenant_Handler, }, { MethodName: "GetTenantPublic", Handler: _TenantService_GetTenantPublic_Handler, }, { MethodName: "ListTenant", Handler: _TenantService_ListTenant_Handler, }, { MethodName: "GetCurrentTenant", Handler: _TenantService_GetCurrentTenant_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "saas/api/tenant/v1/tenant.proto", }
TenantService_ServiceDesc is the grpc.ServiceDesc for TenantService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorAdminEmailInvalid ¶
func ErrorTenantForbidden ¶
func ErrorTenantNotFound ¶
func ErrorTenantNotReady ¶
func IsAdminEmailInvalid ¶
func IsAdminIdentityRequired ¶
func IsAdminPasswordRequired ¶
func IsAdminUsernameInvalid ¶
func IsDuplicateTenantName ¶
func IsTenantForbidden ¶
func IsTenantNotFound ¶
func IsTenantNotReady ¶
func RegisterTenantInternalServiceServer ¶
func RegisterTenantInternalServiceServer(s grpc.ServiceRegistrar, srv TenantInternalServiceServer)
func RegisterTenantServiceHTTPServer ¶
func RegisterTenantServiceHTTPServer(s *http.Server, srv TenantServiceHTTPServer)
func RegisterTenantServiceServer ¶
func RegisterTenantServiceServer(s grpc.ServiceRegistrar, srv TenantServiceServer)
Types ¶
type CreateTenantRequest ¶
type CreateTenantRequest struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` Logo string `protobuf:"bytes,5,opt,name=logo,proto3" json:"logo,omitempty"` SeparateDb bool `protobuf:"varint,6,opt,name=separate_db,json=separateDb,proto3" json:"separate_db,omitempty"` AdminEmail *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=admin_email,json=adminEmail,proto3,oneof" json:"admin_email,omitempty"` AdminUsername *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=admin_username,json=adminUsername,proto3,oneof" json:"admin_username,omitempty"` AdminPassword *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=admin_password,json=adminPassword,proto3,oneof" json:"admin_password,omitempty"` // contains filtered or unexported fields }
func (*CreateTenantRequest) Descriptor
deprecated
func (*CreateTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTenantRequest.ProtoReflect.Descriptor instead.
func (*CreateTenantRequest) GetAdminEmail ¶
func (x *CreateTenantRequest) GetAdminEmail() *wrapperspb.StringValue
func (*CreateTenantRequest) GetAdminPassword ¶
func (x *CreateTenantRequest) GetAdminPassword() *wrapperspb.StringValue
func (*CreateTenantRequest) GetAdminUsername ¶
func (x *CreateTenantRequest) GetAdminUsername() *wrapperspb.StringValue
func (*CreateTenantRequest) GetDisplayName ¶
func (x *CreateTenantRequest) GetDisplayName() string
func (*CreateTenantRequest) GetLogo ¶
func (x *CreateTenantRequest) GetLogo() string
func (*CreateTenantRequest) GetName ¶
func (x *CreateTenantRequest) GetName() string
func (*CreateTenantRequest) GetRegion ¶
func (x *CreateTenantRequest) GetRegion() string
func (*CreateTenantRequest) GetSeparateDb ¶
func (x *CreateTenantRequest) GetSeparateDb() bool
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
func (*CreateTenantRequest) Validate ¶
func (m *CreateTenantRequest) Validate() error
Validate checks the field values on CreateTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateTenantRequest) ValidateAll ¶
func (m *CreateTenantRequest) ValidateAll() error
ValidateAll checks the field values on CreateTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTenantRequestMultiError, or nil if none found.
type CreateTenantRequestMultiError ¶
type CreateTenantRequestMultiError []error
CreateTenantRequestMultiError is an error wrapping multiple validation errors returned by CreateTenantRequest.ValidateAll() if the designated constraints aren't met.
func (CreateTenantRequestMultiError) AllErrors ¶
func (m CreateTenantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTenantRequestMultiError) Error ¶
func (m CreateTenantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTenantRequestValidationError ¶
type CreateTenantRequestValidationError struct {
// contains filtered or unexported fields
}
CreateTenantRequestValidationError is the validation error returned by CreateTenantRequest.Validate if the designated constraints aren't met.
func (CreateTenantRequestValidationError) Cause ¶
func (e CreateTenantRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTenantRequestValidationError) Error ¶
func (e CreateTenantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTenantRequestValidationError) ErrorName ¶
func (e CreateTenantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTenantRequestValidationError) Field ¶
func (e CreateTenantRequestValidationError) Field() string
Field function returns field value.
func (CreateTenantRequestValidationError) Key ¶
func (e CreateTenantRequestValidationError) Key() bool
Key function returns key value.
func (CreateTenantRequestValidationError) Reason ¶
func (e CreateTenantRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteTenantReply ¶
type DeleteTenantReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTenantReply) Descriptor
deprecated
func (*DeleteTenantReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTenantReply.ProtoReflect.Descriptor instead.
func (*DeleteTenantReply) GetId ¶
func (x *DeleteTenantReply) GetId() string
func (*DeleteTenantReply) ProtoMessage ¶
func (*DeleteTenantReply) ProtoMessage()
func (*DeleteTenantReply) ProtoReflect ¶
func (x *DeleteTenantReply) ProtoReflect() protoreflect.Message
func (*DeleteTenantReply) Reset ¶
func (x *DeleteTenantReply) Reset()
func (*DeleteTenantReply) String ¶
func (x *DeleteTenantReply) String() string
func (*DeleteTenantReply) Validate ¶
func (m *DeleteTenantReply) Validate() error
Validate checks the field values on DeleteTenantReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteTenantReply) ValidateAll ¶
func (m *DeleteTenantReply) ValidateAll() error
ValidateAll checks the field values on DeleteTenantReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteTenantReplyMultiError, or nil if none found.
type DeleteTenantReplyMultiError ¶
type DeleteTenantReplyMultiError []error
DeleteTenantReplyMultiError is an error wrapping multiple validation errors returned by DeleteTenantReply.ValidateAll() if the designated constraints aren't met.
func (DeleteTenantReplyMultiError) AllErrors ¶
func (m DeleteTenantReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTenantReplyMultiError) Error ¶
func (m DeleteTenantReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTenantReplyValidationError ¶
type DeleteTenantReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteTenantReplyValidationError is the validation error returned by DeleteTenantReply.Validate if the designated constraints aren't met.
func (DeleteTenantReplyValidationError) Cause ¶
func (e DeleteTenantReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteTenantReplyValidationError) Error ¶
func (e DeleteTenantReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTenantReplyValidationError) ErrorName ¶
func (e DeleteTenantReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTenantReplyValidationError) Field ¶
func (e DeleteTenantReplyValidationError) Field() string
Field function returns field value.
func (DeleteTenantReplyValidationError) Key ¶
func (e DeleteTenantReplyValidationError) Key() bool
Key function returns key value.
func (DeleteTenantReplyValidationError) Reason ¶
func (e DeleteTenantReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteTenantRequest ¶
type DeleteTenantRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTenantRequest) Descriptor
deprecated
func (*DeleteTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTenantRequest.ProtoReflect.Descriptor instead.
func (*DeleteTenantRequest) GetId ¶
func (x *DeleteTenantRequest) GetId() 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
func (*DeleteTenantRequest) Validate ¶
func (m *DeleteTenantRequest) Validate() error
Validate checks the field values on DeleteTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteTenantRequest) ValidateAll ¶
func (m *DeleteTenantRequest) ValidateAll() error
ValidateAll checks the field values on DeleteTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteTenantRequestMultiError, or nil if none found.
type DeleteTenantRequestMultiError ¶
type DeleteTenantRequestMultiError []error
DeleteTenantRequestMultiError is an error wrapping multiple validation errors returned by DeleteTenantRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteTenantRequestMultiError) AllErrors ¶
func (m DeleteTenantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTenantRequestMultiError) Error ¶
func (m DeleteTenantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTenantRequestValidationError ¶
type DeleteTenantRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteTenantRequestValidationError is the validation error returned by DeleteTenantRequest.Validate if the designated constraints aren't met.
func (DeleteTenantRequestValidationError) Cause ¶
func (e DeleteTenantRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteTenantRequestValidationError) Error ¶
func (e DeleteTenantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTenantRequestValidationError) ErrorName ¶
func (e DeleteTenantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTenantRequestValidationError) Field ¶
func (e DeleteTenantRequestValidationError) Field() string
Field function returns field value.
func (DeleteTenantRequestValidationError) Key ¶
func (e DeleteTenantRequestValidationError) Key() bool
Key function returns key value.
func (DeleteTenantRequestValidationError) Reason ¶
func (e DeleteTenantRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_DUPLICATE_TENANT_NAME ErrorReason = 0 ErrorReason_TENANT_NOT_FOUND ErrorReason = 1 ErrorReason_TENANT_FORBIDDEN ErrorReason = 2 ErrorReason_TENANT_NOT_READY ErrorReason = 3 ErrorReason_ADMIN_IDENTITY_REQUIRED ErrorReason = 4 ErrorReason_ADMIN_PASSWORD_REQUIRED ErrorReason = 5 ErrorReason_ADMIN_USERNAME_INVALID ErrorReason = 6 ErrorReason_ADMIN_EMAIL_INVALID ErrorReason = 7 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetCurrentTenantReply ¶
type GetCurrentTenantReply struct { Tenant *TenantInfo `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` IsHost bool `protobuf:"varint,2,opt,name=is_host,json=isHost,proto3" json:"is_host,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentTenantReply) Descriptor
deprecated
func (*GetCurrentTenantReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentTenantReply.ProtoReflect.Descriptor instead.
func (*GetCurrentTenantReply) GetIsHost ¶
func (x *GetCurrentTenantReply) GetIsHost() bool
func (*GetCurrentTenantReply) GetTenant ¶
func (x *GetCurrentTenantReply) GetTenant() *TenantInfo
func (*GetCurrentTenantReply) ProtoMessage ¶
func (*GetCurrentTenantReply) ProtoMessage()
func (*GetCurrentTenantReply) ProtoReflect ¶
func (x *GetCurrentTenantReply) ProtoReflect() protoreflect.Message
func (*GetCurrentTenantReply) Reset ¶
func (x *GetCurrentTenantReply) Reset()
func (*GetCurrentTenantReply) String ¶
func (x *GetCurrentTenantReply) String() string
func (*GetCurrentTenantReply) Validate ¶
func (m *GetCurrentTenantReply) Validate() error
Validate checks the field values on GetCurrentTenantReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCurrentTenantReply) ValidateAll ¶
func (m *GetCurrentTenantReply) ValidateAll() error
ValidateAll checks the field values on GetCurrentTenantReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCurrentTenantReplyMultiError, or nil if none found.
type GetCurrentTenantReplyMultiError ¶
type GetCurrentTenantReplyMultiError []error
GetCurrentTenantReplyMultiError is an error wrapping multiple validation errors returned by GetCurrentTenantReply.ValidateAll() if the designated constraints aren't met.
func (GetCurrentTenantReplyMultiError) AllErrors ¶
func (m GetCurrentTenantReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCurrentTenantReplyMultiError) Error ¶
func (m GetCurrentTenantReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCurrentTenantReplyValidationError ¶
type GetCurrentTenantReplyValidationError struct {
// contains filtered or unexported fields
}
GetCurrentTenantReplyValidationError is the validation error returned by GetCurrentTenantReply.Validate if the designated constraints aren't met.
func (GetCurrentTenantReplyValidationError) Cause ¶
func (e GetCurrentTenantReplyValidationError) Cause() error
Cause function returns cause value.
func (GetCurrentTenantReplyValidationError) Error ¶
func (e GetCurrentTenantReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetCurrentTenantReplyValidationError) ErrorName ¶
func (e GetCurrentTenantReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetCurrentTenantReplyValidationError) Field ¶
func (e GetCurrentTenantReplyValidationError) Field() string
Field function returns field value.
func (GetCurrentTenantReplyValidationError) Key ¶
func (e GetCurrentTenantReplyValidationError) Key() bool
Key function returns key value.
func (GetCurrentTenantReplyValidationError) Reason ¶
func (e GetCurrentTenantReplyValidationError) Reason() string
Reason function returns reason value.
type GetCurrentTenantRequest ¶
type GetCurrentTenantRequest struct {
// contains filtered or unexported fields
}
func (*GetCurrentTenantRequest) Descriptor
deprecated
func (*GetCurrentTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentTenantRequest.ProtoReflect.Descriptor instead.
func (*GetCurrentTenantRequest) ProtoMessage ¶
func (*GetCurrentTenantRequest) ProtoMessage()
func (*GetCurrentTenantRequest) ProtoReflect ¶
func (x *GetCurrentTenantRequest) ProtoReflect() protoreflect.Message
func (*GetCurrentTenantRequest) Reset ¶
func (x *GetCurrentTenantRequest) Reset()
func (*GetCurrentTenantRequest) String ¶
func (x *GetCurrentTenantRequest) String() string
func (*GetCurrentTenantRequest) Validate ¶
func (m *GetCurrentTenantRequest) Validate() error
Validate checks the field values on GetCurrentTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCurrentTenantRequest) ValidateAll ¶
func (m *GetCurrentTenantRequest) ValidateAll() error
ValidateAll checks the field values on GetCurrentTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCurrentTenantRequestMultiError, or nil if none found.
type GetCurrentTenantRequestMultiError ¶
type GetCurrentTenantRequestMultiError []error
GetCurrentTenantRequestMultiError is an error wrapping multiple validation errors returned by GetCurrentTenantRequest.ValidateAll() if the designated constraints aren't met.
func (GetCurrentTenantRequestMultiError) AllErrors ¶
func (m GetCurrentTenantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCurrentTenantRequestMultiError) Error ¶
func (m GetCurrentTenantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCurrentTenantRequestValidationError ¶
type GetCurrentTenantRequestValidationError struct {
// contains filtered or unexported fields
}
GetCurrentTenantRequestValidationError is the validation error returned by GetCurrentTenantRequest.Validate if the designated constraints aren't met.
func (GetCurrentTenantRequestValidationError) Cause ¶
func (e GetCurrentTenantRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCurrentTenantRequestValidationError) Error ¶
func (e GetCurrentTenantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCurrentTenantRequestValidationError) ErrorName ¶
func (e GetCurrentTenantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCurrentTenantRequestValidationError) Field ¶
func (e GetCurrentTenantRequestValidationError) Field() string
Field function returns field value.
func (GetCurrentTenantRequestValidationError) Key ¶
func (e GetCurrentTenantRequestValidationError) Key() bool
Key function returns key value.
func (GetCurrentTenantRequestValidationError) Reason ¶
func (e GetCurrentTenantRequestValidationError) Reason() string
Reason function returns reason value.
type GetTenantPublicRequest ¶
type GetTenantPublicRequest struct { IdOrName string `protobuf:"bytes,1,opt,name=id_or_name,json=idOrName,proto3" json:"id_or_name,omitempty"` // contains filtered or unexported fields }
func (*GetTenantPublicRequest) Descriptor
deprecated
func (*GetTenantPublicRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTenantPublicRequest.ProtoReflect.Descriptor instead.
func (*GetTenantPublicRequest) GetIdOrName ¶
func (x *GetTenantPublicRequest) GetIdOrName() string
func (*GetTenantPublicRequest) ProtoMessage ¶
func (*GetTenantPublicRequest) ProtoMessage()
func (*GetTenantPublicRequest) ProtoReflect ¶
func (x *GetTenantPublicRequest) ProtoReflect() protoreflect.Message
func (*GetTenantPublicRequest) Reset ¶
func (x *GetTenantPublicRequest) Reset()
func (*GetTenantPublicRequest) String ¶
func (x *GetTenantPublicRequest) String() string
func (*GetTenantPublicRequest) Validate ¶
func (m *GetTenantPublicRequest) Validate() error
Validate checks the field values on GetTenantPublicRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetTenantPublicRequest) ValidateAll ¶
func (m *GetTenantPublicRequest) ValidateAll() error
ValidateAll checks the field values on GetTenantPublicRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTenantPublicRequestMultiError, or nil if none found.
type GetTenantPublicRequestMultiError ¶
type GetTenantPublicRequestMultiError []error
GetTenantPublicRequestMultiError is an error wrapping multiple validation errors returned by GetTenantPublicRequest.ValidateAll() if the designated constraints aren't met.
func (GetTenantPublicRequestMultiError) AllErrors ¶
func (m GetTenantPublicRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTenantPublicRequestMultiError) Error ¶
func (m GetTenantPublicRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTenantPublicRequestValidationError ¶
type GetTenantPublicRequestValidationError struct {
// contains filtered or unexported fields
}
GetTenantPublicRequestValidationError is the validation error returned by GetTenantPublicRequest.Validate if the designated constraints aren't met.
func (GetTenantPublicRequestValidationError) Cause ¶
func (e GetTenantPublicRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTenantPublicRequestValidationError) Error ¶
func (e GetTenantPublicRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTenantPublicRequestValidationError) ErrorName ¶
func (e GetTenantPublicRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTenantPublicRequestValidationError) Field ¶
func (e GetTenantPublicRequestValidationError) Field() string
Field function returns field value.
func (GetTenantPublicRequestValidationError) Key ¶
func (e GetTenantPublicRequestValidationError) Key() bool
Key function returns key value.
func (GetTenantPublicRequestValidationError) Reason ¶
func (e GetTenantPublicRequestValidationError) Reason() string
Reason function returns reason value.
type GetTenantRequest ¶
type GetTenantRequest struct { IdOrName string `protobuf:"bytes,1,opt,name=id_or_name,json=idOrName,proto3" json:"id_or_name,omitempty"` // contains filtered or unexported fields }
func (*GetTenantRequest) Descriptor
deprecated
func (*GetTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTenantRequest.ProtoReflect.Descriptor instead.
func (*GetTenantRequest) GetIdOrName ¶
func (x *GetTenantRequest) GetIdOrName() 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
func (*GetTenantRequest) Validate ¶
func (m *GetTenantRequest) Validate() error
Validate checks the field values on GetTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetTenantRequest) ValidateAll ¶
func (m *GetTenantRequest) ValidateAll() error
ValidateAll checks the field values on GetTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTenantRequestMultiError, or nil if none found.
type GetTenantRequestMultiError ¶
type GetTenantRequestMultiError []error
GetTenantRequestMultiError is an error wrapping multiple validation errors returned by GetTenantRequest.ValidateAll() if the designated constraints aren't met.
func (GetTenantRequestMultiError) AllErrors ¶
func (m GetTenantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTenantRequestMultiError) Error ¶
func (m GetTenantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTenantRequestValidationError ¶
type GetTenantRequestValidationError struct {
// contains filtered or unexported fields
}
GetTenantRequestValidationError is the validation error returned by GetTenantRequest.Validate if the designated constraints aren't met.
func (GetTenantRequestValidationError) Cause ¶
func (e GetTenantRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTenantRequestValidationError) Error ¶
func (e GetTenantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTenantRequestValidationError) ErrorName ¶
func (e GetTenantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTenantRequestValidationError) Field ¶
func (e GetTenantRequestValidationError) Field() string
Field function returns field value.
func (GetTenantRequestValidationError) Key ¶
func (e GetTenantRequestValidationError) Key() bool
Key function returns key value.
func (GetTenantRequestValidationError) Reason ¶
func (e GetTenantRequestValidationError) Reason() string
Reason function returns reason value.
type ListTenantReply ¶
type ListTenantReply struct { TotalSize int32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` FilterSize int32 `protobuf:"varint,2,opt,name=filter_size,json=filterSize,proto3" json:"filter_size,omitempty"` Items []*Tenant `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListTenantReply) Descriptor
deprecated
func (*ListTenantReply) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantReply.ProtoReflect.Descriptor instead.
func (*ListTenantReply) GetFilterSize ¶
func (x *ListTenantReply) GetFilterSize() int32
func (*ListTenantReply) GetItems ¶
func (x *ListTenantReply) GetItems() []*Tenant
func (*ListTenantReply) GetTotalSize ¶
func (x *ListTenantReply) GetTotalSize() int32
func (*ListTenantReply) ProtoMessage ¶
func (*ListTenantReply) ProtoMessage()
func (*ListTenantReply) ProtoReflect ¶
func (x *ListTenantReply) ProtoReflect() protoreflect.Message
func (*ListTenantReply) Reset ¶
func (x *ListTenantReply) Reset()
func (*ListTenantReply) String ¶
func (x *ListTenantReply) String() string
func (*ListTenantReply) Validate ¶
func (m *ListTenantReply) Validate() error
Validate checks the field values on ListTenantReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListTenantReply) ValidateAll ¶
func (m *ListTenantReply) ValidateAll() error
ValidateAll checks the field values on ListTenantReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListTenantReplyMultiError, or nil if none found.
type ListTenantReplyMultiError ¶
type ListTenantReplyMultiError []error
ListTenantReplyMultiError is an error wrapping multiple validation errors returned by ListTenantReply.ValidateAll() if the designated constraints aren't met.
func (ListTenantReplyMultiError) AllErrors ¶
func (m ListTenantReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListTenantReplyMultiError) Error ¶
func (m ListTenantReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListTenantReplyValidationError ¶
type ListTenantReplyValidationError struct {
// contains filtered or unexported fields
}
ListTenantReplyValidationError is the validation error returned by ListTenantReply.Validate if the designated constraints aren't met.
func (ListTenantReplyValidationError) Cause ¶
func (e ListTenantReplyValidationError) Cause() error
Cause function returns cause value.
func (ListTenantReplyValidationError) Error ¶
func (e ListTenantReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListTenantReplyValidationError) ErrorName ¶
func (e ListTenantReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListTenantReplyValidationError) Field ¶
func (e ListTenantReplyValidationError) Field() string
Field function returns field value.
func (ListTenantReplyValidationError) Key ¶
func (e ListTenantReplyValidationError) Key() bool
Key function returns key value.
func (ListTenantReplyValidationError) Reason ¶
func (e ListTenantReplyValidationError) Reason() string
Reason function returns reason value.
type ListTenantRequest ¶
type ListTenantRequest struct { PageOffset int32 `protobuf:"varint,1,opt,name=page_offset,json=pageOffset,proto3" json:"page_offset,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` Sort []string `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"` Fields *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"` Filter *TenantFilter `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListTenantRequest) Descriptor
deprecated
func (*ListTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantRequest.ProtoReflect.Descriptor instead.
func (*ListTenantRequest) GetFields ¶
func (x *ListTenantRequest) GetFields() *fieldmaskpb.FieldMask
func (*ListTenantRequest) GetFilter ¶
func (x *ListTenantRequest) GetFilter() *TenantFilter
func (*ListTenantRequest) GetPageOffset ¶
func (x *ListTenantRequest) GetPageOffset() int32
func (*ListTenantRequest) GetPageSize ¶
func (x *ListTenantRequest) GetPageSize() int32
func (*ListTenantRequest) GetSearch ¶
func (x *ListTenantRequest) GetSearch() string
func (*ListTenantRequest) GetSort ¶
func (x *ListTenantRequest) GetSort() []string
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
func (*ListTenantRequest) Validate ¶
func (m *ListTenantRequest) Validate() error
Validate checks the field values on ListTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListTenantRequest) ValidateAll ¶
func (m *ListTenantRequest) ValidateAll() error
ValidateAll checks the field values on ListTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListTenantRequestMultiError, or nil if none found.
type ListTenantRequestMultiError ¶
type ListTenantRequestMultiError []error
ListTenantRequestMultiError is an error wrapping multiple validation errors returned by ListTenantRequest.ValidateAll() if the designated constraints aren't met.
func (ListTenantRequestMultiError) AllErrors ¶
func (m ListTenantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListTenantRequestMultiError) Error ¶
func (m ListTenantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListTenantRequestValidationError ¶
type ListTenantRequestValidationError struct {
// contains filtered or unexported fields
}
ListTenantRequestValidationError is the validation error returned by ListTenantRequest.Validate if the designated constraints aren't met.
func (ListTenantRequestValidationError) Cause ¶
func (e ListTenantRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTenantRequestValidationError) Error ¶
func (e ListTenantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTenantRequestValidationError) ErrorName ¶
func (e ListTenantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTenantRequestValidationError) Field ¶
func (e ListTenantRequestValidationError) Field() string
Field function returns field value.
func (ListTenantRequestValidationError) Key ¶
func (e ListTenantRequestValidationError) Key() bool
Key function returns key value.
func (ListTenantRequestValidationError) Reason ¶
func (e ListTenantRequestValidationError) Reason() string
Reason function returns reason value.
type Tenant ¶
type Tenant 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"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` Conn []*TenantConnectionString `protobuf:"bytes,7,rep,name=conn,proto3" json:"conn,omitempty"` Features []*TenantFeature `protobuf:"bytes,8,rep,name=features,proto3" json:"features,omitempty"` Logo *blob.BlobFile `protobuf:"bytes,9,opt,name=logo,proto3" json:"logo,omitempty"` SeparateDb bool `protobuf:"varint,10,opt,name=separate_db,json=separateDb,proto3" json:"separate_db,omitempty"` Host string `protobuf:"bytes,11,opt,name=host,proto3" json:"host,omitempty"` // contains filtered or unexported fields }
func (*Tenant) Descriptor
deprecated
func (*Tenant) GetConn ¶
func (x *Tenant) GetConn() []*TenantConnectionString
func (*Tenant) GetCreatedAt ¶
func (x *Tenant) GetCreatedAt() *timestamppb.Timestamp
func (*Tenant) GetDisplayName ¶
func (*Tenant) GetFeatures ¶
func (x *Tenant) GetFeatures() []*TenantFeature
func (*Tenant) GetSeparateDb ¶
func (*Tenant) GetUpdatedAt ¶
func (x *Tenant) GetUpdatedAt() *timestamppb.Timestamp
func (*Tenant) NormalizeHost ¶
func (*Tenant) ProtoMessage ¶
func (*Tenant) ProtoMessage()
func (*Tenant) ProtoReflect ¶
func (x *Tenant) ProtoReflect() protoreflect.Message
func (*Tenant) ToTenantInfo ¶
func (x *Tenant) ToTenantInfo() *TenantInfo
ToTenantInfo todo better mapper?
func (*Tenant) Validate ¶
Validate checks the field values on Tenant with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Tenant) ValidateAll ¶
ValidateAll checks the field values on Tenant with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantMultiError, or nil if none found.
type TenantConnectionString ¶
type TenantConnectionString struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TenantConnectionString) Descriptor
deprecated
func (*TenantConnectionString) Descriptor() ([]byte, []int)
Deprecated: Use TenantConnectionString.ProtoReflect.Descriptor instead.
func (*TenantConnectionString) GetKey ¶
func (x *TenantConnectionString) GetKey() string
func (*TenantConnectionString) GetValue ¶
func (x *TenantConnectionString) GetValue() string
func (*TenantConnectionString) ProtoMessage ¶
func (*TenantConnectionString) ProtoMessage()
func (*TenantConnectionString) ProtoReflect ¶
func (x *TenantConnectionString) ProtoReflect() protoreflect.Message
func (*TenantConnectionString) Reset ¶
func (x *TenantConnectionString) Reset()
func (*TenantConnectionString) String ¶
func (x *TenantConnectionString) String() string
func (*TenantConnectionString) Validate ¶
func (m *TenantConnectionString) Validate() error
Validate checks the field values on TenantConnectionString with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TenantConnectionString) ValidateAll ¶
func (m *TenantConnectionString) ValidateAll() error
ValidateAll checks the field values on TenantConnectionString with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantConnectionStringMultiError, or nil if none found.
type TenantConnectionStringMultiError ¶
type TenantConnectionStringMultiError []error
TenantConnectionStringMultiError is an error wrapping multiple validation errors returned by TenantConnectionString.ValidateAll() if the designated constraints aren't met.
func (TenantConnectionStringMultiError) AllErrors ¶
func (m TenantConnectionStringMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TenantConnectionStringMultiError) Error ¶
func (m TenantConnectionStringMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TenantConnectionStringValidationError ¶
type TenantConnectionStringValidationError struct {
// contains filtered or unexported fields
}
TenantConnectionStringValidationError is the validation error returned by TenantConnectionString.Validate if the designated constraints aren't met.
func (TenantConnectionStringValidationError) Cause ¶
func (e TenantConnectionStringValidationError) Cause() error
Cause function returns cause value.
func (TenantConnectionStringValidationError) Error ¶
func (e TenantConnectionStringValidationError) Error() string
Error satisfies the builtin error interface
func (TenantConnectionStringValidationError) ErrorName ¶
func (e TenantConnectionStringValidationError) ErrorName() string
ErrorName returns error name.
func (TenantConnectionStringValidationError) Field ¶
func (e TenantConnectionStringValidationError) Field() string
Field function returns field value.
func (TenantConnectionStringValidationError) Key ¶
func (e TenantConnectionStringValidationError) Key() bool
Key function returns key value.
func (TenantConnectionStringValidationError) Reason ¶
func (e TenantConnectionStringValidationError) Reason() string
Reason function returns reason value.
type TenantFeature ¶
type TenantFeature struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TenantFeature) Descriptor
deprecated
func (*TenantFeature) Descriptor() ([]byte, []int)
Deprecated: Use TenantFeature.ProtoReflect.Descriptor instead.
func (*TenantFeature) GetKey ¶
func (x *TenantFeature) GetKey() string
func (*TenantFeature) GetValue ¶
func (x *TenantFeature) GetValue() string
func (*TenantFeature) ProtoMessage ¶
func (*TenantFeature) ProtoMessage()
func (*TenantFeature) ProtoReflect ¶
func (x *TenantFeature) ProtoReflect() protoreflect.Message
func (*TenantFeature) Reset ¶
func (x *TenantFeature) Reset()
func (*TenantFeature) String ¶
func (x *TenantFeature) String() string
func (*TenantFeature) Validate ¶
func (m *TenantFeature) Validate() error
Validate checks the field values on TenantFeature with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TenantFeature) ValidateAll ¶
func (m *TenantFeature) ValidateAll() error
ValidateAll checks the field values on TenantFeature with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantFeatureMultiError, or nil if none found.
type TenantFeatureMultiError ¶
type TenantFeatureMultiError []error
TenantFeatureMultiError is an error wrapping multiple validation errors returned by TenantFeature.ValidateAll() if the designated constraints aren't met.
func (TenantFeatureMultiError) AllErrors ¶
func (m TenantFeatureMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TenantFeatureMultiError) Error ¶
func (m TenantFeatureMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TenantFeatureValidationError ¶
type TenantFeatureValidationError struct {
// contains filtered or unexported fields
}
TenantFeatureValidationError is the validation error returned by TenantFeature.Validate if the designated constraints aren't met.
func (TenantFeatureValidationError) Cause ¶
func (e TenantFeatureValidationError) Cause() error
Cause function returns cause value.
func (TenantFeatureValidationError) Error ¶
func (e TenantFeatureValidationError) Error() string
Error satisfies the builtin error interface
func (TenantFeatureValidationError) ErrorName ¶
func (e TenantFeatureValidationError) ErrorName() string
ErrorName returns error name.
func (TenantFeatureValidationError) Field ¶
func (e TenantFeatureValidationError) Field() string
Field function returns field value.
func (TenantFeatureValidationError) Key ¶
func (e TenantFeatureValidationError) Key() bool
Key function returns key value.
func (TenantFeatureValidationError) Reason ¶
func (e TenantFeatureValidationError) Reason() string
Reason function returns reason value.
type TenantFilter ¶
type TenantFilter struct { Id *query.StringFilterOperation `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name *query.StringFilterOperation `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Region *query.StringFilterOperation `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` // contains filtered or unexported fields }
func (*TenantFilter) Descriptor
deprecated
func (*TenantFilter) Descriptor() ([]byte, []int)
Deprecated: Use TenantFilter.ProtoReflect.Descriptor instead.
func (*TenantFilter) GetId ¶
func (x *TenantFilter) GetId() *query.StringFilterOperation
func (*TenantFilter) GetName ¶
func (x *TenantFilter) GetName() *query.StringFilterOperation
func (*TenantFilter) GetRegion ¶
func (x *TenantFilter) GetRegion() *query.StringFilterOperation
func (*TenantFilter) ProtoMessage ¶
func (*TenantFilter) ProtoMessage()
func (*TenantFilter) ProtoReflect ¶
func (x *TenantFilter) ProtoReflect() protoreflect.Message
func (*TenantFilter) Reset ¶
func (x *TenantFilter) Reset()
func (*TenantFilter) String ¶
func (x *TenantFilter) String() string
func (*TenantFilter) Validate ¶
func (m *TenantFilter) Validate() error
Validate checks the field values on TenantFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TenantFilter) ValidateAll ¶
func (m *TenantFilter) ValidateAll() error
ValidateAll checks the field values on TenantFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantFilterMultiError, or nil if none found.
type TenantFilterMultiError ¶
type TenantFilterMultiError []error
TenantFilterMultiError is an error wrapping multiple validation errors returned by TenantFilter.ValidateAll() if the designated constraints aren't met.
func (TenantFilterMultiError) AllErrors ¶
func (m TenantFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TenantFilterMultiError) Error ¶
func (m TenantFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TenantFilterValidationError ¶
type TenantFilterValidationError struct {
// contains filtered or unexported fields
}
TenantFilterValidationError is the validation error returned by TenantFilter.Validate if the designated constraints aren't met.
func (TenantFilterValidationError) Cause ¶
func (e TenantFilterValidationError) Cause() error
Cause function returns cause value.
func (TenantFilterValidationError) Error ¶
func (e TenantFilterValidationError) Error() string
Error satisfies the builtin error interface
func (TenantFilterValidationError) ErrorName ¶
func (e TenantFilterValidationError) ErrorName() string
ErrorName returns error name.
func (TenantFilterValidationError) Field ¶
func (e TenantFilterValidationError) Field() string
Field function returns field value.
func (TenantFilterValidationError) Key ¶
func (e TenantFilterValidationError) Key() bool
Key function returns key value.
func (TenantFilterValidationError) Reason ¶
func (e TenantFilterValidationError) Reason() string
Reason function returns reason value.
type TenantInfo ¶
type TenantInfo 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"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` Logo *blob.BlobFile `protobuf:"bytes,9,opt,name=logo,proto3" json:"logo,omitempty"` Host string `protobuf:"bytes,10,opt,name=host,proto3" json:"host,omitempty"` // contains filtered or unexported fields }
TenantInfo public tenant information
func (*TenantInfo) Descriptor
deprecated
func (*TenantInfo) Descriptor() ([]byte, []int)
Deprecated: Use TenantInfo.ProtoReflect.Descriptor instead.
func (*TenantInfo) GetDisplayName ¶
func (x *TenantInfo) GetDisplayName() string
func (*TenantInfo) GetHost ¶
func (x *TenantInfo) GetHost() string
func (*TenantInfo) GetId ¶
func (x *TenantInfo) GetId() string
func (*TenantInfo) GetLogo ¶
func (x *TenantInfo) GetLogo() *blob.BlobFile
func (*TenantInfo) GetName ¶
func (x *TenantInfo) GetName() string
func (*TenantInfo) GetRegion ¶
func (x *TenantInfo) GetRegion() string
func (*TenantInfo) NormalizeHost ¶
func (x *TenantInfo) NormalizeHost(ctx context.Context, app *conf.AppConfig)
func (*TenantInfo) ProtoMessage ¶
func (*TenantInfo) ProtoMessage()
func (*TenantInfo) ProtoReflect ¶
func (x *TenantInfo) ProtoReflect() protoreflect.Message
func (*TenantInfo) Reset ¶
func (x *TenantInfo) Reset()
func (*TenantInfo) String ¶
func (x *TenantInfo) String() string
func (*TenantInfo) Validate ¶
func (m *TenantInfo) Validate() error
Validate checks the field values on TenantInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TenantInfo) ValidateAll ¶
func (m *TenantInfo) ValidateAll() error
ValidateAll checks the field values on TenantInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantInfoMultiError, or nil if none found.
type TenantInfoMultiError ¶
type TenantInfoMultiError []error
TenantInfoMultiError is an error wrapping multiple validation errors returned by TenantInfo.ValidateAll() if the designated constraints aren't met.
func (TenantInfoMultiError) AllErrors ¶
func (m TenantInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TenantInfoMultiError) Error ¶
func (m TenantInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TenantInfoValidationError ¶
type TenantInfoValidationError struct {
// contains filtered or unexported fields
}
TenantInfoValidationError is the validation error returned by TenantInfo.Validate if the designated constraints aren't met.
func (TenantInfoValidationError) Cause ¶
func (e TenantInfoValidationError) Cause() error
Cause function returns cause value.
func (TenantInfoValidationError) Error ¶
func (e TenantInfoValidationError) Error() string
Error satisfies the builtin error interface
func (TenantInfoValidationError) ErrorName ¶
func (e TenantInfoValidationError) ErrorName() string
ErrorName returns error name.
func (TenantInfoValidationError) Field ¶
func (e TenantInfoValidationError) Field() string
Field function returns field value.
func (TenantInfoValidationError) Key ¶
func (e TenantInfoValidationError) Key() bool
Key function returns key value.
func (TenantInfoValidationError) Reason ¶
func (e TenantInfoValidationError) Reason() string
Reason function returns reason value.
type TenantInternalServiceClient ¶
type TenantInternalServiceClient interface { //GetTenant internal api for remote tenant store GetTenant(ctx context.Context, in *GetTenantRequest, opts ...grpc.CallOption) (*Tenant, error) }
TenantInternalServiceClient is the client API for TenantInternalService 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 NewTenantInternalServiceClient ¶
func NewTenantInternalServiceClient(cc grpc.ClientConnInterface) TenantInternalServiceClient
type TenantInternalServiceServer ¶
type TenantInternalServiceServer interface { //GetTenant internal api for remote tenant store GetTenant(context.Context, *GetTenantRequest) (*Tenant, error) }
TenantInternalServiceServer is the server API for TenantInternalService service. All implementations should embed UnimplementedTenantInternalServiceServer for forward compatibility
func NewTenantInternalServiceClientProxy ¶
func NewTenantInternalServiceClientProxy(cc TenantInternalServiceClient) TenantInternalServiceServer
type TenantMultiError ¶
type TenantMultiError []error
TenantMultiError is an error wrapping multiple validation errors returned by Tenant.ValidateAll() if the designated constraints aren't met.
func (TenantMultiError) AllErrors ¶
func (m TenantMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TenantMultiError) Error ¶
func (m TenantMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TenantServiceClient ¶
type TenantServiceClient interface { //CreateTenant //authz: saas.tenant,*,create CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*Tenant, error) //UpdateTenant //authz: saas.tenant,{id},update UpdateTenant(ctx context.Context, in *UpdateTenantRequest, opts ...grpc.CallOption) (*Tenant, error) //DeleteTenant //authz: saas.tenant,{id},delete DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*DeleteTenantReply, error) // GetTenant // authz: saas.tenant,{id},get GetTenant(ctx context.Context, in *GetTenantRequest, opts ...grpc.CallOption) (*Tenant, error) // GetTenant // authz: saas.tenant,{id},get GetTenantPublic(ctx context.Context, in *GetTenantPublicRequest, opts ...grpc.CallOption) (*TenantInfo, error) //ListTenant //authz: saas.tenant,*,list ListTenant(ctx context.Context, in *ListTenantRequest, opts ...grpc.CallOption) (*ListTenantReply, error) //GetCurrentTenant GetCurrentTenant(ctx context.Context, in *GetCurrentTenantRequest, opts ...grpc.CallOption) (*GetCurrentTenantReply, error) }
TenantServiceClient is the client API for TenantService 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 NewTenantServiceClient ¶
func NewTenantServiceClient(cc grpc.ClientConnInterface) TenantServiceClient
type TenantServiceHTTPClient ¶
type TenantServiceHTTPClient interface { CreateTenant(ctx context.Context, req *CreateTenantRequest, opts ...http.CallOption) (rsp *Tenant, err error) DeleteTenant(ctx context.Context, req *DeleteTenantRequest, opts ...http.CallOption) (rsp *DeleteTenantReply, err error) GetCurrentTenant(ctx context.Context, req *GetCurrentTenantRequest, opts ...http.CallOption) (rsp *GetCurrentTenantReply, err error) GetTenant(ctx context.Context, req *GetTenantRequest, opts ...http.CallOption) (rsp *Tenant, err error) GetTenantPublic(ctx context.Context, req *GetTenantPublicRequest, opts ...http.CallOption) (rsp *TenantInfo, err error) ListTenant(ctx context.Context, req *ListTenantRequest, opts ...http.CallOption) (rsp *ListTenantReply, err error) UpdateTenant(ctx context.Context, req *UpdateTenantRequest, opts ...http.CallOption) (rsp *Tenant, err error) }
func NewTenantServiceHTTPClient ¶
func NewTenantServiceHTTPClient(client *http.Client) TenantServiceHTTPClient
type TenantServiceHTTPClientImpl ¶
type TenantServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*TenantServiceHTTPClientImpl) CreateTenant ¶
func (c *TenantServiceHTTPClientImpl) CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...http.CallOption) (*Tenant, error)
func (*TenantServiceHTTPClientImpl) DeleteTenant ¶
func (c *TenantServiceHTTPClientImpl) DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...http.CallOption) (*DeleteTenantReply, error)
func (*TenantServiceHTTPClientImpl) GetCurrentTenant ¶
func (c *TenantServiceHTTPClientImpl) GetCurrentTenant(ctx context.Context, in *GetCurrentTenantRequest, opts ...http.CallOption) (*GetCurrentTenantReply, error)
func (*TenantServiceHTTPClientImpl) GetTenant ¶
func (c *TenantServiceHTTPClientImpl) GetTenant(ctx context.Context, in *GetTenantRequest, opts ...http.CallOption) (*Tenant, error)
func (*TenantServiceHTTPClientImpl) GetTenantPublic ¶
func (c *TenantServiceHTTPClientImpl) GetTenantPublic(ctx context.Context, in *GetTenantPublicRequest, opts ...http.CallOption) (*TenantInfo, error)
func (*TenantServiceHTTPClientImpl) ListTenant ¶
func (c *TenantServiceHTTPClientImpl) ListTenant(ctx context.Context, in *ListTenantRequest, opts ...http.CallOption) (*ListTenantReply, error)
func (*TenantServiceHTTPClientImpl) UpdateTenant ¶
func (c *TenantServiceHTTPClientImpl) UpdateTenant(ctx context.Context, in *UpdateTenantRequest, opts ...http.CallOption) (*Tenant, error)
type TenantServiceHTTPServer ¶
type TenantServiceHTTPServer interface { CreateTenant(context.Context, *CreateTenantRequest) (*Tenant, error) DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantReply, error) GetCurrentTenant(context.Context, *GetCurrentTenantRequest) (*GetCurrentTenantReply, error) GetTenant(context.Context, *GetTenantRequest) (*Tenant, error) GetTenantPublic(context.Context, *GetTenantPublicRequest) (*TenantInfo, error) ListTenant(context.Context, *ListTenantRequest) (*ListTenantReply, error) UpdateTenant(context.Context, *UpdateTenantRequest) (*Tenant, error) }
type TenantServiceServer ¶
type TenantServiceServer interface { //CreateTenant //authz: saas.tenant,*,create CreateTenant(context.Context, *CreateTenantRequest) (*Tenant, error) //UpdateTenant //authz: saas.tenant,{id},update UpdateTenant(context.Context, *UpdateTenantRequest) (*Tenant, error) //DeleteTenant //authz: saas.tenant,{id},delete DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantReply, error) // GetTenant // authz: saas.tenant,{id},get GetTenant(context.Context, *GetTenantRequest) (*Tenant, error) // GetTenant // authz: saas.tenant,{id},get GetTenantPublic(context.Context, *GetTenantPublicRequest) (*TenantInfo, error) //ListTenant //authz: saas.tenant,*,list ListTenant(context.Context, *ListTenantRequest) (*ListTenantReply, error) //GetCurrentTenant GetCurrentTenant(context.Context, *GetCurrentTenantRequest) (*GetCurrentTenantReply, error) }
TenantServiceServer is the server API for TenantService service. All implementations should embed UnimplementedTenantServiceServer for forward compatibility
func NewTenantServiceClientProxy ¶
func NewTenantServiceClientProxy(cc TenantServiceClient) TenantServiceServer
type TenantValidationError ¶
type TenantValidationError struct {
// contains filtered or unexported fields
}
TenantValidationError is the validation error returned by Tenant.Validate if the designated constraints aren't met.
func (TenantValidationError) Cause ¶
func (e TenantValidationError) Cause() error
Cause function returns cause value.
func (TenantValidationError) Error ¶
func (e TenantValidationError) Error() string
Error satisfies the builtin error interface
func (TenantValidationError) ErrorName ¶
func (e TenantValidationError) ErrorName() string
ErrorName returns error name.
func (TenantValidationError) Field ¶
func (e TenantValidationError) Field() string
Field function returns field value.
func (TenantValidationError) Key ¶
func (e TenantValidationError) Key() bool
Key function returns key value.
func (TenantValidationError) Reason ¶
func (e TenantValidationError) Reason() string
Reason function returns reason value.
type UnimplementedTenantInternalServiceServer ¶
type UnimplementedTenantInternalServiceServer struct { }
UnimplementedTenantInternalServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTenantInternalServiceServer) GetTenant ¶
func (UnimplementedTenantInternalServiceServer) GetTenant(context.Context, *GetTenantRequest) (*Tenant, error)
type UnimplementedTenantServiceServer ¶
type UnimplementedTenantServiceServer struct { }
UnimplementedTenantServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTenantServiceServer) CreateTenant ¶
func (UnimplementedTenantServiceServer) CreateTenant(context.Context, *CreateTenantRequest) (*Tenant, error)
func (UnimplementedTenantServiceServer) DeleteTenant ¶
func (UnimplementedTenantServiceServer) DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantReply, error)
func (UnimplementedTenantServiceServer) GetCurrentTenant ¶
func (UnimplementedTenantServiceServer) GetCurrentTenant(context.Context, *GetCurrentTenantRequest) (*GetCurrentTenantReply, error)
func (UnimplementedTenantServiceServer) GetTenant ¶
func (UnimplementedTenantServiceServer) GetTenant(context.Context, *GetTenantRequest) (*Tenant, error)
func (UnimplementedTenantServiceServer) GetTenantPublic ¶
func (UnimplementedTenantServiceServer) GetTenantPublic(context.Context, *GetTenantPublicRequest) (*TenantInfo, error)
func (UnimplementedTenantServiceServer) ListTenant ¶
func (UnimplementedTenantServiceServer) ListTenant(context.Context, *ListTenantRequest) (*ListTenantReply, error)
func (UnimplementedTenantServiceServer) UpdateTenant ¶
func (UnimplementedTenantServiceServer) UpdateTenant(context.Context, *UpdateTenantRequest) (*Tenant, error)
type UnsafeTenantInternalServiceServer ¶
type UnsafeTenantInternalServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTenantInternalServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantInternalServiceServer will result in compilation errors.
type UnsafeTenantServiceServer ¶
type UnsafeTenantServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTenantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantServiceServer will result in compilation errors.
type UpdateTenant ¶
type UpdateTenant 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"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Conn []*TenantConnectionString `protobuf:"bytes,7,rep,name=conn,proto3" json:"conn,omitempty"` Features []*TenantFeature `protobuf:"bytes,8,rep,name=features,proto3" json:"features,omitempty"` Logo string `protobuf:"bytes,9,opt,name=logo,proto3" json:"logo,omitempty"` // contains filtered or unexported fields }
func (*UpdateTenant) Descriptor
deprecated
func (*UpdateTenant) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTenant.ProtoReflect.Descriptor instead.
func (*UpdateTenant) GetConn ¶
func (x *UpdateTenant) GetConn() []*TenantConnectionString
func (*UpdateTenant) GetDisplayName ¶
func (x *UpdateTenant) GetDisplayName() string
func (*UpdateTenant) GetFeatures ¶
func (x *UpdateTenant) GetFeatures() []*TenantFeature
func (*UpdateTenant) GetId ¶
func (x *UpdateTenant) GetId() string
func (*UpdateTenant) GetLogo ¶
func (x *UpdateTenant) GetLogo() string
func (*UpdateTenant) GetName ¶
func (x *UpdateTenant) GetName() string
func (*UpdateTenant) ProtoMessage ¶
func (*UpdateTenant) ProtoMessage()
func (*UpdateTenant) ProtoReflect ¶
func (x *UpdateTenant) ProtoReflect() protoreflect.Message
func (*UpdateTenant) Reset ¶
func (x *UpdateTenant) Reset()
func (*UpdateTenant) String ¶
func (x *UpdateTenant) String() string
func (*UpdateTenant) Validate ¶
func (m *UpdateTenant) Validate() error
Validate checks the field values on UpdateTenant with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateTenant) ValidateAll ¶
func (m *UpdateTenant) ValidateAll() error
ValidateAll checks the field values on UpdateTenant with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateTenantMultiError, or nil if none found.
type UpdateTenantMultiError ¶
type UpdateTenantMultiError []error
UpdateTenantMultiError is an error wrapping multiple validation errors returned by UpdateTenant.ValidateAll() if the designated constraints aren't met.
func (UpdateTenantMultiError) AllErrors ¶
func (m UpdateTenantMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateTenantMultiError) Error ¶
func (m UpdateTenantMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateTenantRequest ¶
type UpdateTenantRequest struct { Tenant *UpdateTenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateTenantRequest) Descriptor
deprecated
func (*UpdateTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTenantRequest.ProtoReflect.Descriptor instead.
func (*UpdateTenantRequest) GetTenant ¶
func (x *UpdateTenantRequest) GetTenant() *UpdateTenant
func (*UpdateTenantRequest) GetUpdateMask ¶
func (x *UpdateTenantRequest) GetUpdateMask() *fieldmaskpb.FieldMask
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
func (*UpdateTenantRequest) Validate ¶
func (m *UpdateTenantRequest) Validate() error
Validate checks the field values on UpdateTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateTenantRequest) ValidateAll ¶
func (m *UpdateTenantRequest) ValidateAll() error
ValidateAll checks the field values on UpdateTenantRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateTenantRequestMultiError, or nil if none found.
type UpdateTenantRequestMultiError ¶
type UpdateTenantRequestMultiError []error
UpdateTenantRequestMultiError is an error wrapping multiple validation errors returned by UpdateTenantRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateTenantRequestMultiError) AllErrors ¶
func (m UpdateTenantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateTenantRequestMultiError) Error ¶
func (m UpdateTenantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateTenantRequestValidationError ¶
type UpdateTenantRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateTenantRequestValidationError is the validation error returned by UpdateTenantRequest.Validate if the designated constraints aren't met.
func (UpdateTenantRequestValidationError) Cause ¶
func (e UpdateTenantRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateTenantRequestValidationError) Error ¶
func (e UpdateTenantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTenantRequestValidationError) ErrorName ¶
func (e UpdateTenantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTenantRequestValidationError) Field ¶
func (e UpdateTenantRequestValidationError) Field() string
Field function returns field value.
func (UpdateTenantRequestValidationError) Key ¶
func (e UpdateTenantRequestValidationError) Key() bool
Key function returns key value.
func (UpdateTenantRequestValidationError) Reason ¶
func (e UpdateTenantRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateTenantValidationError ¶
type UpdateTenantValidationError struct {
// contains filtered or unexported fields
}
UpdateTenantValidationError is the validation error returned by UpdateTenant.Validate if the designated constraints aren't met.
func (UpdateTenantValidationError) Cause ¶
func (e UpdateTenantValidationError) Cause() error
Cause function returns cause value.
func (UpdateTenantValidationError) Error ¶
func (e UpdateTenantValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTenantValidationError) ErrorName ¶
func (e UpdateTenantValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTenantValidationError) Field ¶
func (e UpdateTenantValidationError) Field() string
Field function returns field value.
func (UpdateTenantValidationError) Key ¶
func (e UpdateTenantValidationError) Key() bool
Key function returns key value.
func (UpdateTenantValidationError) Reason ¶
func (e UpdateTenantValidationError) Reason() string
Reason function returns reason value.