Documentation ¶
Index ¶
- Variables
- func AccountServiceClientCommand(options ...client.Option) *cobra.Command
- func AuthServiceClientCommand(options ...client.Option) *cobra.Command
- func OrgProjServiceClientCommand(options ...client.Option) *cobra.Command
- func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterOrgProjServiceServer(s grpc.ServiceRegistrar, srv OrgProjServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAvatar() []byte
- func (x *Account) GetAvatarResourceId() string
- func (x *Account) GetCreatedAt() *timestamppb.Timestamp
- func (x *Account) GetDisabled() bool
- func (x *Account) GetEmail() string
- func (x *Account) GetId() string
- func (x *Account) GetLastLogin() *timestamppb.Timestamp
- func (x *Account) GetPassword() string
- func (x *Account) GetRoles() []*UserRoles
- func (x *Account) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Account) GetVerified() bool
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountNewRequest
- func (*AccountNewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccountNewRequest) GetAvatarFilepath() string
- func (x *AccountNewRequest) GetAvatarUploadBytes() string
- func (x *AccountNewRequest) GetEmail() string
- func (x *AccountNewRequest) GetNewUserRoles() []*NewUserRoles
- func (x *AccountNewRequest) GetPassword() string
- func (x *AccountNewRequest) GetRoles() []*UserRoles
- func (*AccountNewRequest) ProtoMessage()
- func (x *AccountNewRequest) ProtoReflect() protoreflect.Message
- func (x *AccountNewRequest) Reset()
- func (x *AccountNewRequest) String() string
- type AccountServiceClient
- type AccountServiceServer
- type AccountUpdateRequest
- func (*AccountUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccountUpdateRequest) GetAvatarFilepath() string
- func (x *AccountUpdateRequest) GetAvatarUploadBytes() []byte
- func (x *AccountUpdateRequest) GetDisabled() bool
- func (x *AccountUpdateRequest) GetEmail() string
- func (x *AccountUpdateRequest) GetId() string
- func (x *AccountUpdateRequest) GetPassword() string
- func (x *AccountUpdateRequest) GetVerified() bool
- func (*AccountUpdateRequest) ProtoMessage()
- func (x *AccountUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *AccountUpdateRequest) Reset()
- func (x *AccountUpdateRequest) String() string
- type AssignAccountToRoleRequest
- func (*AssignAccountToRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignAccountToRoleRequest) GetAssignedAccountId() string
- func (x *AssignAccountToRoleRequest) GetAssigneeAccountId() string
- func (x *AssignAccountToRoleRequest) GetRole() *UserRoles
- func (*AssignAccountToRoleRequest) ProtoMessage()
- func (x *AssignAccountToRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AssignAccountToRoleRequest) Reset()
- func (x *AssignAccountToRoleRequest) String() string
- type AuthServiceClient
- type AuthServiceServer
- type DisableAccountRequest
- func (*DisableAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisableAccountRequest) GetAccountId() string
- func (*DisableAccountRequest) ProtoMessage()
- func (x *DisableAccountRequest) ProtoReflect() protoreflect.Message
- func (x *DisableAccountRequest) Reset()
- func (x *DisableAccountRequest) String() string
- type ErrorReason
- type ForgotPasswordRequest
- func (*ForgotPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ForgotPasswordRequest) GetEmail() string
- func (*ForgotPasswordRequest) ProtoMessage()
- func (x *ForgotPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ForgotPasswordRequest) Reset()
- func (x *ForgotPasswordRequest) String() string
- type ForgotPasswordResponse
- func (*ForgotPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ForgotPasswordResponse) GetErrorReason() *ErrorReason
- func (x *ForgotPasswordResponse) GetForgotPasswordRequestedAt() *timestamppb.Timestamp
- func (x *ForgotPasswordResponse) GetSuccess() bool
- func (x *ForgotPasswordResponse) GetSuccessMsg() string
- func (*ForgotPasswordResponse) ProtoMessage()
- func (x *ForgotPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *ForgotPasswordResponse) Reset()
- func (x *ForgotPasswordResponse) String() string
- type GetAccountRequest
- type IdRequest
- type ListAccountsRequest
- func (*ListAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsRequest) GetCurrentPageId() string
- func (x *ListAccountsRequest) GetFilters() []byte
- func (x *ListAccountsRequest) GetIsDescending() bool
- func (x *ListAccountsRequest) GetMatcher() string
- func (x *ListAccountsRequest) GetOrderBy() string
- func (x *ListAccountsRequest) GetPerPageEntries() int64
- func (*ListAccountsRequest) ProtoMessage()
- func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAccountsRequest) Reset()
- func (x *ListAccountsRequest) String() string
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsResponse) GetAccounts() []*Account
- func (x *ListAccountsResponse) GetNextPageId() string
- func (*ListAccountsResponse) ProtoMessage()
- func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAccountsResponse) Reset()
- func (x *ListAccountsResponse) String() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetAccountId() string
- func (x *ListRequest) GetCurrentPageId() string
- func (x *ListRequest) GetFilters() []byte
- func (x *ListRequest) GetIsDescending() bool
- func (x *ListRequest) GetMatcher() string
- func (x *ListRequest) GetOrderBy() string
- func (x *ListRequest) GetPerPageEntries() int64
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetNextPageId() string
- func (x *ListResponse) GetOrgs() []*Org
- func (x *ListResponse) GetProjects() []*Project
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetAccessToken() string
- func (x *LoginResponse) GetErrorReason() *ErrorReason
- func (x *LoginResponse) GetLastLogin() *timestamppb.Timestamp
- func (x *LoginResponse) GetRefreshToken() string
- func (x *LoginResponse) GetSuccess() bool
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type NewUserRoles
- func (*NewUserRoles) Descriptor() ([]byte, []int)deprecated
- func (x *NewUserRoles) GetOrgId() string
- func (x *NewUserRoles) GetProjectId() string
- func (x *NewUserRoles) GetProjectName() string
- func (x *NewUserRoles) GetRole() Roles
- func (*NewUserRoles) ProtoMessage()
- func (x *NewUserRoles) ProtoReflect() protoreflect.Message
- func (x *NewUserRoles) Reset()
- func (x *NewUserRoles) String() string
- type Org
- func (*Org) Descriptor() ([]byte, []int)deprecated
- func (x *Org) GetContact() string
- func (x *Org) GetCreatedAt() *timestamppb.Timestamp
- func (x *Org) GetCreatorId() string
- func (x *Org) GetId() string
- func (x *Org) GetLogo() []byte
- func (x *Org) GetLogoResourceId() string
- func (x *Org) GetName() string
- func (x *Org) GetProjects() []*Project
- func (*Org) ProtoMessage()
- func (x *Org) ProtoReflect() protoreflect.Message
- func (x *Org) Reset()
- func (x *Org) String() string
- type OrgProjServiceClient
- type OrgProjServiceServer
- type OrgRequest
- func (*OrgRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrgRequest) GetContact() string
- func (x *OrgRequest) GetCreatorId() string
- func (x *OrgRequest) GetLogoFilepath() string
- func (x *OrgRequest) GetLogoUploadBytes() string
- func (x *OrgRequest) GetName() string
- func (*OrgRequest) ProtoMessage()
- func (x *OrgRequest) ProtoReflect() protoreflect.Message
- func (x *OrgRequest) Reset()
- func (x *OrgRequest) String() string
- type OrgUpdateRequest
- func (*OrgUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrgUpdateRequest) GetContact() string
- func (x *OrgUpdateRequest) GetId() string
- func (x *OrgUpdateRequest) GetLogoFilepath() string
- func (x *OrgUpdateRequest) GetLogoUploadBytes() []byte
- func (x *OrgUpdateRequest) GetName() string
- func (*OrgUpdateRequest) ProtoMessage()
- func (x *OrgUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *OrgUpdateRequest) Reset()
- func (x *OrgUpdateRequest) String() string
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetActivities() []string
- func (x *Permission) GetResource() string
- func (x *Permission) GetResourceKind() string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetCreatedAt() *timestamppb.Timestamp
- func (x *Project) GetCreatorId() string
- func (x *Project) GetId() string
- func (x *Project) GetLogo() []byte
- func (x *Project) GetLogoResourceId() string
- func (x *Project) GetName() string
- func (x *Project) GetOrg() *Org
- func (x *Project) GetOrgId() string
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type ProjectRequest
- func (*ProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectRequest) GetCreatorId() string
- func (x *ProjectRequest) GetLogoFilepath() string
- func (x *ProjectRequest) GetLogoUploadBytes() string
- func (x *ProjectRequest) GetName() string
- func (x *ProjectRequest) GetOrgId() string
- func (x *ProjectRequest) GetOrgName() string
- func (*ProjectRequest) ProtoMessage()
- func (x *ProjectRequest) ProtoReflect() protoreflect.Message
- func (x *ProjectRequest) Reset()
- func (x *ProjectRequest) String() string
- type ProjectUpdateRequest
- func (*ProjectUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectUpdateRequest) GetId() string
- func (x *ProjectUpdateRequest) GetLogoFilepath() string
- func (x *ProjectUpdateRequest) GetLogoUploadBytes() []byte
- func (x *ProjectUpdateRequest) GetName() string
- func (*ProjectUpdateRequest) ProtoMessage()
- func (x *ProjectUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *ProjectUpdateRequest) Reset()
- func (x *ProjectUpdateRequest) String() string
- type RefreshAccessTokenRequest
- func (*RefreshAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshAccessTokenRequest) GetRefreshToken() string
- func (*RefreshAccessTokenRequest) ProtoMessage()
- func (x *RefreshAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshAccessTokenRequest) Reset()
- func (x *RefreshAccessTokenRequest) String() string
- type RefreshAccessTokenResponse
- func (*RefreshAccessTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshAccessTokenResponse) GetAccessToken() string
- func (x *RefreshAccessTokenResponse) GetErrorReason() *ErrorReason
- func (*RefreshAccessTokenResponse) ProtoMessage()
- func (x *RefreshAccessTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshAccessTokenResponse) Reset()
- func (x *RefreshAccessTokenResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetPasswordConfirm() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetErrorReason() *ErrorReason
- func (x *RegisterResponse) GetSuccess() bool
- func (x *RegisterResponse) GetSuccessMsg() string
- func (x *RegisterResponse) GetTempUserId() string
- func (x *RegisterResponse) GetVerifyToken() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetEmail() string
- func (x *ResetPasswordRequest) GetPassword() string
- func (x *ResetPasswordRequest) GetPasswordConfirm() string
- func (x *ResetPasswordRequest) GetVerifyToken() string
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- type ResetPasswordResponse
- func (*ResetPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordResponse) GetErrorReason() *ErrorReason
- func (x *ResetPasswordResponse) GetResetPasswordRequestedAt() *timestamppb.Timestamp
- func (x *ResetPasswordResponse) GetSuccess() bool
- func (x *ResetPasswordResponse) GetSuccessMsg() string
- func (*ResetPasswordResponse) ProtoMessage()
- func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordResponse) Reset()
- func (x *ResetPasswordResponse) String() string
- type Roles
- type SearchAccountsRequest
- func (*SearchAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAccountsRequest) GetQuery() []byte
- func (x *SearchAccountsRequest) GetSearchParams() *ListAccountsRequest
- func (*SearchAccountsRequest) ProtoMessage()
- func (x *SearchAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchAccountsRequest) Reset()
- func (x *SearchAccountsRequest) String() string
- type SearchAccountsResponse
- func (*SearchAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAccountsResponse) GetSearchResponse() *ListAccountsResponse
- func (*SearchAccountsResponse) ProtoMessage()
- func (x *SearchAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchAccountsResponse) Reset()
- func (x *SearchAccountsResponse) String() string
- type UnimplementedAccountServiceServer
- func (UnimplementedAccountServiceServer) AssignAccountToRole(context.Context, *AssignAccountToRoleRequest) (*Account, error)
- func (UnimplementedAccountServiceServer) DeleteAccount(context.Context, *DisableAccountRequest) (*emptypb.Empty, error)
- func (UnimplementedAccountServiceServer) DisableAccount(context.Context, *DisableAccountRequest) (*Account, error)
- func (UnimplementedAccountServiceServer) GetAccount(context.Context, *IdRequest) (*Account, error)
- func (UnimplementedAccountServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
- func (UnimplementedAccountServiceServer) NewAccount(context.Context, *AccountNewRequest) (*Account, error)
- func (UnimplementedAccountServiceServer) SearchAccounts(context.Context, *SearchAccountsRequest) (*SearchAccountsResponse, error)
- func (UnimplementedAccountServiceServer) UpdateAccount(context.Context, *AccountUpdateRequest) (*Account, error)
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) ForgotPassword(context.Context, *ForgotPasswordRequest) (*ForgotPasswordResponse, error)
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) RefreshAccessToken(context.Context, *RefreshAccessTokenRequest) (*RefreshAccessTokenResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
- func (UnimplementedAuthServiceServer) VerifyAccount(context.Context, *VerifyAccountRequest) (*emptypb.Empty, error)
- type UnimplementedOrgProjServiceServer
- func (UnimplementedOrgProjServiceServer) DeleteOrg(context.Context, *IdRequest) (*emptypb.Empty, error)
- func (UnimplementedOrgProjServiceServer) DeleteProject(context.Context, *IdRequest) (*emptypb.Empty, error)
- func (UnimplementedOrgProjServiceServer) GetOrg(context.Context, *IdRequest) (*Org, error)
- func (UnimplementedOrgProjServiceServer) GetProject(context.Context, *IdRequest) (*Project, error)
- func (UnimplementedOrgProjServiceServer) ListNonSubscribedOrgs(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedOrgProjServiceServer) ListOrg(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedOrgProjServiceServer) ListProject(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedOrgProjServiceServer) NewOrg(context.Context, *OrgRequest) (*Org, error)
- func (UnimplementedOrgProjServiceServer) NewProject(context.Context, *ProjectRequest) (*Project, error)
- func (UnimplementedOrgProjServiceServer) UpdateOrg(context.Context, *OrgUpdateRequest) (*Org, error)
- func (UnimplementedOrgProjServiceServer) UpdateProject(context.Context, *ProjectUpdateRequest) (*Project, error)
- type UnsafeAccountServiceServer
- type UnsafeAuthServiceServer
- type UnsafeOrgProjServiceServer
- type UserDefinedFields
- type UserRoles
- func (*UserRoles) Descriptor() ([]byte, []int)deprecated
- func (x *UserRoles) GetOrgId() string
- func (x *UserRoles) GetProjectId() string
- func (x *UserRoles) GetRole() Roles
- func (*UserRoles) ProtoMessage()
- func (x *UserRoles) ProtoReflect() protoreflect.Message
- func (x *UserRoles) Reset()
- func (x *UserRoles) String() string
- type VerifyAccountRequest
- func (*VerifyAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAccountRequest) GetAccountId() string
- func (x *VerifyAccountRequest) GetVerifyToken() string
- func (*VerifyAccountRequest) ProtoMessage()
- func (x *VerifyAccountRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyAccountRequest) Reset()
- func (x *VerifyAccountRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Roles_name = map[int32]string{ 0: "INVALID", 1: "GUEST", 2: "USER", 3: "ADMIN", 4: "SUPERADMIN", } Roles_value = map[string]int32{ "INVALID": 0, "GUEST": 1, "USER": 2, "ADMIN": 3, "SUPERADMIN": 4, } )
Enum value maps for Roles.
var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v2.sys_account.services.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewAccount", Handler: _AccountService_NewAccount_Handler, }, { MethodName: "GetAccount", Handler: _AccountService_GetAccount_Handler, }, { MethodName: "ListAccounts", Handler: _AccountService_ListAccounts_Handler, }, { MethodName: "SearchAccounts", Handler: _AccountService_SearchAccounts_Handler, }, { MethodName: "AssignAccountToRole", Handler: _AccountService_AssignAccountToRole_Handler, }, { MethodName: "UpdateAccount", Handler: _AccountService_UpdateAccount_Handler, }, { MethodName: "DisableAccount", Handler: _AccountService_DisableAccount_Handler, }, { MethodName: "DeleteAccount", Handler: _AccountService_DeleteAccount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sys_account_services.proto", }
AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v2.sys_account.services.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "ForgotPassword", Handler: _AuthService_ForgotPassword_Handler, }, { MethodName: "ResetPassword", Handler: _AuthService_ResetPassword_Handler, }, { MethodName: "RefreshAccessToken", Handler: _AuthService_RefreshAccessToken_Handler, }, { MethodName: "VerifyAccount", Handler: _AuthService_VerifyAccount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sys_account_services.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_sys_account_models_proto protoreflect.FileDescriptor
var OrgProjService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v2.sys_account.services.OrgProjService", HandlerType: (*OrgProjServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewProject", Handler: _OrgProjService_NewProject_Handler, }, { MethodName: "GetProject", Handler: _OrgProjService_GetProject_Handler, }, { MethodName: "ListProject", Handler: _OrgProjService_ListProject_Handler, }, { MethodName: "UpdateProject", Handler: _OrgProjService_UpdateProject_Handler, }, { MethodName: "DeleteProject", Handler: _OrgProjService_DeleteProject_Handler, }, { MethodName: "NewOrg", Handler: _OrgProjService_NewOrg_Handler, }, { MethodName: "GetOrg", Handler: _OrgProjService_GetOrg_Handler, }, { MethodName: "ListOrg", Handler: _OrgProjService_ListOrg_Handler, }, { MethodName: "ListNonSubscribedOrgs", Handler: _OrgProjService_ListNonSubscribedOrgs_Handler, }, { MethodName: "UpdateOrg", Handler: _OrgProjService_UpdateOrg_Handler, }, { MethodName: "DeleteOrg", Handler: _OrgProjService_DeleteOrg_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sys_account_services.proto", }
OrgProjService_ServiceDesc is the grpc.ServiceDesc for OrgProjService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func AccountServiceClientCommand ¶
func AuthServiceClientCommand ¶
func OrgProjServiceClientCommand ¶
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterOrgProjServiceServer ¶
func RegisterOrgProjServiceServer(s grpc.ServiceRegistrar, srv OrgProjServiceServer)
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Roles []*UserRoles `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` LastLogin *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` Disabled bool `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"` Verified bool `protobuf:"varint,9,opt,name=verified,proto3" json:"verified,omitempty"` AvatarResourceId string `protobuf:"bytes,10,opt,name=avatar_resource_id,json=avatarResourceId,proto3" json:"avatar_resource_id,omitempty"` // local upload i.e. bootstrap Avatar []byte `protobuf:"bytes,11,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*Account) GetCreatedAt ¶
func (x *Account) GetCreatedAt() *timestamppb.Timestamp
func (*Account) GetLastLogin ¶
func (x *Account) GetLastLogin() *timestamppb.Timestamp
func (*Account) GetUpdatedAt ¶
func (x *Account) GetUpdatedAt() *timestamppb.Timestamp
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountNewRequest ¶
type AccountNewRequest struct { // @inject_tag: fake:"{mailseq:user,false,none,false}" yaml:"email,omitempty" Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty" fake:"{mailseq:user,false,none,false}" yaml:"email,omitempty"` // @inject_tag: fake:"{password}" yaml:"password,omitempty" Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" fake:"{password}" yaml:"password,omitempty"` // @inject_tag: fake:"skip" yaml:"roles,omitempty" Roles []*UserRoles `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty" fake:"skip" yaml:"roles,omitempty"` // @inject_tag: fake:"skip" yaml:"avatar_filepath,omitempty" AvatarFilepath string `` // local upload i.e. bootstrap, remote upload will be user's directory /* 148-byte string literal not displayed */ // @inject_tag: fake:"{logogen:100}" yaml:"avatar_upload_bytes,omitempty" AvatarUploadBytes string `` // raw bytes upload for remote upload /* 172-byte string literal not displayed */ // @inject_tag: fakesize:"1" yaml:"new_user_roles,omitempty" NewUserRoles []*NewUserRoles `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AccountNewRequest) Descriptor
deprecated
func (*AccountNewRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccountNewRequest.ProtoReflect.Descriptor instead.
func (*AccountNewRequest) GetAvatarFilepath ¶
func (x *AccountNewRequest) GetAvatarFilepath() string
func (*AccountNewRequest) GetAvatarUploadBytes ¶
func (x *AccountNewRequest) GetAvatarUploadBytes() string
func (*AccountNewRequest) GetEmail ¶
func (x *AccountNewRequest) GetEmail() string
func (*AccountNewRequest) GetNewUserRoles ¶
func (x *AccountNewRequest) GetNewUserRoles() []*NewUserRoles
func (*AccountNewRequest) GetPassword ¶
func (x *AccountNewRequest) GetPassword() string
func (*AccountNewRequest) GetRoles ¶
func (x *AccountNewRequest) GetRoles() []*UserRoles
func (*AccountNewRequest) ProtoMessage ¶
func (*AccountNewRequest) ProtoMessage()
func (*AccountNewRequest) ProtoReflect ¶
func (x *AccountNewRequest) ProtoReflect() protoreflect.Message
func (*AccountNewRequest) Reset ¶
func (x *AccountNewRequest) Reset()
func (*AccountNewRequest) String ¶
func (x *AccountNewRequest) String() string
type AccountServiceClient ¶
type AccountServiceClient interface { NewAccount(ctx context.Context, in *AccountNewRequest, opts ...grpc.CallOption) (*Account, error) GetAccount(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Account, error) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) SearchAccounts(ctx context.Context, in *SearchAccountsRequest, opts ...grpc.CallOption) (*SearchAccountsResponse, error) AssignAccountToRole(ctx context.Context, in *AssignAccountToRoleRequest, opts ...grpc.CallOption) (*Account, error) UpdateAccount(ctx context.Context, in *AccountUpdateRequest, opts ...grpc.CallOption) (*Account, error) DisableAccount(ctx context.Context, in *DisableAccountRequest, opts ...grpc.CallOption) (*Account, error) DeleteAccount(ctx context.Context, in *DisableAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AccountServiceClient is the client API for AccountService 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 NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { NewAccount(context.Context, *AccountNewRequest) (*Account, error) GetAccount(context.Context, *IdRequest) (*Account, error) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) SearchAccounts(context.Context, *SearchAccountsRequest) (*SearchAccountsResponse, error) AssignAccountToRole(context.Context, *AssignAccountToRoleRequest) (*Account, error) UpdateAccount(context.Context, *AccountUpdateRequest) (*Account, error) DisableAccount(context.Context, *DisableAccountRequest) (*Account, error) DeleteAccount(context.Context, *DisableAccountRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility
type AccountUpdateRequest ¶
type AccountUpdateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Disabled bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"` Verified bool `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"` AvatarFilepath string `protobuf:"bytes,6,opt,name=avatar_filepath,json=avatarFilepath,proto3" json:"avatar_filepath,omitempty"` AvatarUploadBytes []byte `protobuf:"bytes,7,opt,name=avatar_upload_bytes,json=avatarUploadBytes,proto3" json:"avatar_upload_bytes,omitempty"` // contains filtered or unexported fields }
func (*AccountUpdateRequest) Descriptor
deprecated
func (*AccountUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccountUpdateRequest.ProtoReflect.Descriptor instead.
func (*AccountUpdateRequest) GetAvatarFilepath ¶
func (x *AccountUpdateRequest) GetAvatarFilepath() string
func (*AccountUpdateRequest) GetAvatarUploadBytes ¶
func (x *AccountUpdateRequest) GetAvatarUploadBytes() []byte
func (*AccountUpdateRequest) GetDisabled ¶
func (x *AccountUpdateRequest) GetDisabled() bool
func (*AccountUpdateRequest) GetEmail ¶
func (x *AccountUpdateRequest) GetEmail() string
func (*AccountUpdateRequest) GetId ¶
func (x *AccountUpdateRequest) GetId() string
func (*AccountUpdateRequest) GetPassword ¶
func (x *AccountUpdateRequest) GetPassword() string
func (*AccountUpdateRequest) GetVerified ¶
func (x *AccountUpdateRequest) GetVerified() bool
func (*AccountUpdateRequest) ProtoMessage ¶
func (*AccountUpdateRequest) ProtoMessage()
func (*AccountUpdateRequest) ProtoReflect ¶
func (x *AccountUpdateRequest) ProtoReflect() protoreflect.Message
func (*AccountUpdateRequest) Reset ¶
func (x *AccountUpdateRequest) Reset()
func (*AccountUpdateRequest) String ¶
func (x *AccountUpdateRequest) String() string
type AssignAccountToRoleRequest ¶
type AssignAccountToRoleRequest struct { AssigneeAccountId string `protobuf:"bytes,1,opt,name=assignee_account_id,json=assigneeAccountId,proto3" json:"assignee_account_id,omitempty"` // current account's id (to check for privilege) AssignedAccountId string `protobuf:"bytes,2,opt,name=assigned_account_id,json=assignedAccountId,proto3" json:"assigned_account_id,omitempty"` // account id to be assigned to role. Role *UserRoles `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*AssignAccountToRoleRequest) Descriptor
deprecated
func (*AssignAccountToRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignAccountToRoleRequest.ProtoReflect.Descriptor instead.
func (*AssignAccountToRoleRequest) GetAssignedAccountId ¶
func (x *AssignAccountToRoleRequest) GetAssignedAccountId() string
func (*AssignAccountToRoleRequest) GetAssigneeAccountId ¶
func (x *AssignAccountToRoleRequest) GetAssigneeAccountId() string
func (*AssignAccountToRoleRequest) GetRole ¶
func (x *AssignAccountToRoleRequest) GetRole() *UserRoles
func (*AssignAccountToRoleRequest) ProtoMessage ¶
func (*AssignAccountToRoleRequest) ProtoMessage()
func (*AssignAccountToRoleRequest) ProtoReflect ¶
func (x *AssignAccountToRoleRequest) ProtoReflect() protoreflect.Message
func (*AssignAccountToRoleRequest) Reset ¶
func (x *AssignAccountToRoleRequest) Reset()
func (*AssignAccountToRoleRequest) String ¶
func (x *AssignAccountToRoleRequest) String() string
type AuthServiceClient ¶
type AuthServiceClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) // hide Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // ForgotPassword, then ResetPassword if succeed ForgotPassword(ctx context.Context, in *ForgotPasswordRequest, opts ...grpc.CallOption) (*ForgotPasswordResponse, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*ResetPasswordResponse, error) // Refresh Access Token endpoint RefreshAccessToken(ctx context.Context, in *RefreshAccessTokenRequest, opts ...grpc.CallOption) (*RefreshAccessTokenResponse, error) VerifyAccount(ctx context.Context, in *VerifyAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) // hide Login(context.Context, *LoginRequest) (*LoginResponse, error) // ForgotPassword, then ResetPassword if succeed ForgotPassword(context.Context, *ForgotPasswordRequest) (*ForgotPasswordResponse, error) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error) // Refresh Access Token endpoint RefreshAccessToken(context.Context, *RefreshAccessTokenRequest) (*RefreshAccessTokenResponse, error) VerifyAccount(context.Context, *VerifyAccountRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type DisableAccountRequest ¶
type DisableAccountRequest struct { AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*DisableAccountRequest) Descriptor
deprecated
func (*DisableAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableAccountRequest.ProtoReflect.Descriptor instead.
func (*DisableAccountRequest) GetAccountId ¶
func (x *DisableAccountRequest) GetAccountId() string
func (*DisableAccountRequest) ProtoMessage ¶
func (*DisableAccountRequest) ProtoMessage()
func (*DisableAccountRequest) ProtoReflect ¶
func (x *DisableAccountRequest) ProtoReflect() protoreflect.Message
func (*DisableAccountRequest) Reset ¶
func (x *DisableAccountRequest) Reset()
func (*DisableAccountRequest) String ¶
func (x *DisableAccountRequest) String() string
type ErrorReason ¶
type ErrorReason struct { Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*ErrorReason) Descriptor
deprecated
func (*ErrorReason) Descriptor() ([]byte, []int)
Deprecated: Use ErrorReason.ProtoReflect.Descriptor instead.
func (*ErrorReason) GetReason ¶
func (x *ErrorReason) GetReason() string
func (*ErrorReason) ProtoMessage ¶
func (*ErrorReason) ProtoMessage()
func (*ErrorReason) ProtoReflect ¶
func (x *ErrorReason) ProtoReflect() protoreflect.Message
func (*ErrorReason) Reset ¶
func (x *ErrorReason) Reset()
func (*ErrorReason) String ¶
func (x *ErrorReason) String() string
type ForgotPasswordRequest ¶
type ForgotPasswordRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*ForgotPasswordRequest) Descriptor
deprecated
func (*ForgotPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ForgotPasswordRequest.ProtoReflect.Descriptor instead.
func (*ForgotPasswordRequest) GetEmail ¶
func (x *ForgotPasswordRequest) GetEmail() string
func (*ForgotPasswordRequest) ProtoMessage ¶
func (*ForgotPasswordRequest) ProtoMessage()
func (*ForgotPasswordRequest) ProtoReflect ¶
func (x *ForgotPasswordRequest) ProtoReflect() protoreflect.Message
func (*ForgotPasswordRequest) Reset ¶
func (x *ForgotPasswordRequest) Reset()
func (*ForgotPasswordRequest) String ¶
func (x *ForgotPasswordRequest) String() string
type ForgotPasswordResponse ¶
type ForgotPasswordResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` SuccessMsg string `protobuf:"bytes,2,opt,name=success_msg,json=successMsg,proto3" json:"success_msg,omitempty"` ErrorReason *ErrorReason `protobuf:"bytes,3,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"` ForgotPasswordRequestedAt *timestamppb.Timestamp `` /* 140-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ForgotPasswordResponse) Descriptor
deprecated
func (*ForgotPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ForgotPasswordResponse.ProtoReflect.Descriptor instead.
func (*ForgotPasswordResponse) GetErrorReason ¶
func (x *ForgotPasswordResponse) GetErrorReason() *ErrorReason
func (*ForgotPasswordResponse) GetForgotPasswordRequestedAt ¶
func (x *ForgotPasswordResponse) GetForgotPasswordRequestedAt() *timestamppb.Timestamp
func (*ForgotPasswordResponse) GetSuccess ¶
func (x *ForgotPasswordResponse) GetSuccess() bool
func (*ForgotPasswordResponse) GetSuccessMsg ¶
func (x *ForgotPasswordResponse) GetSuccessMsg() string
func (*ForgotPasswordResponse) ProtoMessage ¶
func (*ForgotPasswordResponse) ProtoMessage()
func (*ForgotPasswordResponse) ProtoReflect ¶
func (x *ForgotPasswordResponse) ProtoReflect() protoreflect.Message
func (*ForgotPasswordResponse) Reset ¶
func (x *ForgotPasswordResponse) Reset()
func (*ForgotPasswordResponse) String ¶
func (x *ForgotPasswordResponse) String() string
type GetAccountRequest ¶
type GetAccountRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetId ¶
func (x *GetAccountRequest) GetId() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
type IdRequest ¶
type IdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*IdRequest) ProtoReflect ¶
func (x *IdRequest) ProtoReflect() protoreflect.Message
type ListAccountsRequest ¶
type ListAccountsRequest struct { // limit PerPageEntries int64 `protobuf:"varint,1,opt,name=per_page_entries,json=perPageEntries,proto3" json:"per_page_entries,omitempty"` OrderBy string `protobuf:"bytes,2,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // number 3 => optional: current_page_id is the last id of the // (current) listed Accounts for pagination purpose (cursor). CurrentPageId string `protobuf:"bytes,3,opt,name=current_page_id,json=currentPageId,proto3" json:"current_page_id,omitempty"` IsDescending bool `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"` Filters []byte `protobuf:"bytes,5,opt,name=filters,proto3" json:"filters,omitempty"` Matcher string `protobuf:"bytes,6,opt,name=matcher,proto3" json:"matcher,omitempty"` // contains filtered or unexported fields }
func (*ListAccountsRequest) Descriptor
deprecated
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.
func (*ListAccountsRequest) GetCurrentPageId ¶
func (x *ListAccountsRequest) GetCurrentPageId() string
func (*ListAccountsRequest) GetFilters ¶
func (x *ListAccountsRequest) GetFilters() []byte
func (*ListAccountsRequest) GetIsDescending ¶
func (x *ListAccountsRequest) GetIsDescending() bool
func (*ListAccountsRequest) GetMatcher ¶
func (x *ListAccountsRequest) GetMatcher() string
func (*ListAccountsRequest) GetOrderBy ¶
func (x *ListAccountsRequest) GetOrderBy() string
func (*ListAccountsRequest) GetPerPageEntries ¶
func (x *ListAccountsRequest) GetPerPageEntries() int64
func (*ListAccountsRequest) ProtoMessage ¶
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) ProtoReflect ¶
func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message
func (*ListAccountsRequest) Reset ¶
func (x *ListAccountsRequest) Reset()
func (*ListAccountsRequest) String ¶
func (x *ListAccountsRequest) String() string
type ListAccountsResponse ¶
type ListAccountsResponse struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // similarly, next_page token is the cursor for the next request NextPageId string `protobuf:"bytes,2,opt,name=next_page_id,json=nextPageId,proto3" json:"next_page_id,omitempty"` // contains filtered or unexported fields }
func (*ListAccountsResponse) Descriptor
deprecated
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.
func (*ListAccountsResponse) GetAccounts ¶
func (x *ListAccountsResponse) GetAccounts() []*Account
func (*ListAccountsResponse) GetNextPageId ¶
func (x *ListAccountsResponse) GetNextPageId() string
func (*ListAccountsResponse) ProtoMessage ¶
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) ProtoReflect ¶
func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
func (*ListAccountsResponse) Reset ¶
func (x *ListAccountsResponse) Reset()
func (*ListAccountsResponse) String ¶
func (x *ListAccountsResponse) String() string
type ListRequest ¶
type ListRequest struct { // limit PerPageEntries int64 `protobuf:"varint,1,opt,name=per_page_entries,json=perPageEntries,proto3" json:"per_page_entries,omitempty"` OrderBy string `protobuf:"bytes,2,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // number 3 => optional: current_page_id is the last id of the // (current) listed Accounts for pagination purpose (cursor). CurrentPageId string `protobuf:"bytes,3,opt,name=current_page_id,json=currentPageId,proto3" json:"current_page_id,omitempty"` IsDescending bool `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"` Filters []byte `protobuf:"bytes,5,opt,name=filters,proto3" json:"filters,omitempty"` AccountId string `protobuf:"bytes,6,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` Matcher string `protobuf:"bytes,7,opt,name=matcher,proto3" json:"matcher,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetAccountId ¶
func (x *ListRequest) GetAccountId() string
func (*ListRequest) GetCurrentPageId ¶
func (x *ListRequest) GetCurrentPageId() string
func (*ListRequest) GetFilters ¶
func (x *ListRequest) GetFilters() []byte
func (*ListRequest) GetIsDescending ¶
func (x *ListRequest) GetIsDescending() bool
func (*ListRequest) GetMatcher ¶
func (x *ListRequest) GetMatcher() string
func (*ListRequest) GetOrderBy ¶
func (x *ListRequest) GetOrderBy() string
func (*ListRequest) GetPerPageEntries ¶
func (x *ListRequest) GetPerPageEntries() int64
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` Orgs []*Org `protobuf:"bytes,2,rep,name=orgs,proto3" json:"orgs,omitempty"` NextPageId string `protobuf:"bytes,3,opt,name=next_page_id,json=nextPageId,proto3" json:"next_page_id,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetNextPageId ¶
func (x *ListResponse) GetNextPageId() string
func (*ListResponse) GetOrgs ¶
func (x *ListResponse) GetOrgs() []*Org
func (*ListResponse) GetProjects ¶
func (x *ListResponse) GetProjects() []*Project
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type LoginRequest ¶
type LoginRequest struct { // @inject_tag: fake:"{mailseq:ops,false,none,false}" yaml:"email" Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty" fake:"{mailseq:ops,false,none,false}" yaml:"email"` // @inject_tag: fake:"{password:true,true,true,false,false,16}" yaml:"password" Password string `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` ErrorReason *ErrorReason `protobuf:"bytes,4,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"` LastLogin *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAccessToken ¶
func (x *LoginResponse) GetAccessToken() string
func (*LoginResponse) GetErrorReason ¶
func (x *LoginResponse) GetErrorReason() *ErrorReason
func (*LoginResponse) GetLastLogin ¶
func (x *LoginResponse) GetLastLogin() *timestamppb.Timestamp
func (*LoginResponse) GetRefreshToken ¶
func (x *LoginResponse) GetRefreshToken() string
func (*LoginResponse) GetSuccess ¶
func (x *LoginResponse) GetSuccess() bool
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type NewUserRoles ¶
type NewUserRoles struct { // @inject_tag: fake:"{number:2,3}" yaml:"role" Role Roles `` /* 129-byte string literal not displayed */ // @inject_tag: fake:"skip" yaml:"project_id,omitempty" ProjectId string `` /* 128-byte string literal not displayed */ // @inject_tag: fake:"skip" yaml:"org_id,omitempty" OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty" fake:"skip" yaml:"org_id,omitempty"` // @inject_tag: fake:"{nameseq:sys_account_project,true,sys_account_project,false,false}" yaml:"project_name,omitempty" ProjectName string `` /* 198-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NewUserRoles) Descriptor
deprecated
func (*NewUserRoles) Descriptor() ([]byte, []int)
Deprecated: Use NewUserRoles.ProtoReflect.Descriptor instead.
func (*NewUserRoles) GetOrgId ¶
func (x *NewUserRoles) GetOrgId() string
func (*NewUserRoles) GetProjectId ¶
func (x *NewUserRoles) GetProjectId() string
func (*NewUserRoles) GetProjectName ¶
func (x *NewUserRoles) GetProjectName() string
func (*NewUserRoles) GetRole ¶
func (x *NewUserRoles) GetRole() Roles
func (*NewUserRoles) ProtoMessage ¶
func (*NewUserRoles) ProtoMessage()
func (*NewUserRoles) ProtoReflect ¶
func (x *NewUserRoles) ProtoReflect() protoreflect.Message
func (*NewUserRoles) Reset ¶
func (x *NewUserRoles) Reset()
func (*NewUserRoles) String ¶
func (x *NewUserRoles) String() string
type Org ¶
type Org 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"` LogoResourceId string `protobuf:"bytes,3,opt,name=logo_resource_id,json=logoResourceId,proto3" json:"logo_resource_id,omitempty"` Contact string `protobuf:"bytes,4,opt,name=contact,proto3" json:"contact,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` CreatorId string `protobuf:"bytes,6,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` Projects []*Project `protobuf:"bytes,7,rep,name=projects,proto3" json:"projects,omitempty"` Logo []byte `protobuf:"bytes,8,opt,name=logo,proto3" json:"logo,omitempty"` // contains filtered or unexported fields }
resource: Org
func (*Org) GetCreatedAt ¶
func (x *Org) GetCreatedAt() *timestamppb.Timestamp
func (*Org) ProtoReflect ¶
func (x *Org) ProtoReflect() protoreflect.Message
type OrgProjServiceClient ¶
type OrgProjServiceClient interface { // Projects NewProject(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*Project, error) GetProject(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Project, error) ListProject(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) UpdateProject(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*Project, error) DeleteProject(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Orgs NewOrg(ctx context.Context, in *OrgRequest, opts ...grpc.CallOption) (*Org, error) GetOrg(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Org, error) ListOrg(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) ListNonSubscribedOrgs(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) UpdateOrg(ctx context.Context, in *OrgUpdateRequest, opts ...grpc.CallOption) (*Org, error) DeleteOrg(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
OrgProjServiceClient is the client API for OrgProjService 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 NewOrgProjServiceClient ¶
func NewOrgProjServiceClient(cc grpc.ClientConnInterface) OrgProjServiceClient
type OrgProjServiceServer ¶
type OrgProjServiceServer interface { // Projects NewProject(context.Context, *ProjectRequest) (*Project, error) GetProject(context.Context, *IdRequest) (*Project, error) ListProject(context.Context, *ListRequest) (*ListResponse, error) UpdateProject(context.Context, *ProjectUpdateRequest) (*Project, error) DeleteProject(context.Context, *IdRequest) (*emptypb.Empty, error) // Orgs NewOrg(context.Context, *OrgRequest) (*Org, error) GetOrg(context.Context, *IdRequest) (*Org, error) ListOrg(context.Context, *ListRequest) (*ListResponse, error) ListNonSubscribedOrgs(context.Context, *ListRequest) (*ListResponse, error) UpdateOrg(context.Context, *OrgUpdateRequest) (*Org, error) DeleteOrg(context.Context, *IdRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
OrgProjServiceServer is the server API for OrgProjService service. All implementations must embed UnimplementedOrgProjServiceServer for forward compatibility
type OrgRequest ¶
type OrgRequest struct { // @inject_tag: fake:"{nameseq:sys_account_org,false,none,false,false}" yaml:"name,omitempty" Name string `` /* 139-byte string literal not displayed */ // @inject_tag: fake:"skip" yaml:"logo_filepath,omitempty" LogoFilepath string `` /* 140-byte string literal not displayed */ // @inject_tag: fake:"{email}" yaml:"contact,omitempty" Contact string `protobuf:"bytes,3,opt,name=contact,proto3" json:"contact,omitempty" fake:"{email}" yaml:"contact,omitempty"` // @inject_tag: fake:"{randomstring:[ops@amplify-cms.org,contact@amplify-cms.org]}" yaml:"creator_id,omitempty" CreatorId string `` /* 184-byte string literal not displayed */ // @inject_tag: fake:"{logogen:128}" yaml:"logo_upload_bytes,omitempty" LogoUploadBytes string `` /* 164-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OrgRequest) Descriptor
deprecated
func (*OrgRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrgRequest.ProtoReflect.Descriptor instead.
func (*OrgRequest) GetContact ¶
func (x *OrgRequest) GetContact() string
func (*OrgRequest) GetCreatorId ¶
func (x *OrgRequest) GetCreatorId() string
func (*OrgRequest) GetLogoFilepath ¶
func (x *OrgRequest) GetLogoFilepath() string
func (*OrgRequest) GetLogoUploadBytes ¶
func (x *OrgRequest) GetLogoUploadBytes() string
func (*OrgRequest) GetName ¶
func (x *OrgRequest) GetName() string
func (*OrgRequest) ProtoMessage ¶
func (*OrgRequest) ProtoMessage()
func (*OrgRequest) ProtoReflect ¶
func (x *OrgRequest) ProtoReflect() protoreflect.Message
func (*OrgRequest) Reset ¶
func (x *OrgRequest) Reset()
func (*OrgRequest) String ¶
func (x *OrgRequest) String() string
type OrgUpdateRequest ¶
type OrgUpdateRequest 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"` Contact string `protobuf:"bytes,3,opt,name=contact,proto3" json:"contact,omitempty"` LogoFilepath string `protobuf:"bytes,4,opt,name=logo_filepath,json=logoFilepath,proto3" json:"logo_filepath,omitempty"` LogoUploadBytes []byte `protobuf:"bytes,5,opt,name=logo_upload_bytes,json=logoUploadBytes,proto3" json:"logo_upload_bytes,omitempty"` // contains filtered or unexported fields }
func (*OrgUpdateRequest) Descriptor
deprecated
func (*OrgUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrgUpdateRequest.ProtoReflect.Descriptor instead.
func (*OrgUpdateRequest) GetContact ¶
func (x *OrgUpdateRequest) GetContact() string
func (*OrgUpdateRequest) GetId ¶
func (x *OrgUpdateRequest) GetId() string
func (*OrgUpdateRequest) GetLogoFilepath ¶
func (x *OrgUpdateRequest) GetLogoFilepath() string
func (*OrgUpdateRequest) GetLogoUploadBytes ¶
func (x *OrgUpdateRequest) GetLogoUploadBytes() []byte
func (*OrgUpdateRequest) GetName ¶
func (x *OrgUpdateRequest) GetName() string
func (*OrgUpdateRequest) ProtoMessage ¶
func (*OrgUpdateRequest) ProtoMessage()
func (*OrgUpdateRequest) ProtoReflect ¶
func (x *OrgUpdateRequest) ProtoReflect() protoreflect.Message
func (*OrgUpdateRequest) Reset ¶
func (x *OrgUpdateRequest) Reset()
func (*OrgUpdateRequest) String ¶
func (x *OrgUpdateRequest) String() string
type Permission ¶
type Permission struct { Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // resource can be database table or path to URL or anything else ResourceKind string `protobuf:"bytes,2,opt,name=resource_kind,json=resourceKind,proto3" json:"resource_kind,omitempty"` // describes the first resource type (i.e. db table, or path) Activities []string `protobuf:"bytes,3,rep,name=activities,proto3" json:"activities,omitempty"` // activities are i.e. view, write, modify, delete // contains filtered or unexported fields }
Permission effectively controls access to specific resources for any account.
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetActivities ¶
func (x *Permission) GetActivities() []string
func (*Permission) GetResource ¶
func (x *Permission) GetResource() string
func (*Permission) GetResourceKind ¶
func (x *Permission) GetResourceKind() string
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
type Project ¶
type Project 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"` LogoResourceId string `protobuf:"bytes,3,opt,name=logo_resource_id,json=logoResourceId,proto3" json:"logo_resource_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` CreatorId string `protobuf:"bytes,5,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` OrgId string `protobuf:"bytes,6,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` Org *Org `protobuf:"bytes,7,opt,name=org,proto3" json:"org,omitempty"` Logo []byte `protobuf:"bytes,8,opt,name=logo,proto3" json:"logo,omitempty"` // contains filtered or unexported fields }
resource: Project
func (*Project) GetCreatedAt ¶
func (x *Project) GetCreatedAt() *timestamppb.Timestamp
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type ProjectRequest ¶
type ProjectRequest struct { // @inject_tag: fake:"{nameseq:sys_account_project,false,none,false,false}" yaml:"name,omitempty" Name string `` /* 143-byte string literal not displayed */ // @inject_tag: fake:"skip" yaml:"logo_filepath,omitempty" LogoFilepath string `` /* 140-byte string literal not displayed */ // @inject_tag: fake:"{randomstring:[ops@amplify-cms.org, dev@amplify-cms.org]}" yaml:"creator_id,omitempty" CreatorId string `` /* 181-byte string literal not displayed */ // @inject_tag: fake:"skip" yaml:"org_id,omitempty" OrgId string `protobuf:"bytes,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty" fake:"skip" yaml:"org_id,omitempty"` // @inject_tag: fake:"{nameseq:sys_account_org,true,sys_account_org,false,false}" yaml:"org_name,omitempty" OrgName string `` /* 174-byte string literal not displayed */ // @inject_tag: fake:"{logogen:128}" yaml:"logo_upload_bytes,omitempty" LogoUploadBytes string `` /* 164-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProjectRequest) Descriptor
deprecated
func (*ProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProjectRequest.ProtoReflect.Descriptor instead.
func (*ProjectRequest) GetCreatorId ¶
func (x *ProjectRequest) GetCreatorId() string
func (*ProjectRequest) GetLogoFilepath ¶
func (x *ProjectRequest) GetLogoFilepath() string
func (*ProjectRequest) GetLogoUploadBytes ¶
func (x *ProjectRequest) GetLogoUploadBytes() string
func (*ProjectRequest) GetName ¶
func (x *ProjectRequest) GetName() string
func (*ProjectRequest) GetOrgId ¶
func (x *ProjectRequest) GetOrgId() string
func (*ProjectRequest) GetOrgName ¶
func (x *ProjectRequest) GetOrgName() string
func (*ProjectRequest) ProtoMessage ¶
func (*ProjectRequest) ProtoMessage()
func (*ProjectRequest) ProtoReflect ¶
func (x *ProjectRequest) ProtoReflect() protoreflect.Message
func (*ProjectRequest) Reset ¶
func (x *ProjectRequest) Reset()
func (*ProjectRequest) String ¶
func (x *ProjectRequest) String() string
type ProjectUpdateRequest ¶
type ProjectUpdateRequest 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"` LogoFilepath string `protobuf:"bytes,3,opt,name=logo_filepath,json=logoFilepath,proto3" json:"logo_filepath,omitempty"` LogoUploadBytes []byte `protobuf:"bytes,4,opt,name=logo_upload_bytes,json=logoUploadBytes,proto3" json:"logo_upload_bytes,omitempty"` // contains filtered or unexported fields }
func (*ProjectUpdateRequest) Descriptor
deprecated
func (*ProjectUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProjectUpdateRequest.ProtoReflect.Descriptor instead.
func (*ProjectUpdateRequest) GetId ¶
func (x *ProjectUpdateRequest) GetId() string
func (*ProjectUpdateRequest) GetLogoFilepath ¶
func (x *ProjectUpdateRequest) GetLogoFilepath() string
func (*ProjectUpdateRequest) GetLogoUploadBytes ¶
func (x *ProjectUpdateRequest) GetLogoUploadBytes() []byte
func (*ProjectUpdateRequest) GetName ¶
func (x *ProjectUpdateRequest) GetName() string
func (*ProjectUpdateRequest) ProtoMessage ¶
func (*ProjectUpdateRequest) ProtoMessage()
func (*ProjectUpdateRequest) ProtoReflect ¶
func (x *ProjectUpdateRequest) ProtoReflect() protoreflect.Message
func (*ProjectUpdateRequest) Reset ¶
func (x *ProjectUpdateRequest) Reset()
func (*ProjectUpdateRequest) String ¶
func (x *ProjectUpdateRequest) String() string
type RefreshAccessTokenRequest ¶
type RefreshAccessTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshAccessTokenRequest) Descriptor
deprecated
func (*RefreshAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshAccessTokenRequest) GetRefreshToken ¶
func (x *RefreshAccessTokenRequest) GetRefreshToken() string
func (*RefreshAccessTokenRequest) ProtoMessage ¶
func (*RefreshAccessTokenRequest) ProtoMessage()
func (*RefreshAccessTokenRequest) ProtoReflect ¶
func (x *RefreshAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshAccessTokenRequest) Reset ¶
func (x *RefreshAccessTokenRequest) Reset()
func (*RefreshAccessTokenRequest) String ¶
func (x *RefreshAccessTokenRequest) String() string
type RefreshAccessTokenResponse ¶
type RefreshAccessTokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` ErrorReason *ErrorReason `protobuf:"bytes,2,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"` // contains filtered or unexported fields }
func (*RefreshAccessTokenResponse) Descriptor
deprecated
func (*RefreshAccessTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshAccessTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshAccessTokenResponse) GetAccessToken ¶
func (x *RefreshAccessTokenResponse) GetAccessToken() string
func (*RefreshAccessTokenResponse) GetErrorReason ¶
func (x *RefreshAccessTokenResponse) GetErrorReason() *ErrorReason
func (*RefreshAccessTokenResponse) ProtoMessage ¶
func (*RefreshAccessTokenResponse) ProtoMessage()
func (*RefreshAccessTokenResponse) ProtoReflect ¶
func (x *RefreshAccessTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshAccessTokenResponse) Reset ¶
func (x *RefreshAccessTokenResponse) Reset()
func (*RefreshAccessTokenResponse) String ¶
func (x *RefreshAccessTokenResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { // @inject_tag: fake:"{mailseq:user,false,none,false}" yaml:"email" Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty" fake:"{mailseq:user,false,none,false}" yaml:"email"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` PasswordConfirm string `protobuf:"bytes,3,opt,name=password_confirm,json=passwordConfirm,proto3" json:"password_confirm,omitempty"` // UserRoles user_role = 4; // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetPasswordConfirm ¶
func (x *RegisterRequest) GetPasswordConfirm() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` SuccessMsg string `protobuf:"bytes,2,opt,name=success_msg,json=successMsg,proto3" json:"success_msg,omitempty"` ErrorReason *ErrorReason `protobuf:"bytes,3,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"` VerifyToken string `protobuf:"bytes,4,opt,name=verify_token,json=verifyToken,proto3" json:"verify_token,omitempty"` TempUserId string `protobuf:"bytes,5,opt,name=temp_user_id,json=tempUserId,proto3" json:"temp_user_id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetErrorReason ¶
func (x *RegisterResponse) GetErrorReason() *ErrorReason
func (*RegisterResponse) GetSuccess ¶
func (x *RegisterResponse) GetSuccess() bool
func (*RegisterResponse) GetSuccessMsg ¶
func (x *RegisterResponse) GetSuccessMsg() string
func (*RegisterResponse) GetTempUserId ¶
func (x *RegisterResponse) GetTempUserId() string
func (*RegisterResponse) GetVerifyToken ¶
func (x *RegisterResponse) GetVerifyToken() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` PasswordConfirm string `protobuf:"bytes,3,opt,name=password_confirm,json=passwordConfirm,proto3" json:"password_confirm,omitempty"` VerifyToken string `protobuf:"bytes,4,opt,name=verify_token,json=verifyToken,proto3" json:"verify_token,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetEmail ¶
func (x *ResetPasswordRequest) GetEmail() string
func (*ResetPasswordRequest) GetPassword ¶
func (x *ResetPasswordRequest) GetPassword() string
func (*ResetPasswordRequest) GetPasswordConfirm ¶
func (x *ResetPasswordRequest) GetPasswordConfirm() string
func (*ResetPasswordRequest) GetVerifyToken ¶
func (x *ResetPasswordRequest) GetVerifyToken() string
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
type ResetPasswordResponse ¶
type ResetPasswordResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` SuccessMsg string `protobuf:"bytes,2,opt,name=success_msg,json=successMsg,proto3" json:"success_msg,omitempty"` ErrorReason *ErrorReason `protobuf:"bytes,3,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"` ResetPasswordRequestedAt *timestamppb.Timestamp `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ResetPasswordResponse) Descriptor
deprecated
func (*ResetPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
func (*ResetPasswordResponse) GetErrorReason ¶
func (x *ResetPasswordResponse) GetErrorReason() *ErrorReason
func (*ResetPasswordResponse) GetResetPasswordRequestedAt ¶
func (x *ResetPasswordResponse) GetResetPasswordRequestedAt() *timestamppb.Timestamp
func (*ResetPasswordResponse) GetSuccess ¶
func (x *ResetPasswordResponse) GetSuccess() bool
func (*ResetPasswordResponse) GetSuccessMsg ¶
func (x *ResetPasswordResponse) GetSuccessMsg() string
func (*ResetPasswordResponse) ProtoMessage ¶
func (*ResetPasswordResponse) ProtoMessage()
func (*ResetPasswordResponse) ProtoReflect ¶
func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message
func (*ResetPasswordResponse) Reset ¶
func (x *ResetPasswordResponse) Reset()
func (*ResetPasswordResponse) String ¶
func (x *ResetPasswordResponse) String() string
type Roles ¶
type Roles int32
UserRoles for now
func (Roles) Descriptor ¶
func (Roles) Descriptor() protoreflect.EnumDescriptor
func (Roles) Number ¶
func (x Roles) Number() protoreflect.EnumNumber
func (Roles) Type ¶
func (Roles) Type() protoreflect.EnumType
type SearchAccountsRequest ¶
type SearchAccountsRequest struct { // query can be either email, UserDefinedFields fields Query []byte `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` SearchParams *ListAccountsRequest `protobuf:"bytes,2,opt,name=search_params,json=searchParams,proto3" json:"search_params,omitempty"` // contains filtered or unexported fields }
func (*SearchAccountsRequest) Descriptor
deprecated
func (*SearchAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchAccountsRequest.ProtoReflect.Descriptor instead.
func (*SearchAccountsRequest) GetQuery ¶
func (x *SearchAccountsRequest) GetQuery() []byte
func (*SearchAccountsRequest) GetSearchParams ¶
func (x *SearchAccountsRequest) GetSearchParams() *ListAccountsRequest
func (*SearchAccountsRequest) ProtoMessage ¶
func (*SearchAccountsRequest) ProtoMessage()
func (*SearchAccountsRequest) ProtoReflect ¶
func (x *SearchAccountsRequest) ProtoReflect() protoreflect.Message
func (*SearchAccountsRequest) Reset ¶
func (x *SearchAccountsRequest) Reset()
func (*SearchAccountsRequest) String ¶
func (x *SearchAccountsRequest) String() string
type SearchAccountsResponse ¶
type SearchAccountsResponse struct { SearchResponse *ListAccountsResponse `protobuf:"bytes,1,opt,name=search_response,json=searchResponse,proto3" json:"search_response,omitempty"` // contains filtered or unexported fields }
func (*SearchAccountsResponse) Descriptor
deprecated
func (*SearchAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchAccountsResponse.ProtoReflect.Descriptor instead.
func (*SearchAccountsResponse) GetSearchResponse ¶
func (x *SearchAccountsResponse) GetSearchResponse() *ListAccountsResponse
func (*SearchAccountsResponse) ProtoMessage ¶
func (*SearchAccountsResponse) ProtoMessage()
func (*SearchAccountsResponse) ProtoReflect ¶
func (x *SearchAccountsResponse) ProtoReflect() protoreflect.Message
func (*SearchAccountsResponse) Reset ¶
func (x *SearchAccountsResponse) Reset()
func (*SearchAccountsResponse) String ¶
func (x *SearchAccountsResponse) String() string
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServiceServer) AssignAccountToRole ¶
func (UnimplementedAccountServiceServer) AssignAccountToRole(context.Context, *AssignAccountToRoleRequest) (*Account, error)
func (UnimplementedAccountServiceServer) DeleteAccount ¶
func (UnimplementedAccountServiceServer) DeleteAccount(context.Context, *DisableAccountRequest) (*emptypb.Empty, error)
func (UnimplementedAccountServiceServer) DisableAccount ¶
func (UnimplementedAccountServiceServer) DisableAccount(context.Context, *DisableAccountRequest) (*Account, error)
func (UnimplementedAccountServiceServer) GetAccount ¶
func (UnimplementedAccountServiceServer) ListAccounts ¶
func (UnimplementedAccountServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
func (UnimplementedAccountServiceServer) NewAccount ¶
func (UnimplementedAccountServiceServer) NewAccount(context.Context, *AccountNewRequest) (*Account, error)
func (UnimplementedAccountServiceServer) SearchAccounts ¶
func (UnimplementedAccountServiceServer) SearchAccounts(context.Context, *SearchAccountsRequest) (*SearchAccountsResponse, error)
func (UnimplementedAccountServiceServer) UpdateAccount ¶
func (UnimplementedAccountServiceServer) UpdateAccount(context.Context, *AccountUpdateRequest) (*Account, error)
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) ForgotPassword ¶
func (UnimplementedAuthServiceServer) ForgotPassword(context.Context, *ForgotPasswordRequest) (*ForgotPasswordResponse, error)
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) RefreshAccessToken ¶
func (UnimplementedAuthServiceServer) RefreshAccessToken(context.Context, *RefreshAccessTokenRequest) (*RefreshAccessTokenResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServiceServer) ResetPassword ¶
func (UnimplementedAuthServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
func (UnimplementedAuthServiceServer) VerifyAccount ¶
func (UnimplementedAuthServiceServer) VerifyAccount(context.Context, *VerifyAccountRequest) (*emptypb.Empty, error)
type UnimplementedOrgProjServiceServer ¶
type UnimplementedOrgProjServiceServer struct { }
UnimplementedOrgProjServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOrgProjServiceServer) DeleteOrg ¶
func (UnimplementedOrgProjServiceServer) DeleteProject ¶
func (UnimplementedOrgProjServiceServer) GetOrg ¶
func (UnimplementedOrgProjServiceServer) GetProject ¶
func (UnimplementedOrgProjServiceServer) ListNonSubscribedOrgs ¶
func (UnimplementedOrgProjServiceServer) ListNonSubscribedOrgs(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedOrgProjServiceServer) ListOrg ¶
func (UnimplementedOrgProjServiceServer) ListOrg(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedOrgProjServiceServer) ListProject ¶
func (UnimplementedOrgProjServiceServer) ListProject(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedOrgProjServiceServer) NewOrg ¶
func (UnimplementedOrgProjServiceServer) NewOrg(context.Context, *OrgRequest) (*Org, error)
func (UnimplementedOrgProjServiceServer) NewProject ¶
func (UnimplementedOrgProjServiceServer) NewProject(context.Context, *ProjectRequest) (*Project, error)
func (UnimplementedOrgProjServiceServer) UpdateOrg ¶
func (UnimplementedOrgProjServiceServer) UpdateOrg(context.Context, *OrgUpdateRequest) (*Org, error)
func (UnimplementedOrgProjServiceServer) UpdateProject ¶
func (UnimplementedOrgProjServiceServer) UpdateProject(context.Context, *ProjectUpdateRequest) (*Project, error)
type UnsafeAccountServiceServer ¶
type UnsafeAccountServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeOrgProjServiceServer ¶
type UnsafeOrgProjServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOrgProjServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrgProjServiceServer will result in compilation errors.
type UserDefinedFields ¶
type UserDefinedFields struct { Fields []byte `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*UserDefinedFields) Descriptor
deprecated
func (*UserDefinedFields) Descriptor() ([]byte, []int)
Deprecated: Use UserDefinedFields.ProtoReflect.Descriptor instead.
func (*UserDefinedFields) GetFields ¶
func (x *UserDefinedFields) GetFields() []byte
func (*UserDefinedFields) ProtoMessage ¶
func (*UserDefinedFields) ProtoMessage()
func (*UserDefinedFields) ProtoReflect ¶
func (x *UserDefinedFields) ProtoReflect() protoreflect.Message
func (*UserDefinedFields) Reset ¶
func (x *UserDefinedFields) Reset()
func (*UserDefinedFields) String ¶
func (x *UserDefinedFields) String() string
type UserRoles ¶
type UserRoles struct { // @inject_tag: fake:"{number:1,3}" yaml:"role" Role Roles `` /* 129-byte string literal not displayed */ ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
UserRole as a message is super simple and probably not the very best it defines the role as an enum of Roles alongside either None (for guest) or All ( superadmin) or specific project by its id (Project admin) or specific org by its id (Org admin)
func (*UserRoles) ProtoReflect ¶
func (x *UserRoles) ProtoReflect() protoreflect.Message
type VerifyAccountRequest ¶
type VerifyAccountRequest struct { VerifyToken string `protobuf:"bytes,1,opt,name=verify_token,json=verifyToken,proto3" json:"verify_token,omitempty"` AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*VerifyAccountRequest) Descriptor
deprecated
func (*VerifyAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyAccountRequest.ProtoReflect.Descriptor instead.
func (*VerifyAccountRequest) GetAccountId ¶
func (x *VerifyAccountRequest) GetAccountId() string
func (*VerifyAccountRequest) GetVerifyToken ¶
func (x *VerifyAccountRequest) GetVerifyToken() string
func (*VerifyAccountRequest) ProtoMessage ¶
func (*VerifyAccountRequest) ProtoMessage()
func (*VerifyAccountRequest) ProtoReflect ¶
func (x *VerifyAccountRequest) ProtoReflect() protoreflect.Message
func (*VerifyAccountRequest) Reset ¶
func (x *VerifyAccountRequest) Reset()
func (*VerifyAccountRequest) String ¶
func (x *VerifyAccountRequest) String() string