v1

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OperationTenantServiceCreateTenant = "/saas.api.tenant.v1.TenantService/CreateTenant"
View Source
const OperationTenantServiceDeleteTenant = "/saas.api.tenant.v1.TenantService/DeleteTenant"
View Source
const OperationTenantServiceGetCurrentTenant = "/saas.api.tenant.v1.TenantService/GetCurrentTenant"
View Source
const OperationTenantServiceGetTenant = "/saas.api.tenant.v1.TenantService/GetTenant"
View Source
const OperationTenantServiceGetTenantPublic = "/saas.api.tenant.v1.TenantService/GetTenantPublic"
View Source
const OperationTenantServiceListTenant = "/saas.api.tenant.v1.TenantService/ListTenant"
View Source
const OperationTenantServiceUpdateTenant = "/saas.api.tenant.v1.TenantService/UpdateTenant"

Variables

View Source
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.

View Source
var File_saas_api_tenant_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_saas_api_tenant_v1_tenant_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 ErrorAdminEmailInvalid(format string, args ...interface{}) *errors.Error

func ErrorAdminEmailInvalidLocalized

func ErrorAdminEmailInvalidLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorAdminIdentityRequired

func ErrorAdminIdentityRequired(format string, args ...interface{}) *errors.Error

func ErrorAdminIdentityRequiredLocalized

func ErrorAdminIdentityRequiredLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorAdminPasswordRequired

func ErrorAdminPasswordRequired(format string, args ...interface{}) *errors.Error

func ErrorAdminPasswordRequiredLocalized

func ErrorAdminPasswordRequiredLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorAdminUsernameInvalid

func ErrorAdminUsernameInvalid(format string, args ...interface{}) *errors.Error

func ErrorAdminUsernameInvalidLocalized

func ErrorAdminUsernameInvalidLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorDuplicateTenantName

func ErrorDuplicateTenantName(format string, args ...interface{}) *errors.Error

func ErrorDuplicateTenantNameLocalized

func ErrorDuplicateTenantNameLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorTenantForbidden

func ErrorTenantForbidden(format string, args ...interface{}) *errors.Error

func ErrorTenantForbiddenLocalized

func ErrorTenantForbiddenLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorTenantNotFound

func ErrorTenantNotFound(format string, args ...interface{}) *errors.Error

func ErrorTenantNotFoundLocalized

func ErrorTenantNotFoundLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorTenantNotReady

func ErrorTenantNotReady(format string, args ...interface{}) *errors.Error

func ErrorTenantNotReadyLocalized

func ErrorTenantNotReadyLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func IsAdminEmailInvalid

func IsAdminEmailInvalid(err error) bool

func IsAdminIdentityRequired

func IsAdminIdentityRequired(err error) bool

func IsAdminPasswordRequired

func IsAdminPasswordRequired(err error) bool

func IsAdminUsernameInvalid

func IsAdminUsernameInvalid(err error) bool

func IsDuplicateTenantName

func IsDuplicateTenantName(err error) bool

func IsTenantForbidden

func IsTenantForbidden(err error) bool

func IsTenantNotFound

func IsTenantNotFound(err error) bool

func IsTenantNotReady

func IsTenantNotReady(err error) bool

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"`
	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 (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

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

Cause function returns cause value.

func (CreateTenantRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTenantRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTenantRequestValidationError) Field

Field function returns field value.

func (CreateTenantRequestValidationError) Key

Key function returns key value.

func (CreateTenantRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteTenantReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteTenantReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteTenantReplyValidationError) Field

Field function returns field value.

func (DeleteTenantReplyValidationError) Key

Key function returns key value.

func (DeleteTenantReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteTenantRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteTenantRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteTenantRequestValidationError) Field

Field function returns field value.

func (DeleteTenantRequestValidationError) Key

Key function returns key value.

func (DeleteTenantRequestValidationError) Reason

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) 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

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

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

Cause function returns cause value.

func (GetCurrentTenantReplyValidationError) Error

Error satisfies the builtin error interface

func (GetCurrentTenantReplyValidationError) ErrorName

ErrorName returns error name.

func (GetCurrentTenantReplyValidationError) Field

Field function returns field value.

func (GetCurrentTenantReplyValidationError) Key

Key function returns key value.

func (GetCurrentTenantReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetCurrentTenantRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCurrentTenantRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCurrentTenantRequestValidationError) Field

Field function returns field value.

func (GetCurrentTenantRequestValidationError) Key

Key function returns key value.

func (GetCurrentTenantRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetTenantPublicRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTenantPublicRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTenantPublicRequestValidationError) Field

Field function returns field value.

func (GetTenantPublicRequestValidationError) Key

Key function returns key value.

func (GetTenantPublicRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetTenantRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTenantRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTenantRequestValidationError) Field

Field function returns field value.

func (GetTenantRequestValidationError) Key

Key function returns key value.

func (GetTenantRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListTenantReplyValidationError) Error

Error satisfies the builtin error interface

