Documentation ¶
Overview ¶
Package charonrpc is a generated protocol buffer package.
It is generated from these files:
auth.proto group.proto permission.proto user.proto
It has these top-level messages:
LoginRequest LogoutRequest IsAuthenticatedRequest IsGrantedRequest BelongsToRequest ActorResponse Group CreateGroupRequest CreateGroupResponse GetGroupRequest GetGroupResponse ListGroupsRequest ListGroupsResponse DeleteGroupRequest ModifyGroupRequest ModifyGroupResponse SetGroupPermissionsRequest SetGroupPermissionsResponse ListGroupPermissionsRequest ListGroupPermissionsResponse RegisterPermissionsRequest RegisterPermissionsResponse ListPermissionsRequest ListPermissionsResponse GetPermissionRequest GetPermissionResponse User CreateUserRequest CreateUserResponse GetUserRequest GetUserResponse ListUsersRequest ListUsersResponse DeleteUserRequest ModifyUserRequest ModifyUserResponse ListUserPermissionsRequest ListUserPermissionsResponse SetUserPermissionsRequest SetUserPermissionsResponse ListUserGroupsRequest ListUserGroupsResponse SetUserGroupsRequest SetUserGroupsResponse
Index ¶
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- func RegisterGroupManagerServer(s *grpc.Server, srv GroupManagerServer)
- func RegisterPermissionManagerServer(s *grpc.Server, srv PermissionManagerServer)
- func RegisterUserManagerServer(s *grpc.Server, srv UserManagerServer)
- type ActorResponse
- func (*ActorResponse) Descriptor() ([]byte, []int)
- func (m *ActorResponse) GetFirstName() string
- func (m *ActorResponse) GetId() int64
- func (m *ActorResponse) GetIsActive() bool
- func (m *ActorResponse) GetIsConfirmed() bool
- func (m *ActorResponse) GetIsStaff() bool
- func (m *ActorResponse) GetIsStuff() bool
- func (m *ActorResponse) GetIsSuperuser() bool
- func (m *ActorResponse) GetLastName() string
- func (m *ActorResponse) GetPermissions() []string
- func (m *ActorResponse) GetUsername() string
- func (*ActorResponse) ProtoMessage()
- func (m *ActorResponse) Reset()
- func (m *ActorResponse) String() string
- type AuthClient
- type AuthServer
- type BelongsToRequest
- type CreateGroupRequest
- type CreateGroupResponse
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)
- func (m *CreateUserRequest) GetFirstName() string
- func (m *CreateUserRequest) GetIsActive() *ntypes.Bool
- func (m *CreateUserRequest) GetIsConfirmed() *ntypes.Bool
- func (m *CreateUserRequest) GetIsStaff() *ntypes.Bool
- func (m *CreateUserRequest) GetIsSuperuser() *ntypes.Bool
- func (m *CreateUserRequest) GetLastName() string
- func (m *CreateUserRequest) GetPlainPassword() string
- func (m *CreateUserRequest) GetSecurePassword() []byte
- func (m *CreateUserRequest) GetUsername() string
- func (*CreateUserRequest) ProtoMessage()
- func (m *CreateUserRequest) Reset()
- func (m *CreateUserRequest) String() string
- type CreateUserResponse
- type DeleteGroupRequest
- type DeleteUserRequest
- type GetGroupRequest
- type GetGroupResponse
- type GetPermissionRequest
- type GetPermissionResponse
- type GetUserRequest
- type GetUserResponse
- type Group
- func (*Group) Descriptor() ([]byte, []int)
- func (m *Group) GetCreatedAt() *google_protobuf2.Timestamp
- func (m *Group) GetCreatedBy() *ntypes.Int64
- func (m *Group) GetDescription() string
- func (m *Group) GetId() int64
- func (m *Group) GetName() string
- func (m *Group) GetUpdatedAt() *google_protobuf2.Timestamp
- func (m *Group) GetUpdatedBy() *ntypes.Int64
- func (*Group) ProtoMessage()
- func (m *Group) Reset()
- func (m *Group) String() string
- type GroupManagerClient
- type GroupManagerServer
- type IsAuthenticatedRequest
- type IsGrantedRequest
- type ListGroupPermissionsRequest
- type ListGroupPermissionsResponse
- type ListGroupsRequest
- type ListGroupsResponse
- type ListPermissionsRequest
- func (*ListPermissionsRequest) Descriptor() ([]byte, []int)
- func (m *ListPermissionsRequest) GetAction() *qtypes.String
- func (m *ListPermissionsRequest) GetCreatedAt() *qtypes.Timestamp
- func (m *ListPermissionsRequest) GetCreatedBy() *qtypes.Int64
- func (m *ListPermissionsRequest) GetLimit() *ntypes.Int64
- func (m *ListPermissionsRequest) GetModule() *qtypes.String
- func (m *ListPermissionsRequest) GetOffset() *ntypes.Int64
- func (m *ListPermissionsRequest) GetSort() map[string]bool
- func (m *ListPermissionsRequest) GetSubsystem() *qtypes.String
- func (*ListPermissionsRequest) ProtoMessage()
- func (m *ListPermissionsRequest) Reset()
- func (m *ListPermissionsRequest) String() string
- type ListPermissionsResponse
- type ListUserGroupsRequest
- type ListUserGroupsResponse
- type ListUserPermissionsRequest
- type ListUserPermissionsResponse
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)
- func (m *ListUsersRequest) GetCreatedBy() *qtypes.Int64
- func (m *ListUsersRequest) GetIsStaff() *ntypes.Bool
- func (m *ListUsersRequest) GetIsSuperuser() *ntypes.Bool
- func (m *ListUsersRequest) GetLimit() *ntypes.Int64
- func (m *ListUsersRequest) GetOffset() *ntypes.Int64
- func (m *ListUsersRequest) GetSort() map[string]bool
- func (*ListUsersRequest) ProtoMessage()
- func (m *ListUsersRequest) Reset()
- func (m *ListUsersRequest) String() string
- type ListUsersResponse
- type LoginRequest
- type LogoutRequest
- type ModifyGroupRequest
- func (*ModifyGroupRequest) Descriptor() ([]byte, []int)
- func (m *ModifyGroupRequest) GetDescription() *ntypes.String
- func (m *ModifyGroupRequest) GetId() int64
- func (m *ModifyGroupRequest) GetName() *ntypes.String
- func (*ModifyGroupRequest) ProtoMessage()
- func (m *ModifyGroupRequest) Reset()
- func (m *ModifyGroupRequest) String() string
- type ModifyGroupResponse
- type ModifyUserRequest
- func (*ModifyUserRequest) Descriptor() ([]byte, []int)
- func (m *ModifyUserRequest) GetFirstName() *ntypes.String
- func (m *ModifyUserRequest) GetId() int64
- func (m *ModifyUserRequest) GetIsActive() *ntypes.Bool
- func (m *ModifyUserRequest) GetIsConfirmed() *ntypes.Bool
- func (m *ModifyUserRequest) GetIsStaff() *ntypes.Bool
- func (m *ModifyUserRequest) GetIsSuperuser() *ntypes.Bool
- func (m *ModifyUserRequest) GetLastName() *ntypes.String
- func (m *ModifyUserRequest) GetPlainPassword() *ntypes.String
- func (m *ModifyUserRequest) GetSecurePassword() []byte
- func (m *ModifyUserRequest) GetUsername() *ntypes.String
- func (*ModifyUserRequest) ProtoMessage()
- func (m *ModifyUserRequest) Reset()
- func (m *ModifyUserRequest) String() string
- type ModifyUserResponse
- type PermissionManagerClient
- type PermissionManagerServer
- type RegisterPermissionsRequest
- type RegisterPermissionsResponse
- func (*RegisterPermissionsResponse) Descriptor() ([]byte, []int)
- func (m *RegisterPermissionsResponse) GetCreated() int64
- func (m *RegisterPermissionsResponse) GetRemoved() int64
- func (m *RegisterPermissionsResponse) GetUntouched() int64
- func (*RegisterPermissionsResponse) ProtoMessage()
- func (m *RegisterPermissionsResponse) Reset()
- func (m *RegisterPermissionsResponse) String() string
- type SetGroupPermissionsRequest
- func (*SetGroupPermissionsRequest) Descriptor() ([]byte, []int)
- func (m *SetGroupPermissionsRequest) GetForce() bool
- func (m *SetGroupPermissionsRequest) GetGroupId() int64
- func (m *SetGroupPermissionsRequest) GetPermissions() []string
- func (*SetGroupPermissionsRequest) ProtoMessage()
- func (m *SetGroupPermissionsRequest) Reset()
- func (m *SetGroupPermissionsRequest) String() string
- type SetGroupPermissionsResponse
- func (*SetGroupPermissionsResponse) Descriptor() ([]byte, []int)
- func (m *SetGroupPermissionsResponse) GetCreated() int64
- func (m *SetGroupPermissionsResponse) GetRemoved() int64
- func (m *SetGroupPermissionsResponse) GetUntouched() int64
- func (*SetGroupPermissionsResponse) ProtoMessage()
- func (m *SetGroupPermissionsResponse) Reset()
- func (m *SetGroupPermissionsResponse) String() string
- type SetUserGroupsRequest
- type SetUserGroupsResponse
- func (*SetUserGroupsResponse) Descriptor() ([]byte, []int)
- func (m *SetUserGroupsResponse) GetCreated() int64
- func (m *SetUserGroupsResponse) GetRemoved() int64
- func (m *SetUserGroupsResponse) GetUntouched() int64
- func (*SetUserGroupsResponse) ProtoMessage()
- func (m *SetUserGroupsResponse) Reset()
- func (m *SetUserGroupsResponse) String() string
- type SetUserPermissionsRequest
- func (*SetUserPermissionsRequest) Descriptor() ([]byte, []int)
- func (m *SetUserPermissionsRequest) GetForce() bool
- func (m *SetUserPermissionsRequest) GetPermissions() []string
- func (m *SetUserPermissionsRequest) GetUserId() int64
- func (*SetUserPermissionsRequest) ProtoMessage()
- func (m *SetUserPermissionsRequest) Reset()
- func (m *SetUserPermissionsRequest) String() string
- type SetUserPermissionsResponse
- func (*SetUserPermissionsResponse) Descriptor() ([]byte, []int)
- func (m *SetUserPermissionsResponse) GetCreated() int64
- func (m *SetUserPermissionsResponse) GetRemoved() int64
- func (m *SetUserPermissionsResponse) GetUntouched() int64
- func (*SetUserPermissionsResponse) ProtoMessage()
- func (m *SetUserPermissionsResponse) Reset()
- func (m *SetUserPermissionsResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreatedAt() *google_protobuf2.Timestamp
- func (m *User) GetCreatedBy() *ntypes.Int64
- func (m *User) GetFirstName() string
- func (m *User) GetId() int64
- func (m *User) GetIsActive() bool
- func (m *User) GetIsConfirmed() bool
- func (m *User) GetIsStaff() bool
- func (m *User) GetIsSuperuser() bool
- func (m *User) GetLastName() string
- func (m *User) GetUpdatedAt() *google_protobuf2.Timestamp
- func (m *User) GetUpdatedBy() *ntypes.Int64
- func (m *User) GetUsername() string
- func (u *User) Name() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- type UserManagerClient
- type UserManagerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterGroupManagerServer ¶
func RegisterGroupManagerServer(s *grpc.Server, srv GroupManagerServer)
func RegisterPermissionManagerServer ¶
func RegisterPermissionManagerServer(s *grpc.Server, srv PermissionManagerServer)
func RegisterUserManagerServer ¶
func RegisterUserManagerServer(s *grpc.Server, srv UserManagerServer)
Types ¶
type ActorResponse ¶
type ActorResponse struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName" json:"first_name,omitempty"` LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName" json:"last_name,omitempty"` Permissions []string `protobuf:"bytes,5,rep,name=permissions" json:"permissions,omitempty"` IsSuperuser bool `protobuf:"varint,6,opt,name=is_superuser,json=isSuperuser" json:"is_superuser,omitempty"` IsActive bool `protobuf:"varint,7,opt,name=is_active,json=isActive" json:"is_active,omitempty"` IsStuff bool `protobuf:"varint,8,opt,name=is_stuff,json=isStuff" json:"is_stuff,omitempty"` IsConfirmed bool `protobuf:"varint,9,opt,name=is_confirmed,json=isConfirmed" json:"is_confirmed,omitempty"` IsStaff bool `protobuf:"varint,10,opt,name=is_staff,json=isStaff" json:"is_staff,omitempty"` }
func (*ActorResponse) Descriptor ¶
func (*ActorResponse) Descriptor() ([]byte, []int)
func (*ActorResponse) GetFirstName ¶ added in v0.9.15
func (m *ActorResponse) GetFirstName() string
func (*ActorResponse) GetId ¶ added in v0.9.15
func (m *ActorResponse) GetId() int64
func (*ActorResponse) GetIsActive ¶ added in v0.9.15
func (m *ActorResponse) GetIsActive() bool
func (*ActorResponse) GetIsConfirmed ¶ added in v0.9.15
func (m *ActorResponse) GetIsConfirmed() bool
func (*ActorResponse) GetIsStaff ¶ added in v0.16.1
func (m *ActorResponse) GetIsStaff() bool
func (*ActorResponse) GetIsStuff ¶ added in v0.9.15
func (m *ActorResponse) GetIsStuff() bool
func (*ActorResponse) GetIsSuperuser ¶ added in v0.9.15
func (m *ActorResponse) GetIsSuperuser() bool
func (*ActorResponse) GetLastName ¶ added in v0.9.15
func (m *ActorResponse) GetLastName() string
func (*ActorResponse) GetPermissions ¶ added in v0.9.15
func (m *ActorResponse) GetPermissions() []string
func (*ActorResponse) GetUsername ¶ added in v0.9.15
func (m *ActorResponse) GetUsername() string
func (*ActorResponse) ProtoMessage ¶
func (*ActorResponse) ProtoMessage()
func (*ActorResponse) Reset ¶
func (m *ActorResponse) Reset()
func (*ActorResponse) String ¶
func (m *ActorResponse) String() string
type AuthClient ¶
type AuthClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*google_protobuf1.StringValue, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) IsAuthenticated(ctx context.Context, in *IsAuthenticatedRequest, opts ...grpc.CallOption) (*google_protobuf1.BoolValue, error) Actor(ctx context.Context, in *google_protobuf1.StringValue, opts ...grpc.CallOption) (*ActorResponse, error) IsGranted(ctx context.Context, in *IsGrantedRequest, opts ...grpc.CallOption) (*google_protobuf1.BoolValue, error) BelongsTo(ctx context.Context, in *BelongsToRequest, opts ...grpc.CallOption) (*google_protobuf1.BoolValue, error) }
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthServer ¶
type AuthServer interface { Login(context.Context, *LoginRequest) (*google_protobuf1.StringValue, error) Logout(context.Context, *LogoutRequest) (*google_protobuf.Empty, error) IsAuthenticated(context.Context, *IsAuthenticatedRequest) (*google_protobuf1.BoolValue, error) Actor(context.Context, *google_protobuf1.StringValue) (*ActorResponse, error) IsGranted(context.Context, *IsGrantedRequest) (*google_protobuf1.BoolValue, error) BelongsTo(context.Context, *BelongsToRequest) (*google_protobuf1.BoolValue, error) }
type BelongsToRequest ¶
type BelongsToRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` GroupId int64 `protobuf:"varint,2,opt,name=group_id,json=groupId" json:"group_id,omitempty"` }
func (*BelongsToRequest) Descriptor ¶
func (*BelongsToRequest) Descriptor() ([]byte, []int)
func (*BelongsToRequest) GetGroupId ¶ added in v0.9.15
func (m *BelongsToRequest) GetGroupId() int64
func (*BelongsToRequest) GetUserId ¶ added in v0.9.15
func (m *BelongsToRequest) GetUserId() int64
func (*BelongsToRequest) ProtoMessage ¶
func (*BelongsToRequest) ProtoMessage()
func (*BelongsToRequest) Reset ¶
func (m *BelongsToRequest) Reset()
func (*BelongsToRequest) String ¶
func (m *BelongsToRequest) String() string
type CreateGroupRequest ¶
type CreateGroupRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Description *ntypes.String `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` }
func (*CreateGroupRequest) Descriptor ¶
func (*CreateGroupRequest) Descriptor() ([]byte, []int)
func (*CreateGroupRequest) GetDescription ¶
func (m *CreateGroupRequest) GetDescription() *ntypes.String
func (*CreateGroupRequest) GetName ¶ added in v0.9.15
func (m *CreateGroupRequest) GetName() string
func (*CreateGroupRequest) ProtoMessage ¶
func (*CreateGroupRequest) ProtoMessage()
func (*CreateGroupRequest) Reset ¶
func (m *CreateGroupRequest) Reset()
func (*CreateGroupRequest) String ¶
func (m *CreateGroupRequest) String() string
type CreateGroupResponse ¶
type CreateGroupResponse struct {
Group *Group `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
}
func (*CreateGroupResponse) Descriptor ¶
func (*CreateGroupResponse) Descriptor() ([]byte, []int)
func (*CreateGroupResponse) GetGroup ¶
func (m *CreateGroupResponse) GetGroup() *Group
func (*CreateGroupResponse) ProtoMessage ¶
func (*CreateGroupResponse) ProtoMessage()
func (*CreateGroupResponse) Reset ¶
func (m *CreateGroupResponse) Reset()
func (*CreateGroupResponse) String ¶
func (m *CreateGroupResponse) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` PlainPassword string `protobuf:"bytes,2,opt,name=plain_password,json=plainPassword" json:"plain_password,omitempty"` SecurePassword []byte `protobuf:"bytes,3,opt,name=secure_password,json=securePassword,proto3" json:"secure_password,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName" json:"first_name,omitempty"` LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName" json:"last_name,omitempty"` IsSuperuser *ntypes.Bool `protobuf:"bytes,6,opt,name=is_superuser,json=isSuperuser" json:"is_superuser,omitempty"` IsActive *ntypes.Bool `protobuf:"bytes,7,opt,name=is_active,json=isActive" json:"is_active,omitempty"` IsStaff *ntypes.Bool `protobuf:"bytes,8,opt,name=is_staff,json=isStaff" json:"is_staff,omitempty"` IsConfirmed *ntypes.Bool `protobuf:"bytes,9,opt,name=is_confirmed,json=isConfirmed" json:"is_confirmed,omitempty"` }
func (*CreateUserRequest) Descriptor ¶
func (*CreateUserRequest) Descriptor() ([]byte, []int)
func (*CreateUserRequest) GetFirstName ¶ added in v0.9.15
func (m *CreateUserRequest) GetFirstName() string
func (*CreateUserRequest) GetIsActive ¶
func (m *CreateUserRequest) GetIsActive() *ntypes.Bool
func (*CreateUserRequest) GetIsConfirmed ¶
func (m *CreateUserRequest) GetIsConfirmed() *ntypes.Bool
func (*CreateUserRequest) GetIsStaff ¶
func (m *CreateUserRequest) GetIsStaff() *ntypes.Bool
func (*CreateUserRequest) GetIsSuperuser ¶
func (m *CreateUserRequest) GetIsSuperuser() *ntypes.Bool
func (*CreateUserRequest) GetLastName ¶ added in v0.9.15
func (m *CreateUserRequest) GetLastName() string
func (*CreateUserRequest) GetPlainPassword ¶ added in v0.9.15
func (m *CreateUserRequest) GetPlainPassword() string
func (*CreateUserRequest) GetSecurePassword ¶ added in v0.9.15
func (m *CreateUserRequest) GetSecurePassword() []byte
func (*CreateUserRequest) GetUsername ¶ added in v0.9.15
func (m *CreateUserRequest) GetUsername() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) Reset ¶
func (m *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (m *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}
func (*CreateUserResponse) Descriptor ¶
func (*CreateUserResponse) Descriptor() ([]byte, []int)
func (*CreateUserResponse) GetUser ¶
func (m *CreateUserResponse) GetUser() *User
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) Reset ¶
func (m *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (m *CreateUserResponse) String() string
type DeleteGroupRequest ¶
type DeleteGroupRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*DeleteGroupRequest) Descriptor ¶
func (*DeleteGroupRequest) Descriptor() ([]byte, []int)
func (*DeleteGroupRequest) GetId ¶ added in v0.9.15
func (m *DeleteGroupRequest) GetId() int64
func (*DeleteGroupRequest) ProtoMessage ¶
func (*DeleteGroupRequest) ProtoMessage()
func (*DeleteGroupRequest) Reset ¶
func (m *DeleteGroupRequest) Reset()
func (*DeleteGroupRequest) String ¶
func (m *DeleteGroupRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*DeleteUserRequest) Descriptor ¶
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
func (*DeleteUserRequest) GetId ¶ added in v0.9.15
func (m *DeleteUserRequest) GetId() int64
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) Reset ¶
func (m *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (m *DeleteUserRequest) String() string
type GetGroupRequest ¶
type GetGroupRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*GetGroupRequest) Descriptor ¶
func (*GetGroupRequest) Descriptor() ([]byte, []int)
func (*GetGroupRequest) GetId ¶ added in v0.9.15
func (m *GetGroupRequest) GetId() int64
func (*GetGroupRequest) ProtoMessage ¶
func (*GetGroupRequest) ProtoMessage()
func (*GetGroupRequest) Reset ¶
func (m *GetGroupRequest) Reset()
func (*GetGroupRequest) String ¶
func (m *GetGroupRequest) String() string
type GetGroupResponse ¶
type GetGroupResponse struct {
Group *Group `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
}
func (*GetGroupResponse) Descriptor ¶
func (*GetGroupResponse) Descriptor() ([]byte, []int)
func (*GetGroupResponse) GetGroup ¶
func (m *GetGroupResponse) GetGroup() *Group
func (*GetGroupResponse) ProtoMessage ¶
func (*GetGroupResponse) ProtoMessage()
func (*GetGroupResponse) Reset ¶
func (m *GetGroupResponse) Reset()
func (*GetGroupResponse) String ¶
func (m *GetGroupResponse) String() string
type GetPermissionRequest ¶
type GetPermissionRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*GetPermissionRequest) Descriptor ¶
func (*GetPermissionRequest) Descriptor() ([]byte, []int)
func (*GetPermissionRequest) GetId ¶ added in v0.9.15
func (m *GetPermissionRequest) GetId() int64
func (*GetPermissionRequest) ProtoMessage ¶
func (*GetPermissionRequest) ProtoMessage()
func (*GetPermissionRequest) Reset ¶
func (m *GetPermissionRequest) Reset()
func (*GetPermissionRequest) String ¶
func (m *GetPermissionRequest) String() string
type GetPermissionResponse ¶
type GetPermissionResponse struct {
Permission string `protobuf:"bytes,1,opt,name=permission" json:"permission,omitempty"`
}
func (*GetPermissionResponse) Descriptor ¶
func (*GetPermissionResponse) Descriptor() ([]byte, []int)
func (*GetPermissionResponse) GetPermission ¶ added in v0.9.15
func (m *GetPermissionResponse) GetPermission() string
func (*GetPermissionResponse) ProtoMessage ¶
func (*GetPermissionResponse) ProtoMessage()
func (*GetPermissionResponse) Reset ¶
func (m *GetPermissionResponse) Reset()
func (*GetPermissionResponse) String ¶
func (m *GetPermissionResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetId ¶ added in v0.9.15
func (m *GetUserRequest) GetId() int64
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) Reset ¶
func (m *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (m *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}
func (*GetUserResponse) Descriptor ¶
func (*GetUserResponse) Descriptor() ([]byte, []int)
func (*GetUserResponse) GetUser ¶
func (m *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) Reset ¶
func (m *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (m *GetUserResponse) String() string
type Group ¶
type Group struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` CreatedAt *google_protobuf2.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` CreatedBy *ntypes.Int64 `protobuf:"bytes,5,opt,name=created_by,json=createdBy" json:"created_by,omitempty"` UpdatedAt *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` UpdatedBy *ntypes.Int64 `protobuf:"bytes,7,opt,name=updated_by,json=updatedBy" json:"updated_by,omitempty"` }
func (*Group) Descriptor ¶
func (*Group) GetCreatedAt ¶
func (m *Group) GetCreatedAt() *google_protobuf2.Timestamp
func (*Group) GetCreatedBy ¶
func (*Group) GetDescription ¶ added in v0.9.15
func (*Group) GetUpdatedAt ¶
func (m *Group) GetUpdatedAt() *google_protobuf2.Timestamp
func (*Group) GetUpdatedBy ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
type GroupManagerClient ¶
type GroupManagerClient interface { Create(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*CreateGroupResponse, error) Modify(ctx context.Context, in *ModifyGroupRequest, opts ...grpc.CallOption) (*ModifyGroupResponse, error) Get(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error) List(ctx context.Context, in *ListGroupsRequest, opts ...grpc.CallOption) (*ListGroupsResponse, error) Delete(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*google_protobuf1.BoolValue, error) ListPermissions(ctx context.Context, in *ListGroupPermissionsRequest, opts ...grpc.CallOption) (*ListGroupPermissionsResponse, error) SetPermissions(ctx context.Context, in *SetGroupPermissionsRequest, opts ...grpc.CallOption) (*SetGroupPermissionsResponse, error) }
func NewGroupManagerClient ¶
func NewGroupManagerClient(cc *grpc.ClientConn) GroupManagerClient
type GroupManagerServer ¶
type GroupManagerServer interface { Create(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error) Modify(context.Context, *ModifyGroupRequest) (*ModifyGroupResponse, error) Get(context.Context, *GetGroupRequest) (*GetGroupResponse, error) List(context.Context, *ListGroupsRequest) (*ListGroupsResponse, error) Delete(context.Context, *DeleteGroupRequest) (*google_protobuf1.BoolValue, error) ListPermissions(context.Context, *ListGroupPermissionsRequest) (*ListGroupPermissionsResponse, error) SetPermissions(context.Context, *SetGroupPermissionsRequest) (*SetGroupPermissionsResponse, error) }
type IsAuthenticatedRequest ¶
type IsAuthenticatedRequest struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
}
func (*IsAuthenticatedRequest) Descriptor ¶
func (*IsAuthenticatedRequest) Descriptor() ([]byte, []int)
func (*IsAuthenticatedRequest) GetAccessToken ¶ added in v0.9.15
func (m *IsAuthenticatedRequest) GetAccessToken() string
func (*IsAuthenticatedRequest) ProtoMessage ¶
func (*IsAuthenticatedRequest) ProtoMessage()
func (*IsAuthenticatedRequest) Reset ¶
func (m *IsAuthenticatedRequest) Reset()
func (*IsAuthenticatedRequest) String ¶
func (m *IsAuthenticatedRequest) String() string
type IsGrantedRequest ¶
type IsGrantedRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` Permission string `protobuf:"bytes,2,opt,name=permission" json:"permission,omitempty"` }
func (*IsGrantedRequest) Descriptor ¶
func (*IsGrantedRequest) Descriptor() ([]byte, []int)
func (*IsGrantedRequest) GetPermission ¶ added in v0.9.15
func (m *IsGrantedRequest) GetPermission() string
func (*IsGrantedRequest) GetUserId ¶ added in v0.9.15
func (m *IsGrantedRequest) GetUserId() int64
func (*IsGrantedRequest) ProtoMessage ¶
func (*IsGrantedRequest) ProtoMessage()
func (*IsGrantedRequest) Reset ¶
func (m *IsGrantedRequest) Reset()
func (*IsGrantedRequest) String ¶
func (m *IsGrantedRequest) String() string
type ListGroupPermissionsRequest ¶
type ListGroupPermissionsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*ListGroupPermissionsRequest) Descriptor ¶
func (*ListGroupPermissionsRequest) Descriptor() ([]byte, []int)
func (*ListGroupPermissionsRequest) GetId ¶ added in v0.9.15
func (m *ListGroupPermissionsRequest) GetId() int64
func (*ListGroupPermissionsRequest) ProtoMessage ¶
func (*ListGroupPermissionsRequest) ProtoMessage()
func (*ListGroupPermissionsRequest) Reset ¶
func (m *ListGroupPermissionsRequest) Reset()
func (*ListGroupPermissionsRequest) String ¶
func (m *ListGroupPermissionsRequest) String() string
type ListGroupPermissionsResponse ¶
type ListGroupPermissionsResponse struct {
Permissions []string `protobuf:"bytes,1,rep,name=permissions" json:"permissions,omitempty"`
}
func (*ListGroupPermissionsResponse) Descriptor ¶
func (*ListGroupPermissionsResponse) Descriptor() ([]byte, []int)
func (*ListGroupPermissionsResponse) GetPermissions ¶ added in v0.9.15
func (m *ListGroupPermissionsResponse) GetPermissions() []string
func (*ListGroupPermissionsResponse) ProtoMessage ¶
func (*ListGroupPermissionsResponse) ProtoMessage()
func (*ListGroupPermissionsResponse) Reset ¶
func (m *ListGroupPermissionsResponse) Reset()
func (*ListGroupPermissionsResponse) String ¶
func (m *ListGroupPermissionsResponse) String() string
type ListGroupsRequest ¶
type ListGroupsRequest struct { Offset *ntypes.Int64 `protobuf:"bytes,100,opt,name=offset" json:"offset,omitempty"` Limit *ntypes.Int64 `protobuf:"bytes,101,opt,name=limit" json:"limit,omitempty"` }
func (*ListGroupsRequest) Descriptor ¶
func (*ListGroupsRequest) Descriptor() ([]byte, []int)
func (*ListGroupsRequest) GetLimit ¶
func (m *ListGroupsRequest) GetLimit() *ntypes.Int64
func (*ListGroupsRequest) GetOffset ¶
func (m *ListGroupsRequest) GetOffset() *ntypes.Int64
func (*ListGroupsRequest) ProtoMessage ¶
func (*ListGroupsRequest) ProtoMessage()
func (*ListGroupsRequest) Reset ¶
func (m *ListGroupsRequest) Reset()
func (*ListGroupsRequest) String ¶
func (m *ListGroupsRequest) String() string
type ListGroupsResponse ¶
type ListGroupsResponse struct {
Groups []*Group `protobuf:"bytes,1,rep,name=groups" json:"groups,omitempty"`
}
func (*ListGroupsResponse) Descriptor ¶
func (*ListGroupsResponse) Descriptor() ([]byte, []int)
func (*ListGroupsResponse) GetGroups ¶
func (m *ListGroupsResponse) GetGroups() []*Group
func (*ListGroupsResponse) ProtoMessage ¶
func (*ListGroupsResponse) ProtoMessage()
func (*ListGroupsResponse) Reset ¶
func (m *ListGroupsResponse) Reset()
func (*ListGroupsResponse) String ¶
func (m *ListGroupsResponse) String() string
type ListPermissionsRequest ¶
type ListPermissionsRequest struct { Subsystem *qtypes.String `protobuf:"bytes,1,opt,name=subsystem" json:"subsystem,omitempty"` Module *qtypes.String `protobuf:"bytes,2,opt,name=module" json:"module,omitempty"` Action *qtypes.String `protobuf:"bytes,3,opt,name=action" json:"action,omitempty"` CreatedAt *qtypes.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` CreatedBy *qtypes.Int64 `protobuf:"bytes,5,opt,name=created_by,json=createdBy" json:"created_by,omitempty"` Offset *ntypes.Int64 `protobuf:"bytes,100,opt,name=offset" json:"offset,omitempty"` Limit *ntypes.Int64 `protobuf:"bytes,101,opt,name=limit" json:"limit,omitempty"` Sort map[string]bool `` /* 131-byte string literal not displayed */ }
func (*ListPermissionsRequest) Descriptor ¶
func (*ListPermissionsRequest) Descriptor() ([]byte, []int)
func (*ListPermissionsRequest) GetAction ¶
func (m *ListPermissionsRequest) GetAction() *qtypes.String
func (*ListPermissionsRequest) GetCreatedAt ¶
func (m *ListPermissionsRequest) GetCreatedAt() *qtypes.Timestamp
func (*ListPermissionsRequest) GetCreatedBy ¶
func (m *ListPermissionsRequest) GetCreatedBy() *qtypes.Int64
func (*ListPermissionsRequest) GetLimit ¶
func (m *ListPermissionsRequest) GetLimit() *ntypes.Int64
func (*ListPermissionsRequest) GetModule ¶
func (m *ListPermissionsRequest) GetModule() *qtypes.String
func (*ListPermissionsRequest) GetOffset ¶
func (m *ListPermissionsRequest) GetOffset() *ntypes.Int64
func (*ListPermissionsRequest) GetSort ¶
func (m *ListPermissionsRequest) GetSort() map[string]bool
func (*ListPermissionsRequest) GetSubsystem ¶
func (m *ListPermissionsRequest) GetSubsystem() *qtypes.String
func (*ListPermissionsRequest) ProtoMessage ¶
func (*ListPermissionsRequest) ProtoMessage()
func (*ListPermissionsRequest) Reset ¶
func (m *ListPermissionsRequest) Reset()
func (*ListPermissionsRequest) String ¶
func (m *ListPermissionsRequest) String() string
type ListPermissionsResponse ¶
type ListPermissionsResponse struct {
Permissions []string `protobuf:"bytes,1,rep,name=permissions" json:"permissions,omitempty"`
}
func (*ListPermissionsResponse) Descriptor ¶
func (*ListPermissionsResponse) Descriptor() ([]byte, []int)
func (*ListPermissionsResponse) GetPermissions ¶ added in v0.9.15
func (m *ListPermissionsResponse) GetPermissions() []string
func (*ListPermissionsResponse) ProtoMessage ¶
func (*ListPermissionsResponse) ProtoMessage()
func (*ListPermissionsResponse) Reset ¶
func (m *ListPermissionsResponse) Reset()
func (*ListPermissionsResponse) String ¶
func (m *ListPermissionsResponse) String() string
type ListUserGroupsRequest ¶
type ListUserGroupsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*ListUserGroupsRequest) Descriptor ¶
func (*ListUserGroupsRequest) Descriptor() ([]byte, []int)
func (*ListUserGroupsRequest) GetId ¶ added in v0.9.15
func (m *ListUserGroupsRequest) GetId() int64
func (*ListUserGroupsRequest) ProtoMessage ¶
func (*ListUserGroupsRequest) ProtoMessage()
func (*ListUserGroupsRequest) Reset ¶
func (m *ListUserGroupsRequest) Reset()
func (*ListUserGroupsRequest) String ¶
func (m *ListUserGroupsRequest) String() string
type ListUserGroupsResponse ¶
type ListUserGroupsResponse struct {
Groups []*Group `protobuf:"bytes,1,rep,name=groups" json:"groups,omitempty"`
}
func (*ListUserGroupsResponse) Descriptor ¶
func (*ListUserGroupsResponse) Descriptor() ([]byte, []int)
func (*ListUserGroupsResponse) GetGroups ¶
func (m *ListUserGroupsResponse) GetGroups() []*Group
func (*ListUserGroupsResponse) ProtoMessage ¶
func (*ListUserGroupsResponse) ProtoMessage()
func (*ListUserGroupsResponse) Reset ¶
func (m *ListUserGroupsResponse) Reset()
func (*ListUserGroupsResponse) String ¶
func (m *ListUserGroupsResponse) String() string
type ListUserPermissionsRequest ¶
type ListUserPermissionsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*ListUserPermissionsRequest) Descriptor ¶
func (*ListUserPermissionsRequest) Descriptor() ([]byte, []int)
func (*ListUserPermissionsRequest) GetId ¶ added in v0.9.15
func (m *ListUserPermissionsRequest) GetId() int64
func (*ListUserPermissionsRequest) ProtoMessage ¶
func (*ListUserPermissionsRequest) ProtoMessage()
func (*ListUserPermissionsRequest) Reset ¶
func (m *ListUserPermissionsRequest) Reset()
func (*ListUserPermissionsRequest) String ¶
func (m *ListUserPermissionsRequest) String() string
type ListUserPermissionsResponse ¶
type ListUserPermissionsResponse struct {
Permissions []string `protobuf:"bytes,1,rep,name=permissions" json:"permissions,omitempty"`
}
func (*ListUserPermissionsResponse) Descriptor ¶
func (*ListUserPermissionsResponse) Descriptor() ([]byte, []int)
func (*ListUserPermissionsResponse) GetPermissions ¶ added in v0.9.15
func (m *ListUserPermissionsResponse) GetPermissions() []string
func (*ListUserPermissionsResponse) ProtoMessage ¶
func (*ListUserPermissionsResponse) ProtoMessage()
func (*ListUserPermissionsResponse) Reset ¶
func (m *ListUserPermissionsResponse) Reset()
func (*ListUserPermissionsResponse) String ¶
func (m *ListUserPermissionsResponse) String() string
type ListUsersRequest ¶
type ListUsersRequest struct { IsSuperuser *ntypes.Bool `protobuf:"bytes,1,opt,name=is_superuser,json=isSuperuser" json:"is_superuser,omitempty"` IsStaff *ntypes.Bool `protobuf:"bytes,2,opt,name=is_staff,json=isStaff" json:"is_staff,omitempty"` CreatedBy *qtypes.Int64 `protobuf:"bytes,3,opt,name=created_by,json=createdBy" json:"created_by,omitempty"` Offset *ntypes.Int64 `protobuf:"bytes,100,opt,name=offset" json:"offset,omitempty"` Limit *ntypes.Int64 `protobuf:"bytes,101,opt,name=limit" json:"limit,omitempty"` Sort map[string]bool `` /* 131-byte string literal not displayed */ }
func (*ListUsersRequest) Descriptor ¶
func (*ListUsersRequest) Descriptor() ([]byte, []int)
func (*ListUsersRequest) GetCreatedBy ¶
func (m *ListUsersRequest) GetCreatedBy() *qtypes.Int64
func (*ListUsersRequest) GetIsStaff ¶
func (m *ListUsersRequest) GetIsStaff() *ntypes.Bool
func (*ListUsersRequest) GetIsSuperuser ¶
func (m *ListUsersRequest) GetIsSuperuser() *ntypes.Bool
func (*ListUsersRequest) GetLimit ¶
func (m *ListUsersRequest) GetLimit() *ntypes.Int64
func (*ListUsersRequest) GetOffset ¶
func (m *ListUsersRequest) GetOffset() *ntypes.Int64
func (*ListUsersRequest) GetSort ¶
func (m *ListUsersRequest) GetSort() map[string]bool
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) Reset ¶
func (m *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (m *ListUsersRequest) String() string
type ListUsersResponse ¶
type ListUsersResponse struct {
Users []*User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}
func (*ListUsersResponse) Descriptor ¶
func (*ListUsersResponse) Descriptor() ([]byte, []int)
func (*ListUsersResponse) GetUsers ¶
func (m *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) Reset ¶
func (m *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (m *ListUsersResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` Client string `protobuf:"bytes,3,opt,name=client" json:"client,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetClient ¶ added in v0.9.15
func (m *LoginRequest) GetClient() string
func (*LoginRequest) GetPassword ¶ added in v0.9.15
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶ added in v0.9.15
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type LogoutRequest ¶
type LogoutRequest struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
}
func (*LogoutRequest) Descriptor ¶
func (*LogoutRequest) Descriptor() ([]byte, []int)
func (*LogoutRequest) GetAccessToken ¶ added in v0.9.15
func (m *LogoutRequest) GetAccessToken() string
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) Reset ¶
func (m *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (m *LogoutRequest) String() string
type ModifyGroupRequest ¶
type ModifyGroupRequest struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name *ntypes.String `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Description *ntypes.String `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` }
func (*ModifyGroupRequest) Descriptor ¶
func (*ModifyGroupRequest) Descriptor() ([]byte, []int)
func (*ModifyGroupRequest) GetDescription ¶
func (m *ModifyGroupRequest) GetDescription() *ntypes.String
func (*ModifyGroupRequest) GetId ¶ added in v0.9.15
func (m *ModifyGroupRequest) GetId() int64
func (*ModifyGroupRequest) GetName ¶
func (m *ModifyGroupRequest) GetName() *ntypes.String
func (*ModifyGroupRequest) ProtoMessage ¶
func (*ModifyGroupRequest) ProtoMessage()
func (*ModifyGroupRequest) Reset ¶
func (m *ModifyGroupRequest) Reset()
func (*ModifyGroupRequest) String ¶
func (m *ModifyGroupRequest) String() string
type ModifyGroupResponse ¶
type ModifyGroupResponse struct {
Group *Group `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
}
func (*ModifyGroupResponse) Descriptor ¶
func (*ModifyGroupResponse) Descriptor() ([]byte, []int)
func (*ModifyGroupResponse) GetGroup ¶
func (m *ModifyGroupResponse) GetGroup() *Group
func (*ModifyGroupResponse) ProtoMessage ¶
func (*ModifyGroupResponse) ProtoMessage()
func (*ModifyGroupResponse) Reset ¶
func (m *ModifyGroupResponse) Reset()
func (*ModifyGroupResponse) String ¶
func (m *ModifyGroupResponse) String() string
type ModifyUserRequest ¶
type ModifyUserRequest struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Username *ntypes.String `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` PlainPassword *ntypes.String `protobuf:"bytes,3,opt,name=plain_password,json=plainPassword" json:"plain_password,omitempty"` SecurePassword []byte `protobuf:"bytes,4,opt,name=secure_password,json=securePassword,proto3" json:"secure_password,omitempty"` FirstName *ntypes.String `protobuf:"bytes,5,opt,name=first_name,json=firstName" json:"first_name,omitempty"` LastName *ntypes.String `protobuf:"bytes,6,opt,name=last_name,json=lastName" json:"last_name,omitempty"` IsSuperuser *ntypes.Bool `protobuf:"bytes,7,opt,name=is_superuser,json=isSuperuser" json:"is_superuser,omitempty"` IsActive *ntypes.Bool `protobuf:"bytes,8,opt,name=is_active,json=isActive" json:"is_active,omitempty"` IsStaff *ntypes.Bool `protobuf:"bytes,9,opt,name=is_staff,json=isStaff" json:"is_staff,omitempty"` IsConfirmed *ntypes.Bool `protobuf:"bytes,10,opt,name=is_confirmed,json=isConfirmed" json:"is_confirmed,omitempty"` }
func (*ModifyUserRequest) Descriptor ¶
func (*ModifyUserRequest) Descriptor() ([]byte, []int)
func (*ModifyUserRequest) GetFirstName ¶
func (m *ModifyUserRequest) GetFirstName() *ntypes.String
func (*ModifyUserRequest) GetId ¶ added in v0.9.15
func (m *ModifyUserRequest) GetId() int64
func (*ModifyUserRequest) GetIsActive ¶
func (m *ModifyUserRequest) GetIsActive() *ntypes.Bool
func (*ModifyUserRequest) GetIsConfirmed ¶
func (m *ModifyUserRequest) GetIsConfirmed() *ntypes.Bool
func (*ModifyUserRequest) GetIsStaff ¶
func (m *ModifyUserRequest) GetIsStaff() *ntypes.Bool
func (*ModifyUserRequest) GetIsSuperuser ¶
func (m *ModifyUserRequest) GetIsSuperuser() *ntypes.Bool
func (*ModifyUserRequest) GetLastName ¶
func (m *ModifyUserRequest) GetLastName() *ntypes.String
func (*ModifyUserRequest) GetPlainPassword ¶
func (m *ModifyUserRequest) GetPlainPassword() *ntypes.String
func (*ModifyUserRequest) GetSecurePassword ¶ added in v0.9.15
func (m *ModifyUserRequest) GetSecurePassword() []byte
func (*ModifyUserRequest) GetUsername ¶
func (m *ModifyUserRequest) GetUsername() *ntypes.String
func (*ModifyUserRequest) ProtoMessage ¶
func (*ModifyUserRequest) ProtoMessage()
func (*ModifyUserRequest) Reset ¶
func (m *ModifyUserRequest) Reset()
func (*ModifyUserRequest) String ¶
func (m *ModifyUserRequest) String() string
type ModifyUserResponse ¶
type ModifyUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}
func (*ModifyUserResponse) Descriptor ¶
func (*ModifyUserResponse) Descriptor() ([]byte, []int)
func (*ModifyUserResponse) GetUser ¶
func (m *ModifyUserResponse) GetUser() *User
func (*ModifyUserResponse) ProtoMessage ¶
func (*ModifyUserResponse) ProtoMessage()
func (*ModifyUserResponse) Reset ¶
func (m *ModifyUserResponse) Reset()
func (*ModifyUserResponse) String ¶
func (m *ModifyUserResponse) String() string
type PermissionManagerClient ¶
type PermissionManagerClient interface { Register(ctx context.Context, in *RegisterPermissionsRequest, opts ...grpc.CallOption) (*RegisterPermissionsResponse, error) List(ctx context.Context, in *ListPermissionsRequest, opts ...grpc.CallOption) (*ListPermissionsResponse, error) Get(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*GetPermissionResponse, error) }
func NewPermissionManagerClient ¶
func NewPermissionManagerClient(cc *grpc.ClientConn) PermissionManagerClient
type PermissionManagerServer ¶
type PermissionManagerServer interface { Register(context.Context, *RegisterPermissionsRequest) (*RegisterPermissionsResponse, error) List(context.Context, *ListPermissionsRequest) (*ListPermissionsResponse, error) Get(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error) }
type RegisterPermissionsRequest ¶
type RegisterPermissionsRequest struct {
Permissions []string `protobuf:"bytes,1,rep,name=permissions" json:"permissions,omitempty"`
}
func (*RegisterPermissionsRequest) Descriptor ¶
func (*RegisterPermissionsRequest) Descriptor() ([]byte, []int)
func (*RegisterPermissionsRequest) GetPermissions ¶ added in v0.9.15
func (m *RegisterPermissionsRequest) GetPermissions() []string
func (*RegisterPermissionsRequest) ProtoMessage ¶
func (*RegisterPermissionsRequest) ProtoMessage()
func (*RegisterPermissionsRequest) Reset ¶
func (m *RegisterPermissionsRequest) Reset()
func (*RegisterPermissionsRequest) String ¶
func (m *RegisterPermissionsRequest) String() string
type RegisterPermissionsResponse ¶
type RegisterPermissionsResponse struct { Created int64 `protobuf:"varint,1,opt,name=created" json:"created,omitempty"` Removed int64 `protobuf:"varint,2,opt,name=removed" json:"removed,omitempty"` Untouched int64 `protobuf:"varint,3,opt,name=untouched" json:"untouched,omitempty"` }
func (*RegisterPermissionsResponse) Descriptor ¶
func (*RegisterPermissionsResponse) Descriptor() ([]byte, []int)
func (*RegisterPermissionsResponse) GetCreated ¶ added in v0.9.15
func (m *RegisterPermissionsResponse) GetCreated() int64
func (*RegisterPermissionsResponse) GetRemoved ¶ added in v0.9.15
func (m *RegisterPermissionsResponse) GetRemoved() int64
func (*RegisterPermissionsResponse) GetUntouched ¶ added in v0.9.15
func (m *RegisterPermissionsResponse) GetUntouched() int64
func (*RegisterPermissionsResponse) ProtoMessage ¶
func (*RegisterPermissionsResponse) ProtoMessage()
func (*RegisterPermissionsResponse) Reset ¶
func (m *RegisterPermissionsResponse) Reset()
func (*RegisterPermissionsResponse) String ¶
func (m *RegisterPermissionsResponse) String() string
type SetGroupPermissionsRequest ¶
type SetGroupPermissionsRequest struct { GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"` Permissions []string `protobuf:"bytes,2,rep,name=permissions" json:"permissions,omitempty"` // Force tells if permission should be created in case if it does not exists. Force bool `protobuf:"varint,3,opt,name=force" json:"force,omitempty"` }
func (*SetGroupPermissionsRequest) Descriptor ¶
func (*SetGroupPermissionsRequest) Descriptor() ([]byte, []int)
func (*SetGroupPermissionsRequest) GetForce ¶ added in v0.15.0
func (m *SetGroupPermissionsRequest) GetForce() bool
func (*SetGroupPermissionsRequest) GetGroupId ¶ added in v0.9.15
func (m *SetGroupPermissionsRequest) GetGroupId() int64
func (*SetGroupPermissionsRequest) GetPermissions ¶ added in v0.9.15
func (m *SetGroupPermissionsRequest) GetPermissions() []string
func (*SetGroupPermissionsRequest) ProtoMessage ¶
func (*SetGroupPermissionsRequest) ProtoMessage()
func (*SetGroupPermissionsRequest) Reset ¶
func (m *SetGroupPermissionsRequest) Reset()
func (*SetGroupPermissionsRequest) String ¶
func (m *SetGroupPermissionsRequest) String() string
type SetGroupPermissionsResponse ¶
type SetGroupPermissionsResponse struct { Created int64 `protobuf:"varint,1,opt,name=created" json:"created,omitempty"` Removed int64 `protobuf:"varint,2,opt,name=removed" json:"removed,omitempty"` Untouched int64 `protobuf:"varint,3,opt,name=untouched" json:"untouched,omitempty"` }
func (*SetGroupPermissionsResponse) Descriptor ¶
func (*SetGroupPermissionsResponse) Descriptor() ([]byte, []int)
func (*SetGroupPermissionsResponse) GetCreated ¶ added in v0.9.15
func (m *SetGroupPermissionsResponse) GetCreated() int64
func (*SetGroupPermissionsResponse) GetRemoved ¶ added in v0.9.15
func (m *SetGroupPermissionsResponse) GetRemoved() int64
func (*SetGroupPermissionsResponse) GetUntouched ¶ added in v0.9.15
func (m *SetGroupPermissionsResponse) GetUntouched() int64
func (*SetGroupPermissionsResponse) ProtoMessage ¶
func (*SetGroupPermissionsResponse) ProtoMessage()
func (*SetGroupPermissionsResponse) Reset ¶
func (m *SetGroupPermissionsResponse) Reset()
func (*SetGroupPermissionsResponse) String ¶
func (m *SetGroupPermissionsResponse) String() string
type SetUserGroupsRequest ¶
type SetUserGroupsRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` Groups []int64 `protobuf:"varint,2,rep,packed,name=groups" json:"groups,omitempty"` }
func (*SetUserGroupsRequest) Descriptor ¶
func (*SetUserGroupsRequest) Descriptor() ([]byte, []int)
func (*SetUserGroupsRequest) GetGroups ¶ added in v0.9.15
func (m *SetUserGroupsRequest) GetGroups() []int64
func (*SetUserGroupsRequest) GetUserId ¶ added in v0.9.15
func (m *SetUserGroupsRequest) GetUserId() int64
func (*SetUserGroupsRequest) ProtoMessage ¶
func (*SetUserGroupsRequest) ProtoMessage()
func (*SetUserGroupsRequest) Reset ¶
func (m *SetUserGroupsRequest) Reset()
func (*SetUserGroupsRequest) String ¶
func (m *SetUserGroupsRequest) String() string
type SetUserGroupsResponse ¶
type SetUserGroupsResponse struct { Created int64 `protobuf:"varint,1,opt,name=created" json:"created,omitempty"` Removed int64 `protobuf:"varint,2,opt,name=removed" json:"removed,omitempty"` Untouched int64 `protobuf:"varint,3,opt,name=untouched" json:"untouched,omitempty"` }
func (*SetUserGroupsResponse) Descriptor ¶
func (*SetUserGroupsResponse) Descriptor() ([]byte, []int)
func (*SetUserGroupsResponse) GetCreated ¶ added in v0.9.15
func (m *SetUserGroupsResponse) GetCreated() int64
func (*SetUserGroupsResponse) GetRemoved ¶ added in v0.9.15
func (m *SetUserGroupsResponse) GetRemoved() int64
func (*SetUserGroupsResponse) GetUntouched ¶ added in v0.9.15
func (m *SetUserGroupsResponse) GetUntouched() int64
func (*SetUserGroupsResponse) ProtoMessage ¶
func (*SetUserGroupsResponse) ProtoMessage()
func (*SetUserGroupsResponse) Reset ¶
func (m *SetUserGroupsResponse) Reset()
func (*SetUserGroupsResponse) String ¶
func (m *SetUserGroupsResponse) String() string
type SetUserPermissionsRequest ¶
type SetUserPermissionsRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` Permissions []string `protobuf:"bytes,2,rep,name=permissions" json:"permissions,omitempty"` // Force tells if permission should be created in case if it does not exists. Force bool `protobuf:"varint,3,opt,name=force" json:"force,omitempty"` }
func (*SetUserPermissionsRequest) Descriptor ¶
func (*SetUserPermissionsRequest) Descriptor() ([]byte, []int)
func (*SetUserPermissionsRequest) GetForce ¶ added in v0.15.0
func (m *SetUserPermissionsRequest) GetForce() bool
func (*SetUserPermissionsRequest) GetPermissions ¶ added in v0.9.15
func (m *SetUserPermissionsRequest) GetPermissions() []string
func (*SetUserPermissionsRequest) GetUserId ¶ added in v0.9.15
func (m *SetUserPermissionsRequest) GetUserId() int64
func (*SetUserPermissionsRequest) ProtoMessage ¶
func (*SetUserPermissionsRequest) ProtoMessage()
func (*SetUserPermissionsRequest) Reset ¶
func (m *SetUserPermissionsRequest) Reset()
func (*SetUserPermissionsRequest) String ¶
func (m *SetUserPermissionsRequest) String() string
type SetUserPermissionsResponse ¶
type SetUserPermissionsResponse struct { Created int64 `protobuf:"varint,1,opt,name=created" json:"created,omitempty"` Removed int64 `protobuf:"varint,2,opt,name=removed" json:"removed,omitempty"` Untouched int64 `protobuf:"varint,3,opt,name=untouched" json:"untouched,omitempty"` }
func (*SetUserPermissionsResponse) Descriptor ¶
func (*SetUserPermissionsResponse) Descriptor() ([]byte, []int)
func (*SetUserPermissionsResponse) GetCreated ¶ added in v0.9.15
func (m *SetUserPermissionsResponse) GetCreated() int64
func (*SetUserPermissionsResponse) GetRemoved ¶ added in v0.9.15
func (m *SetUserPermissionsResponse) GetRemoved() int64
func (*SetUserPermissionsResponse) GetUntouched ¶ added in v0.9.15
func (m *SetUserPermissionsResponse) GetUntouched() int64
func (*SetUserPermissionsResponse) ProtoMessage ¶
func (*SetUserPermissionsResponse) ProtoMessage()
func (*SetUserPermissionsResponse) Reset ¶
func (m *SetUserPermissionsResponse) Reset()
func (*SetUserPermissionsResponse) String ¶
func (m *SetUserPermissionsResponse) String() string
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName" json:"first_name,omitempty"` LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName" json:"last_name,omitempty"` IsSuperuser bool `protobuf:"varint,5,opt,name=is_superuser,json=isSuperuser" json:"is_superuser,omitempty"` IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive" json:"is_active,omitempty"` IsStaff bool `protobuf:"varint,7,opt,name=is_staff,json=isStaff" json:"is_staff,omitempty"` IsConfirmed bool `protobuf:"varint,8,opt,name=is_confirmed,json=isConfirmed" json:"is_confirmed,omitempty"` CreatedAt *google_protobuf2.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` CreatedBy *ntypes.Int64 `protobuf:"bytes,10,opt,name=created_by,json=createdBy" json:"created_by,omitempty"` UpdatedAt *google_protobuf2.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` UpdatedBy *ntypes.Int64 `protobuf:"bytes,12,opt,name=updated_by,json=updatedBy" json:"updated_by,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetCreatedAt ¶
func (m *User) GetCreatedAt() *google_protobuf2.Timestamp
func (*User) GetCreatedBy ¶
func (*User) GetFirstName ¶ added in v0.9.15
func (*User) GetIsActive ¶ added in v0.9.15
func (*User) GetIsConfirmed ¶ added in v0.9.15
func (*User) GetIsStaff ¶ added in v0.9.15
func (*User) GetIsSuperuser ¶ added in v0.9.15
func (*User) GetLastName ¶ added in v0.9.15
func (*User) GetUpdatedAt ¶
func (m *User) GetUpdatedAt() *google_protobuf2.Timestamp
func (*User) GetUpdatedBy ¶
func (*User) GetUsername ¶ added in v0.9.15
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
type UserManagerClient ¶
type UserManagerClient interface { Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) Modify(ctx context.Context, in *ModifyUserRequest, opts ...grpc.CallOption) (*ModifyUserResponse, error) Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) List(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*google_protobuf1.BoolValue, error) ListPermissions(ctx context.Context, in *ListUserPermissionsRequest, opts ...grpc.CallOption) (*ListUserPermissionsResponse, error) SetPermissions(ctx context.Context, in *SetUserPermissionsRequest, opts ...grpc.CallOption) (*SetUserPermissionsResponse, error) ListGroups(ctx context.Context, in *ListUserGroupsRequest, opts ...grpc.CallOption) (*ListUserGroupsResponse, error) SetGroups(ctx context.Context, in *SetUserGroupsRequest, opts ...grpc.CallOption) (*SetUserGroupsResponse, error) }
func NewUserManagerClient ¶
func NewUserManagerClient(cc *grpc.ClientConn) UserManagerClient
type UserManagerServer ¶
type UserManagerServer interface { Create(context.Context, *CreateUserRequest) (*CreateUserResponse, error) Modify(context.Context, *ModifyUserRequest) (*ModifyUserResponse, error) Get(context.Context, *GetUserRequest) (*GetUserResponse, error) List(context.Context, *ListUsersRequest) (*ListUsersResponse, error) Delete(context.Context, *DeleteUserRequest) (*google_protobuf1.BoolValue, error) ListPermissions(context.Context, *ListUserPermissionsRequest) (*ListUserPermissionsResponse, error) SetPermissions(context.Context, *SetUserPermissionsRequest) (*SetUserPermissionsResponse, error) ListGroups(context.Context, *ListUserGroupsRequest) (*ListUserGroupsResponse, error) SetGroups(context.Context, *SetUserGroupsRequest) (*SetUserGroupsResponse, error) }
Click to show internal directories.
Click to hide internal directories.