func (ListTenantReplyValidationError) ErrorName

func (e ListTenantReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListTenantReplyValidationError) Field

Field function returns field value.

func (ListTenantReplyValidationError) Key

Key function returns key value.

func (ListTenantReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ListTenantRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTenantRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTenantRequestValidationError) Field

Field function returns field value.

func (ListTenantRequestValidationError) Key

Key function returns key value.

func (ListTenantRequestValidationError) Reason

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"`
	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) Descriptor() ([]byte, []int)

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetConn

func (x *Tenant) GetConn() []*TenantConnectionString

func (*Tenant) GetCreatedAt

func (x *Tenant) GetCreatedAt() *timestamppb.Timestamp

func (*Tenant) GetDisplayName

func (x *Tenant) GetDisplayName() string

func (*Tenant) GetFeatures

func (x *Tenant) GetFeatures() []*TenantFeature

func (*Tenant) GetHost

func (x *Tenant) GetHost() string

func (*Tenant) GetId

func (x *Tenant) GetId() string
func (x *Tenant) GetLogo() *blob.BlobFile

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) GetRegion

func (x *Tenant) GetRegion() string

func (*Tenant) GetSeparateDb

func (x *Tenant) GetSeparateDb() bool

func (*Tenant) GetUpdatedAt

func (x *Tenant) GetUpdatedAt() *timestamppb.Timestamp

func (*Tenant) NormalizeHost

func (x *Tenant) NormalizeHost(ctx context.Context, app *conf.AppConfig)

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

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

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

func (*Tenant) ToTenantInfo

func (x *Tenant) ToTenantInfo() *TenantInfo

ToTenantInfo todo better mapper?

func (*Tenant) Validate

func (m *Tenant) Validate() error

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

func (m *Tenant) ValidateAll() error

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

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

Cause function returns cause value.

func (TenantConnectionStringValidationError) Error

Error satisfies the builtin error interface

func (TenantConnectionStringValidationError) ErrorName

ErrorName returns error name.

func (TenantConnectionStringValidationError) Field

Field function returns field value.

func (TenantConnectionStringValidationError) Key

Key function returns key value.

func (TenantConnectionStringValidationError) Reason

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

Cause function returns cause value.

func (TenantFeatureValidationError) Error

Error satisfies the builtin error interface

func (TenantFeatureValidationError) ErrorName

func (e TenantFeatureValidationError) ErrorName() string

ErrorName returns error name.

func (TenantFeatureValidationError) Field

Field function returns field value.

func (TenantFeatureValidationError) Key

Key function returns key value.

func (TenantFeatureValidationError) Reason

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 (*TenantFilter) GetName

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

Cause function returns cause value.

func (TenantFilterValidationError) Error

Error satisfies the builtin error interface

func (TenantFilterValidationError) ErrorName

func (e TenantFilterValidationError) ErrorName() string

ErrorName returns error name.

func (TenantFilterValidationError) Field

Field function returns field value.

func (TenantFilterValidationError) Key

Key function returns key value.

func (TenantFilterValidationError) Reason

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"`
	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 (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

Error satisfies the builtin error interface

func (TenantInfoValidationError) ErrorName

func (e TenantInfoValidationError) ErrorName() string

ErrorName returns error name.

func (TenantInfoValidationError) Field

Field function returns field value.

func (TenantInfoValidationError) Key

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.

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

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.

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 (*TenantServiceHTTPClientImpl) DeleteTenant

func (*TenantServiceHTTPClientImpl) GetCurrentTenant

func (*TenantServiceHTTPClientImpl) GetTenant

func (*TenantServiceHTTPClientImpl) GetTenantPublic

func (*TenantServiceHTTPClientImpl) ListTenant

func (*TenantServiceHTTPClientImpl) UpdateTenant

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

type UnimplementedTenantServiceServer

type UnimplementedTenantServiceServer struct {
}

UnimplementedTenantServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedTenantServiceServer) CreateTenant

func (UnimplementedTenantServiceServer) DeleteTenant

func (UnimplementedTenantServiceServer) GetCurrentTenant

func (UnimplementedTenantServiceServer) GetTenant

func (UnimplementedTenantServiceServer) GetTenantPublic

func (UnimplementedTenantServiceServer) ListTenant

func (UnimplementedTenantServiceServer) UpdateTenant

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"`
	// 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 (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

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

Cause function returns cause value.

func (UpdateTenantRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateTenantRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateTenantRequestValidationError) Field

Field function returns field value.

func (UpdateTenantRequestValidationError) Key

Key function returns key value.

func (UpdateTenantRequestValidationError) Reason

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

Cause function returns cause value.

func (UpdateTenantValidationError) Error

Error satisfies the builtin error interface

func (UpdateTenantValidationError) ErrorName

func (e UpdateTenantValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateTenantValidationError) Field

Field function returns field value.

func (UpdateTenantValidationError) Key

Key function returns key value.

func (UpdateTenantValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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