user

package
v0.0.0-...-4722edd Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: BSD-2-Clause Imports: 17 Imported by: 6

Documentation

Index

Constants

View Source
const (
	UserService_ExistUser_FullMethodName              = "/dictybase.user.UserService/ExistUser"
	UserService_GetUser_FullMethodName                = "/dictybase.user.UserService/GetUser"
	UserService_GetUserByEmail_FullMethodName         = "/dictybase.user.UserService/GetUserByEmail"
	UserService_GetRelatedRoles_FullMethodName        = "/dictybase.user.UserService/GetRelatedRoles"
	UserService_ListUsers_FullMethodName              = "/dictybase.user.UserService/ListUsers"
	UserService_CreateUser_FullMethodName             = "/dictybase.user.UserService/CreateUser"
	UserService_CreateRoleRelationship_FullMethodName = "/dictybase.user.UserService/CreateRoleRelationship"
	UserService_UpdateUser_FullMethodName             = "/dictybase.user.UserService/UpdateUser"
	UserService_UpdateRoleRelationship_FullMethodName = "/dictybase.user.UserService/UpdateRoleRelationship"
	UserService_DeleteUser_FullMethodName             = "/dictybase.user.UserService/DeleteUser"
	UserService_DeleteRoleRelationship_FullMethodName = "/dictybase.user.UserService/DeleteRoleRelationship"
	UserService_Healthz_FullMethodName                = "/dictybase.user.UserService/Healthz"
)
View Source
const (
	RoleService_GetRole_FullMethodName                      = "/dictybase.user.RoleService/GetRole"
	RoleService_GetRelatedUsers_FullMethodName              = "/dictybase.user.RoleService/GetRelatedUsers"
	RoleService_GetRelatedPermissions_FullMethodName        = "/dictybase.user.RoleService/GetRelatedPermissions"
	RoleService_ListRoles_FullMethodName                    = "/dictybase.user.RoleService/ListRoles"
	RoleService_CreateRole_FullMethodName                   = "/dictybase.user.RoleService/CreateRole"
	RoleService_CreateUserRelationship_FullMethodName       = "/dictybase.user.RoleService/CreateUserRelationship"
	RoleService_CreatePermissionRelationship_FullMethodName = "/dictybase.user.RoleService/CreatePermissionRelationship"
	RoleService_UpdateRole_FullMethodName                   = "/dictybase.user.RoleService/UpdateRole"
	RoleService_UpdateUserRelationship_FullMethodName       = "/dictybase.user.RoleService/UpdateUserRelationship"
	RoleService_UpdatePermissionRelationship_FullMethodName = "/dictybase.user.RoleService/UpdatePermissionRelationship"
	RoleService_DeleteRole_FullMethodName                   = "/dictybase.user.RoleService/DeleteRole"
	RoleService_DeleteUserRelationship_FullMethodName       = "/dictybase.user.RoleService/DeleteUserRelationship"
	RoleService_DeletePermissionRelationship_FullMethodName = "/dictybase.user.RoleService/DeletePermissionRelationship"
)
View Source
const (
	PermissionService_GetPermission_FullMethodName    = "/dictybase.user.PermissionService/GetPermission"
	PermissionService_ListPermissions_FullMethodName  = "/dictybase.user.PermissionService/ListPermissions"
	PermissionService_CreatePermission_FullMethodName = "/dictybase.user.PermissionService/CreatePermission"
	PermissionService_UpdatePermission_FullMethodName = "/dictybase.user.PermissionService/UpdatePermission"
	PermissionService_DeletePermission_FullMethodName = "/dictybase.user.PermissionService/DeletePermission"
)

Variables

View Source
var File_dictybase_user_user_proto protoreflect.FileDescriptor
View Source
var PermissionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dictybase.user.PermissionService",
	HandlerType: (*PermissionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPermission",
			Handler:    _PermissionService_GetPermission_Handler,
		},
		{
			MethodName: "ListPermissions",
			Handler:    _PermissionService_ListPermissions_Handler,
		},
		{
			MethodName: "CreatePermission",
			Handler:    _PermissionService_CreatePermission_Handler,
		},
		{
			MethodName: "UpdatePermission",
			Handler:    _PermissionService_UpdatePermission_Handler,
		},
		{
			MethodName: "DeletePermission",
			Handler:    _PermissionService_DeletePermission_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dictybase/user/user.proto",
}

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

View Source
var RoleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dictybase.user.RoleService",
	HandlerType: (*RoleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRole",
			Handler:    _RoleService_GetRole_Handler,
		},
		{
			MethodName: "GetRelatedUsers",
			Handler:    _RoleService_GetRelatedUsers_Handler,
		},
		{
			MethodName: "GetRelatedPermissions",
			Handler:    _RoleService_GetRelatedPermissions_Handler,
		},
		{
			MethodName: "ListRoles",
			Handler:    _RoleService_ListRoles_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _RoleService_CreateRole_Handler,
		},
		{
			MethodName: "CreateUserRelationship",
			Handler:    _RoleService_CreateUserRelationship_Handler,
		},
		{
			MethodName: "CreatePermissionRelationship",
			Handler:    _RoleService_CreatePermissionRelationship_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _RoleService_UpdateRole_Handler,
		},
		{
			MethodName: "UpdateUserRelationship",
			Handler:    _RoleService_UpdateUserRelationship_Handler,
		},
		{
			MethodName: "UpdatePermissionRelationship",
			Handler:    _RoleService_UpdatePermissionRelationship_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _RoleService_DeleteRole_Handler,
		},
		{
			MethodName: "DeleteUserRelationship",
			Handler:    _RoleService_DeleteUserRelationship_Handler,
		},
		{
			MethodName: "DeletePermissionRelationship",
			Handler:    _RoleService_DeletePermissionRelationship_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dictybase/user/user.proto",
}

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

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dictybase.user.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExistUser",
			Handler:    _UserService_ExistUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "GetUserByEmail",
			Handler:    _UserService_GetUserByEmail_Handler,
		},
		{
			MethodName: "GetRelatedRoles",
			Handler:    _UserService_GetRelatedRoles_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "CreateRoleRelationship",
			Handler:    _UserService_CreateRoleRelationship_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdateRoleRelationship",
			Handler:    _UserService_UpdateRoleRelationship_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "DeleteRoleRelationship",
			Handler:    _UserService_DeleteRoleRelationship_Handler,
		},
		{
			MethodName: "Healthz",
			Handler:    _UserService_Healthz_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dictybase/user/user.proto",
}

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

Functions

func RegisterPermissionServiceServer

func RegisterPermissionServiceServer(s grpc.ServiceRegistrar, srv PermissionServiceServer)

func RegisterRoleServiceServer

func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CreatePermissionRequest

type CreatePermissionRequest struct {
	Data *CreatePermissionRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePermissionRequest) Descriptor deprecated

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

Deprecated: Use CreatePermissionRequest.ProtoReflect.Descriptor instead.

func (*CreatePermissionRequest) GetData

func (*CreatePermissionRequest) ProtoMessage

func (*CreatePermissionRequest) ProtoMessage()

func (*CreatePermissionRequest) ProtoReflect

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

func (*CreatePermissionRequest) Reset

func (x *CreatePermissionRequest) Reset()

func (*CreatePermissionRequest) String

func (x *CreatePermissionRequest) String() string

func (*CreatePermissionRequest) Validate

func (this *CreatePermissionRequest) Validate() error

type CreatePermissionRequest_Data

type CreatePermissionRequest_Data struct {
	Type       string                `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Attributes *PermissionAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

The payload for new user

func (*CreatePermissionRequest_Data) Descriptor deprecated

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

Deprecated: Use CreatePermissionRequest_Data.ProtoReflect.Descriptor instead.

func (*CreatePermissionRequest_Data) GetAttributes

func (*CreatePermissionRequest_Data) GetType

func (x *CreatePermissionRequest_Data) GetType() string

func (*CreatePermissionRequest_Data) ProtoMessage

func (*CreatePermissionRequest_Data) ProtoMessage()

func (*CreatePermissionRequest_Data) ProtoReflect

func (*CreatePermissionRequest_Data) Reset

func (x *CreatePermissionRequest_Data) Reset()

func (*CreatePermissionRequest_Data) String

func (*CreatePermissionRequest_Data) Validate

func (this *CreatePermissionRequest_Data) Validate() error

type CreateRoleRequest

type CreateRoleRequest struct {
	Data *CreateRoleRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetData

func (*CreateRoleRequest) ProtoMessage

func (*CreateRoleRequest) ProtoMessage()

func (*CreateRoleRequest) ProtoReflect

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

func (*CreateRoleRequest) Reset

func (x *CreateRoleRequest) Reset()

func (*CreateRoleRequest) String

func (x *CreateRoleRequest) String() string

func (*CreateRoleRequest) Validate

func (this *CreateRoleRequest) Validate() error

type CreateRoleRequest_Data

type CreateRoleRequest_Data struct {
	Type          string                `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Attributes    *RoleAttributes       `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Relationships *NewRoleRelationships `protobuf:"bytes,3,opt,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

The payload for new role

func (*CreateRoleRequest_Data) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest_Data.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest_Data) GetAttributes

func (x *CreateRoleRequest_Data) GetAttributes() *RoleAttributes

func (*CreateRoleRequest_Data) GetRelationships

func (x *CreateRoleRequest_Data) GetRelationships() *NewRoleRelationships

func (*CreateRoleRequest_Data) GetType

func (x *CreateRoleRequest_Data) GetType() string

func (*CreateRoleRequest_Data) ProtoMessage

func (*CreateRoleRequest_Data) ProtoMessage()

func (*CreateRoleRequest_Data) ProtoReflect

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

func (*CreateRoleRequest_Data) Reset

func (x *CreateRoleRequest_Data) Reset()

func (*CreateRoleRequest_Data) String

func (x *CreateRoleRequest_Data) String() string

func (*CreateRoleRequest_Data) Validate

func (this *CreateRoleRequest_Data) Validate() error

type CreateUserRequest

type CreateUserRequest struct {
	Data *CreateUserRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetData

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (this *CreateUserRequest) Validate() error

type CreateUserRequest_Data

type CreateUserRequest_Data struct {
	Type          string                `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Attributes    *UserAttributes       `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Relationships *NewUserRelationships `protobuf:"bytes,3,opt,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

The payload for new user

func (*CreateUserRequest_Data) Descriptor deprecated

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

Deprecated: Use CreateUserRequest_Data.ProtoReflect.Descriptor instead.

func (*CreateUserRequest_Data) GetAttributes

func (x *CreateUserRequest_Data) GetAttributes() *UserAttributes

func (*CreateUserRequest_Data) GetRelationships

func (x *CreateUserRequest_Data) GetRelationships() *NewUserRelationships

func (*CreateUserRequest_Data) GetType

func (x *CreateUserRequest_Data) GetType() string

func (*CreateUserRequest_Data) ProtoMessage

func (*CreateUserRequest_Data) ProtoMessage()

func (*CreateUserRequest_Data) ProtoReflect

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

func (*CreateUserRequest_Data) Reset

func (x *CreateUserRequest_Data) Reset()

func (*CreateUserRequest_Data) String

func (x *CreateUserRequest_Data) String() string

func (*CreateUserRequest_Data) Validate

func (this *CreateUserRequest_Data) Validate() error

type ExistingRoleRelationships

type ExistingRoleRelationships struct {
	Permissions *ExistingRoleRelationships_Permissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
	Users       *ExistingRoleRelationships_Users       `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

The relationship definition for existing roles.

func (*ExistingRoleRelationships) Descriptor deprecated

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

Deprecated: Use ExistingRoleRelationships.ProtoReflect.Descriptor instead.

func (*ExistingRoleRelationships) GetPermissions

func (*ExistingRoleRelationships) GetUsers

func (*ExistingRoleRelationships) ProtoMessage

func (*ExistingRoleRelationships) ProtoMessage()

func (*ExistingRoleRelationships) ProtoReflect

func (*ExistingRoleRelationships) Reset

func (x *ExistingRoleRelationships) Reset()

func (*ExistingRoleRelationships) String

func (x *ExistingRoleRelationships) String() string

func (*ExistingRoleRelationships) Validate

func (this *ExistingRoleRelationships) Validate() error

type ExistingRoleRelationships_Permissions

type ExistingRoleRelationships_Permissions struct {
	Links *jsonapi.Links  `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"`
	Data  []*jsonapi.Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Relationships with permission definition.

func (*ExistingRoleRelationships_Permissions) Descriptor deprecated

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

Deprecated: Use ExistingRoleRelationships_Permissions.ProtoReflect.Descriptor instead.

func (*ExistingRoleRelationships_Permissions) GetData

func (*ExistingRoleRelationships_Permissions) ProtoMessage

func (*ExistingRoleRelationships_Permissions) ProtoMessage()

func (*ExistingRoleRelationships_Permissions) ProtoReflect

func (*ExistingRoleRelationships_Permissions) Reset

func (*ExistingRoleRelationships_Permissions) String

func (*ExistingRoleRelationships_Permissions) Validate

type ExistingRoleRelationships_Users

type ExistingRoleRelationships_Users struct {
	Links *jsonapi.Links  `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"`
	Data  []*jsonapi.Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Relationships with user definition.

func (*ExistingRoleRelationships_Users) Descriptor deprecated

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

Deprecated: Use ExistingRoleRelationships_Users.ProtoReflect.Descriptor instead.

func (*ExistingRoleRelationships_Users) GetData

func (*ExistingRoleRelationships_Users) ProtoMessage

func (*ExistingRoleRelationships_Users) ProtoMessage()

func (*ExistingRoleRelationships_Users) ProtoReflect

func (*ExistingRoleRelationships_Users) Reset

func (*ExistingRoleRelationships_Users) String

func (*ExistingRoleRelationships_Users) Validate

func (this *ExistingRoleRelationships_Users) Validate() error

type ExistingUserRelationships

type ExistingUserRelationships struct {
	Roles *ExistingUserRelationships_Roles `protobuf:"bytes,1,opt,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

The relationship definition for existing users.

func (*ExistingUserRelationships) Descriptor deprecated

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

Deprecated: Use ExistingUserRelationships.ProtoReflect.Descriptor instead.

func (*ExistingUserRelationships) GetRoles

func (*ExistingUserRelationships) ProtoMessage

func (*ExistingUserRelationships) ProtoMessage()

func (*ExistingUserRelationships) ProtoReflect

func (*ExistingUserRelationships) Reset

func (x *ExistingUserRelationships) Reset()

func (*ExistingUserRelationships) String

func (x *ExistingUserRelationships) String() string

func (*ExistingUserRelationships) Validate

func (this *ExistingUserRelationships) Validate() error

type ExistingUserRelationships_Roles

type ExistingUserRelationships_Roles struct {

	// Http links with role resource.
	Links *jsonapi.Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"`
	// A role [resource identifier object](http://jsonapi.org/format/#document-resource-identifier-objects).
	Data []*jsonapi.Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Relationships with role resource.

func (*ExistingUserRelationships_Roles) Descriptor deprecated

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

Deprecated: Use ExistingUserRelationships_Roles.ProtoReflect.Descriptor instead.

func (*ExistingUserRelationships_Roles) GetData

func (*ExistingUserRelationships_Roles) ProtoMessage

func (*ExistingUserRelationships_Roles) ProtoMessage()

func (*ExistingUserRelationships_Roles) ProtoReflect

func (*ExistingUserRelationships_Roles) Reset

func (*ExistingUserRelationships_Roles) String

func (*ExistingUserRelationships_Roles) Validate

func (this *ExistingUserRelationships_Roles) Validate() error

type NewRoleRelationships

type NewRoleRelationships struct {
	Permissions *NewRoleRelationships_Permissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
	Users       *NewRoleRelationships_Users       `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

The relationship definition for creating new roles.

func (*NewRoleRelationships) Descriptor deprecated

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

Deprecated: Use NewRoleRelationships.ProtoReflect.Descriptor instead.

func (*NewRoleRelationships) GetPermissions

func (*NewRoleRelationships) GetUsers

func (*NewRoleRelationships) ProtoMessage

func (*NewRoleRelationships) ProtoMessage()

func (*NewRoleRelationships) ProtoReflect

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

func (*NewRoleRelationships) Reset

func (x *NewRoleRelationships) Reset()

func (*NewRoleRelationships) String

func (x *NewRoleRelationships) String() string

func (*NewRoleRelationships) Validate

func (this *NewRoleRelationships) Validate() error

type NewRoleRelationships_Permissions

type NewRoleRelationships_Permissions struct {
	Data []*jsonapi.Data `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NewRoleRelationships_Permissions) Descriptor deprecated

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

Deprecated: Use NewRoleRelationships_Permissions.ProtoReflect.Descriptor instead.

func (*NewRoleRelationships_Permissions) GetData

func (*NewRoleRelationships_Permissions) ProtoMessage

func (*NewRoleRelationships_Permissions) ProtoMessage()

func (*NewRoleRelationships_Permissions) ProtoReflect

func (*NewRoleRelationships_Permissions) Reset

func (*NewRoleRelationships_Permissions) String

func (*NewRoleRelationships_Permissions) Validate

func (this *NewRoleRelationships_Permissions) Validate() error

type NewRoleRelationships_Users

type NewRoleRelationships_Users struct {
	Data []*jsonapi.Data `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NewRoleRelationships_Users) Descriptor deprecated

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

Deprecated: Use NewRoleRelationships_Users.ProtoReflect.Descriptor instead.

func (*NewRoleRelationships_Users) GetData

func (x *NewRoleRelationships_Users) GetData() []*jsonapi.Data

func (*NewRoleRelationships_Users) ProtoMessage

func (*NewRoleRelationships_Users) ProtoMessage()

func (*NewRoleRelationships_Users) ProtoReflect

func (*NewRoleRelationships_Users) Reset

func (x *NewRoleRelationships_Users) Reset()

func (*NewRoleRelationships_Users) String

func (x *NewRoleRelationships_Users) String() string

func (*NewRoleRelationships_Users) Validate

func (this *NewRoleRelationships_Users) Validate() error

type NewUserRelationships

type NewUserRelationships struct {
	Roles *NewUserRelationships_Roles `protobuf:"bytes,1,opt,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

The relationship definition for creating new users.

func (*NewUserRelationships) Descriptor deprecated

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

Deprecated: Use NewUserRelationships.ProtoReflect.Descriptor instead.

func (*NewUserRelationships) GetRoles

func (*NewUserRelationships) ProtoMessage

func (*NewUserRelationships) ProtoMessage()

func (*NewUserRelationships) ProtoReflect

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

func (*NewUserRelationships) Reset

func (x *NewUserRelationships) Reset()

func (*NewUserRelationships) String

func (x *NewUserRelationships) String() string

func (*NewUserRelationships) Validate

func (this *NewUserRelationships) Validate() error

type NewUserRelationships_Roles

type NewUserRelationships_Roles struct {

	// A role [resource identifier object](http://jsonapi.org/format/#document-resource-identifier-objects).
	Data []*jsonapi.Data `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Relationships with role resource.

func (*NewUserRelationships_Roles) Descriptor deprecated

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

Deprecated: Use NewUserRelationships_Roles.ProtoReflect.Descriptor instead.

func (*NewUserRelationships_Roles) GetData

func (x *NewUserRelationships_Roles) GetData() []*jsonapi.Data

func (*NewUserRelationships_Roles) ProtoMessage

func (*NewUserRelationships_Roles) ProtoMessage()

func (*NewUserRelationships_Roles) ProtoReflect

func (*NewUserRelationships_Roles) Reset

func (x *NewUserRelationships_Roles) Reset()

func (*NewUserRelationships_Roles) String

func (x *NewUserRelationships_Roles) String() string

func (*NewUserRelationships_Roles) Validate

func (this *NewUserRelationships_Roles) Validate() error

type Permission

type Permission struct {
	Data  *PermissionData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Links *jsonapi.Links  `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

A resource for managing user permission.

func (*Permission) Descriptor deprecated

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

Deprecated: Use Permission.ProtoReflect.Descriptor instead.

func (*Permission) GetData

func (x *Permission) GetData() *PermissionData
func (x *Permission) GetLinks() *jsonapi.Links

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

func (*Permission) Validate

func (this *Permission) Validate() error

type PermissionAttributes

type PermissionAttributes struct {

	// Kind of permission, for example read, write, admin etc.
	Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
	// Brief description of the type of permission.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Timestamp for creation and update
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Resource(object) on which this permission is granted
	Resource string `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

A container for permission fields.

func (*PermissionAttributes) Descriptor deprecated

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

Deprecated: Use PermissionAttributes.ProtoReflect.Descriptor instead.

func (*PermissionAttributes) GetCreatedAt

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

func (*PermissionAttributes) GetDescription

func (x *PermissionAttributes) GetDescription() string

func (*PermissionAttributes) GetPermission

func (x *PermissionAttributes) GetPermission() string

func (*PermissionAttributes) GetResource

func (x *PermissionAttributes) GetResource() string

func (*PermissionAttributes) GetUpdatedAt

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

func (*PermissionAttributes) ProtoMessage

func (*PermissionAttributes) ProtoMessage()

func (*PermissionAttributes) ProtoReflect

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

func (*PermissionAttributes) Reset

func (x *PermissionAttributes) Reset()

func (*PermissionAttributes) String

func (x *PermissionAttributes) String() string

func (*PermissionAttributes) Validate

func (this *PermissionAttributes) Validate() error

type PermissionCollection

type PermissionCollection struct {
	Data  []*PermissionData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Links *jsonapi.Links    `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

A permission collection resource.

func (*PermissionCollection) Descriptor deprecated

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

Deprecated: Use PermissionCollection.ProtoReflect.Descriptor instead.

func (*PermissionCollection) GetData

func (x *PermissionCollection) GetData() []*PermissionData
func (x *PermissionCollection) GetLinks() *jsonapi.Links

func (*PermissionCollection) ProtoMessage

func (*PermissionCollection) ProtoMessage()

func (*PermissionCollection) ProtoReflect

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

func (*PermissionCollection) Reset

func (x *PermissionCollection) Reset()

func (*PermissionCollection) String

func (x *PermissionCollection) String() string

func (*PermissionCollection) Validate

func (this *PermissionCollection) Validate() error

type PermissionData

type PermissionData struct {

	// The resource name.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Unique id.
	Id         int64                 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes *PermissionAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Links      *jsonapi.Links        `protobuf:"bytes,4,opt,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

A top level container for permission data.

func (*PermissionData) Descriptor deprecated

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

Deprecated: Use PermissionData.ProtoReflect.Descriptor instead.

func (*PermissionData) GetAttributes

func (x *PermissionData) GetAttributes() *PermissionAttributes

func (*PermissionData) GetId

func (x *PermissionData) GetId() int64
func (x *PermissionData) GetLinks() *jsonapi.Links

func (*PermissionData) GetType

func (x *PermissionData) GetType() string

func (*PermissionData) ProtoMessage

func (*PermissionData) ProtoMessage()

func (*PermissionData) ProtoReflect

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

func (*PermissionData) Reset

func (x *PermissionData) Reset()

func (*PermissionData) String

func (x *PermissionData) String() string

func (*PermissionData) Validate

func (this *PermissionData) Validate() error

type PermissionServiceClient

type PermissionServiceClient interface {
	// Gets the specified permission
	GetPermission(ctx context.Context, in *jsonapi.GetRequestWithFields, opts ...grpc.CallOption) (*Permission, error)
	// List all permissions
	ListPermissions(ctx context.Context, in *jsonapi.SimpleListRequest, opts ...grpc.CallOption) (*PermissionCollection, error)
	// Create an permission
	CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...grpc.CallOption) (*Permission, error)
	// Update an permission
	UpdatePermission(ctx context.Context, in *UpdatePermissionRequest, opts ...grpc.CallOption) (*Permission, error)
	// Delete an permission
	DeletePermission(ctx context.Context, in *jsonapi.DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

PermissionServiceClient is the client API for PermissionService service.

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

type PermissionServiceServer

type PermissionServiceServer interface {
	// Gets the specified permission
	GetPermission(context.Context, *jsonapi.GetRequestWithFields) (*Permission, error)
	// List all permissions
	ListPermissions(context.Context, *jsonapi.SimpleListRequest) (*PermissionCollection, error)
	// Create an permission
	CreatePermission(context.Context, *CreatePermissionRequest) (*Permission, error)
	// Update an permission
	UpdatePermission(context.Context, *UpdatePermissionRequest) (*Permission, error)
	// Delete an permission
	DeletePermission(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

PermissionServiceServer is the server API for PermissionService service. All implementations must embed UnimplementedPermissionServiceServer for forward compatibility

type Role

type Role struct {
	Data     *RoleData      `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Links    *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"`
	Included []*anypb.Any   `protobuf:"bytes,3,rep,name=included,proto3" json:"included,omitempty"`
	// contains filtered or unexported fields
}

A definition for managing user roles.

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetData

func (x *Role) GetData() *RoleData

func (*Role) GetIncluded

func (x *Role) GetIncluded() []*anypb.Any
func (x *Role) GetLinks() *jsonapi.Links

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

func (*Role) Validate

func (this *Role) Validate() error

type RoleAttributes

type RoleAttributes struct {
	Role        string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Timestamp for creation and update
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

A container for role fields.

func (*RoleAttributes) Descriptor deprecated

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

Deprecated: Use RoleAttributes.ProtoReflect.Descriptor instead.

func (*RoleAttributes) GetCreatedAt

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

func (*RoleAttributes) GetDescription

func (x *RoleAttributes) GetDescription() string

func (*RoleAttributes) GetRole

func (x *RoleAttributes) GetRole() string

func (*RoleAttributes) GetUpdatedAt

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

func (*RoleAttributes) ProtoMessage

func (*RoleAttributes) ProtoMessage()

func (*RoleAttributes) ProtoReflect

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

func (*RoleAttributes) Reset

func (x *RoleAttributes) Reset()

func (*RoleAttributes) String

func (x *RoleAttributes) String() string

func (*RoleAttributes) Validate

func (this *RoleAttributes) Validate() error

type RoleCollection

type RoleCollection struct {
	Data     []*RoleData    `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Links    *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"`
	Included []*anypb.Any   `protobuf:"bytes,3,rep,name=included,proto3" json:"included,omitempty"`
	// contains filtered or unexported fields
}

A role collection definition.

func (*RoleCollection) Descriptor deprecated

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

Deprecated: Use RoleCollection.ProtoReflect.Descriptor instead.

func (*RoleCollection) GetData

func (x *RoleCollection) GetData() []*RoleData

func (*RoleCollection) GetIncluded

func (x *RoleCollection) GetIncluded() []*anypb.Any
func (x *RoleCollection) GetLinks() *jsonapi.Links

func (*RoleCollection) ProtoMessage

func (*RoleCollection) ProtoMessage()

func (*RoleCollection) ProtoReflect

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

func (*RoleCollection) Reset

func (x *RoleCollection) Reset()

func (*RoleCollection) String

func (x *RoleCollection) String() string

func (*RoleCollection) Validate

func (this *RoleCollection) Validate() error

type RoleData

type RoleData struct {
	Type          string                     `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id            int64                      `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes    *RoleAttributes            `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Links         *jsonapi.Links             `protobuf:"bytes,4,opt,name=links,proto3" json:"links,omitempty"`
	Relationships *ExistingRoleRelationships `protobuf:"bytes,5,opt,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

A top level container for role data.

func (*RoleData) Descriptor deprecated

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

Deprecated: Use RoleData.ProtoReflect.Descriptor instead.

func (*RoleData) GetAttributes

func (x *RoleData) GetAttributes() *RoleAttributes

func (*RoleData) GetId

func (x *RoleData) GetId() int64
func (x *RoleData) GetLinks() *jsonapi.Links

func (*RoleData) GetRelationships

func (x *RoleData) GetRelationships() *ExistingRoleRelationships

func (*RoleData) GetType

func (x *RoleData) GetType() string

func (*RoleData) ProtoMessage

func (*RoleData) ProtoMessage()

func (*RoleData) ProtoReflect

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

func (*RoleData) Reset

func (x *RoleData) Reset()

func (*RoleData) String

func (x *RoleData) String() string

func (*RoleData) Validate

func (this *RoleData) Validate() error

type RoleServiceClient

type RoleServiceClient interface {
	// Gets the specified role
	GetRole(ctx context.Context, in *jsonapi.GetRequest, opts ...grpc.CallOption) (*Role, error)
	// Gets all related users
	GetRelatedUsers(ctx context.Context, in *jsonapi.RelationshipRequestWithPagination, opts ...grpc.CallOption) (*UserCollection, error)
	// Gets all related permissions
	GetRelatedPermissions(ctx context.Context, in *jsonapi.RelationshipRequest, opts ...grpc.CallOption) (*PermissionCollection, error)
	// List all roles. Both *users* and *permissions* relationships are allowed in the include parameter.
	ListRoles(ctx context.Context, in *jsonapi.SimpleListRequest, opts ...grpc.CallOption) (*RoleCollection, error)
	// Create an role
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*Role, error)
	// Create user relationship with role
	CreateUserRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Create permission relationship with role
	CreatePermissionRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Update an role
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*Role, error)
	// Update existing user relationship with role
	UpdateUserRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Update existing permission relationship with role
	UpdatePermissionRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete an role
	DeleteRole(ctx context.Context, in *jsonapi.DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete existing user relationship with role
	DeleteUserRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete existing permission relationship with role
	DeletePermissionRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

RoleServiceClient is the client API for RoleService service.

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

type RoleServiceServer

type RoleServiceServer interface {
	// Gets the specified role
	GetRole(context.Context, *jsonapi.GetRequest) (*Role, error)
	// Gets all related users
	GetRelatedUsers(context.Context, *jsonapi.RelationshipRequestWithPagination) (*UserCollection, error)
	// Gets all related permissions
	GetRelatedPermissions(context.Context, *jsonapi.RelationshipRequest) (*PermissionCollection, error)
	// List all roles. Both *users* and *permissions* relationships are allowed in the include parameter.
	ListRoles(context.Context, *jsonapi.SimpleListRequest) (*RoleCollection, error)
	// Create an role
	CreateRole(context.Context, *CreateRoleRequest) (*Role, error)
	// Create user relationship with role
	CreateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// Create permission relationship with role
	CreatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// Update an role
	UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error)
	// Update existing user relationship with role
	UpdateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// Update existing permission relationship with role
	UpdatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// Delete an role
	DeleteRole(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
	// Delete existing user relationship with role
	DeleteUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// Delete existing permission relationship with role
	DeletePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

RoleServiceServer is the server API for RoleService service. All implementations must embed UnimplementedRoleServiceServer for forward compatibility

type UnimplementedPermissionServiceServer

type UnimplementedPermissionServiceServer struct {
}

UnimplementedPermissionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPermissionServiceServer) CreatePermission

func (UnimplementedPermissionServiceServer) DeletePermission

func (UnimplementedPermissionServiceServer) GetPermission

func (UnimplementedPermissionServiceServer) ListPermissions

func (UnimplementedPermissionServiceServer) UpdatePermission

type UnimplementedRoleServiceServer

type UnimplementedRoleServiceServer struct {
}

UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRoleServiceServer) CreatePermissionRelationship

func (UnimplementedRoleServiceServer) CreateRole

func (UnimplementedRoleServiceServer) CreateUserRelationship

func (UnimplementedRoleServiceServer) DeletePermissionRelationship

func (UnimplementedRoleServiceServer) DeleteRole

func (UnimplementedRoleServiceServer) DeleteUserRelationship

func (UnimplementedRoleServiceServer) GetRelatedPermissions

func (UnimplementedRoleServiceServer) GetRole

func (UnimplementedRoleServiceServer) ListRoles

func (UnimplementedRoleServiceServer) UpdatePermissionRelationship

func (UnimplementedRoleServiceServer) UpdateRole

func (UnimplementedRoleServiceServer) UpdateUserRelationship

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateRoleRelationship

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteRoleRelationship

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) ExistUser

func (UnimplementedUserServiceServer) GetRelatedRoles

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) GetUserByEmail

func (UnimplementedUserServiceServer) Healthz

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) UpdateRoleRelationship

func (UnimplementedUserServiceServer) UpdateUser

type UnsafePermissionServiceServer

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

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

type UnsafeRoleServiceServer

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

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

type UnsafeUserServiceServer

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

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

type UpdatePermissionRequest

type UpdatePermissionRequest struct {
	Data *UpdatePermissionRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Unique id, required
	Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// An optional mask specifying which fields to update.
	// Presence of this field allow partial updates.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePermissionRequest) Descriptor deprecated

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

Deprecated: Use UpdatePermissionRequest.ProtoReflect.Descriptor instead.

func (*UpdatePermissionRequest) GetData

func (*UpdatePermissionRequest) GetId

func (x *UpdatePermissionRequest) GetId() int64

func (*UpdatePermissionRequest) GetUpdateMask

func (x *UpdatePermissionRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdatePermissionRequest) ProtoMessage

func (*UpdatePermissionRequest) ProtoMessage()

func (*UpdatePermissionRequest) ProtoReflect

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

func (*UpdatePermissionRequest) Reset

func (x *UpdatePermissionRequest) Reset()

func (*UpdatePermissionRequest) String

func (x *UpdatePermissionRequest) String() string

func (*UpdatePermissionRequest) Validate

func (this *UpdatePermissionRequest) Validate() error

type UpdatePermissionRequest_Data

type UpdatePermissionRequest_Data struct {
	Type       string                `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id         int64                 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes *PermissionAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePermissionRequest_Data) Descriptor deprecated

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

Deprecated: Use UpdatePermissionRequest_Data.ProtoReflect.Descriptor instead.

func (*UpdatePermissionRequest_Data) GetAttributes

func (*UpdatePermissionRequest_Data) GetId

func (*UpdatePermissionRequest_Data) GetType

func (x *UpdatePermissionRequest_Data) GetType() string

func (*UpdatePermissionRequest_Data) ProtoMessage

func (*UpdatePermissionRequest_Data) ProtoMessage()

func (*UpdatePermissionRequest_Data) ProtoReflect

func (*UpdatePermissionRequest_Data) Reset

func (x *UpdatePermissionRequest_Data) Reset()

func (*UpdatePermissionRequest_Data) String

func (*UpdatePermissionRequest_Data) Validate

func (this *UpdatePermissionRequest_Data) Validate() error

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Data *UpdateRoleRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Unique id, required
	Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// An optional mask specifying which fields to update.
	// Presence of this field allow partial updates.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest) Descriptor deprecated

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

Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest) GetData

func (*UpdateRoleRequest) GetId

func (x *UpdateRoleRequest) GetId() int64

func (*UpdateRoleRequest) GetUpdateMask

func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateRoleRequest) ProtoMessage

func (*UpdateRoleRequest) ProtoMessage()

func (*UpdateRoleRequest) ProtoReflect

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

func (*UpdateRoleRequest) Reset

func (x *UpdateRoleRequest) Reset()

func (*UpdateRoleRequest) String

func (x *UpdateRoleRequest) String() string

func (*UpdateRoleRequest) Validate

func (this *UpdateRoleRequest) Validate() error

type UpdateRoleRequest_Data

type UpdateRoleRequest_Data struct {
	Type          string                     `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id            int64                      `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes    *RoleAttributes            `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Relationships *ExistingRoleRelationships `protobuf:"bytes,4,opt,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest_Data) Descriptor deprecated

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

Deprecated: Use UpdateRoleRequest_Data.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest_Data) GetAttributes

func (x *UpdateRoleRequest_Data) GetAttributes() *RoleAttributes

func (*UpdateRoleRequest_Data) GetId

func (x *UpdateRoleRequest_Data) GetId() int64

func (*UpdateRoleRequest_Data) GetRelationships

func (x *UpdateRoleRequest_Data) GetRelationships() *ExistingRoleRelationships

func (*UpdateRoleRequest_Data) GetType

func (x *UpdateRoleRequest_Data) GetType() string

func (*UpdateRoleRequest_Data) ProtoMessage

func (*UpdateRoleRequest_Data) ProtoMessage()

func (*UpdateRoleRequest_Data) ProtoReflect

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

func (*UpdateRoleRequest_Data) Reset

func (x *UpdateRoleRequest_Data) Reset()

func (*UpdateRoleRequest_Data) String

func (x *UpdateRoleRequest_Data) String() string

func (*UpdateRoleRequest_Data) Validate

func (this *UpdateRoleRequest_Data) Validate() error

type UpdateUserRequest

type UpdateUserRequest struct {
	Data *UpdateUserRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Unique id, required
	Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// An optional mask specifying which fields to update.
	// Presence of this field allow partial updates.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetData

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() int64

func (*UpdateUserRequest) GetUpdateMask

func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

func (*UpdateUserRequest) Validate

func (this *UpdateUserRequest) Validate() error

type UpdateUserRequest_Data

type UpdateUserRequest_Data struct {
	Type          string                     `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id            int64                      `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes    *UserAttributes            `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Relationships *ExistingUserRelationships `protobuf:"bytes,4,opt,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest_Data) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest_Data.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest_Data) GetAttributes

func (x *UpdateUserRequest_Data) GetAttributes() *UserAttributes

func (*UpdateUserRequest_Data) GetId

func (x *UpdateUserRequest_Data) GetId() int64

func (*UpdateUserRequest_Data) GetRelationships

func (x *UpdateUserRequest_Data) GetRelationships() *ExistingUserRelationships

func (*UpdateUserRequest_Data) GetType

func (x *UpdateUserRequest_Data) GetType() string

func (*UpdateUserRequest_Data) ProtoMessage

func (*UpdateUserRequest_Data) ProtoMessage()

func (*UpdateUserRequest_Data) ProtoReflect

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

func (*UpdateUserRequest_Data) Reset

func (x *UpdateUserRequest_Data) Reset()

func (*UpdateUserRequest_Data) String

func (x *UpdateUserRequest_Data) String() string

func (*UpdateUserRequest_Data) Validate

func (this *UpdateUserRequest_Data) Validate() error

type User

type User struct {
	Data     *UserData      `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Links    *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"`
	Included []*anypb.Any   `protobuf:"bytes,3,rep,name=included,proto3" json:"included,omitempty"`
	// contains filtered or unexported fields
}

A user resource.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetData

func (x *User) GetData() *UserData

func (*User) GetIncluded

func (x *User) GetIncluded() []*anypb.Any
func (x *User) GetLinks() *jsonapi.Links

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (this *User) Validate() error

type UserAttributes

type UserAttributes struct {

	// First name.
	FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	// Last name.
	LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// Email.
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// Organization in which the user belong.
	Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"`
	// Group in which the user belong.
	GroupName string `protobuf:"bytes,5,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	// Address.
	FirstAddress string `protobuf:"bytes,6,opt,name=first_address,json=firstAddress,proto3" json:"first_address,omitempty"`
	// More address.
	SecondAddress string `protobuf:"bytes,7,opt,name=second_address,json=secondAddress,proto3" json:"second_address,omitempty"`
	// City.
	City string `protobuf:"bytes,8,opt,name=city,proto3" json:"city,omitempty"`
	// State.
	State string `protobuf:"bytes,9,opt,name=state,proto3" json:"state,omitempty"`
	// Zipcode.
	Zipcode string `protobuf:"bytes,10,opt,name=zipcode,proto3" json:"zipcode,omitempty"`
	// Country.
	Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"`
	// Phone no.
	Phone string `protobuf:"bytes,12,opt,name=phone,proto3" json:"phone,omitempty"`
	// Current status of user.
	IsActive bool `protobuf:"varint,13,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// Timestamp for creation and update
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

A container for user fields.

func (*UserAttributes) Descriptor deprecated

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

Deprecated: Use UserAttributes.ProtoReflect.Descriptor instead.

func (*UserAttributes) GetCity

func (x *UserAttributes) GetCity() string

func (*UserAttributes) GetCountry

func (x *UserAttributes) GetCountry() string

func (*UserAttributes) GetCreatedAt

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

func (*UserAttributes) GetEmail

func (x *UserAttributes) GetEmail() string

func (*UserAttributes) GetFirstAddress

func (x *UserAttributes) GetFirstAddress() string

func (*UserAttributes) GetFirstName

func (x *UserAttributes) GetFirstName() string

func (*UserAttributes) GetGroupName

func (x *UserAttributes) GetGroupName() string

func (*UserAttributes) GetIsActive

func (x *UserAttributes) GetIsActive() bool

func (*UserAttributes) GetLastName

func (x *UserAttributes) GetLastName() string

func (*UserAttributes) GetOrganization

func (x *UserAttributes) GetOrganization() string

func (*UserAttributes) GetPhone

func (x *UserAttributes) GetPhone() string

func (*UserAttributes) GetSecondAddress

func (x *UserAttributes) GetSecondAddress() string

func (*UserAttributes) GetState

func (x *UserAttributes) GetState() string

func (*UserAttributes) GetUpdatedAt

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

func (*UserAttributes) GetZipcode

func (x *UserAttributes) GetZipcode() string

func (*UserAttributes) ProtoMessage

func (*UserAttributes) ProtoMessage()

func (*UserAttributes) ProtoReflect

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

func (*UserAttributes) Reset

func (x *UserAttributes) Reset()

func (*UserAttributes) String

func (x *UserAttributes) String() string

func (*UserAttributes) Validate

func (this *UserAttributes) Validate() error

type UserCollection

type UserCollection struct {
	Data     []*UserData              `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Links    *jsonapi.PaginationLinks `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"`
	Meta     *jsonapi.Meta            `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	Included []*anypb.Any             `protobuf:"bytes,4,rep,name=included,proto3" json:"included,omitempty"`
	// contains filtered or unexported fields
}

A user collection resource.

func (*UserCollection) Descriptor deprecated

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

Deprecated: Use UserCollection.ProtoReflect.Descriptor instead.

func (*UserCollection) GetData

func (x *UserCollection) GetData() []*UserData

func (*UserCollection) GetIncluded

func (x *UserCollection) GetIncluded() []*anypb.Any
func (x *UserCollection) GetLinks() *jsonapi.PaginationLinks

func (*UserCollection) GetMeta

func (x *UserCollection) GetMeta() *jsonapi.Meta

func (*UserCollection) ProtoMessage

func (*UserCollection) ProtoMessage()

func (*UserCollection) ProtoReflect

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

func (*UserCollection) Reset

func (x *UserCollection) Reset()

func (*UserCollection) String

func (x *UserCollection) String() string

func (*UserCollection) Validate

func (this *UserCollection) Validate() error

type UserData

type UserData struct {

	// The resource name.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Unique id.
	Id            int64                      `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes    *UserAttributes            `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Links         *jsonapi.Links             `protobuf:"bytes,4,opt,name=links,proto3" json:"links,omitempty"`
	Relationships *ExistingUserRelationships `protobuf:"bytes,5,opt,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

A top level container for user data.

func (*UserData) Descriptor deprecated

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

Deprecated: Use UserData.ProtoReflect.Descriptor instead.

func (*UserData) GetAttributes

func (x *UserData) GetAttributes() *UserAttributes

func (*UserData) GetId

func (x *UserData) GetId() int64
func (x *UserData) GetLinks() *jsonapi.Links

func (*UserData) GetRelationships

func (x *UserData) GetRelationships() *ExistingUserRelationships

func (*UserData) GetType

func (x *UserData) GetType() string

func (*UserData) ProtoMessage

func (*UserData) ProtoMessage()

func (*UserData) ProtoReflect

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

func (*UserData) Reset

func (x *UserData) Reset()

func (*UserData) String

func (x *UserData) String() string

func (*UserData) Validate

func (this *UserData) Validate() error

type UserServiceClient

type UserServiceClient interface {
	// Check the existence of user
	ExistUser(ctx context.Context, in *jsonapi.IdRequest, opts ...grpc.CallOption) (*jsonapi.ExistResponse, error)
	// Gets the specified user
	GetUser(ctx context.Context, in *jsonapi.GetRequest, opts ...grpc.CallOption) (*User, error)
	// Gets the specified user by their email id
	GetUserByEmail(ctx context.Context, in *jsonapi.GetEmailRequest, opts ...grpc.CallOption) (*User, error)
	// Gets all related roles
	GetRelatedRoles(ctx context.Context, in *jsonapi.RelationshipRequest, opts ...grpc.CallOption) (*RoleCollection, error)
	// List all users. Only *roles* relationship is allowed for inclusion.
	ListUsers(ctx context.Context, in *jsonapi.ListRequest, opts ...grpc.CallOption) (*UserCollection, error)
	// Create an user
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Create relationship links with roles
	CreateRoleRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Update relationship links with roles
	UpdateRoleRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete an user
	DeleteUser(ctx context.Context, in *jsonapi.DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete relationship links with roles
	DeleteRoleRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Basic health check that always return success
	Healthz(ctx context.Context, in *jsonapi.HealthzIdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UserServiceClient is the client API for UserService service.

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

type UserServiceServer

type UserServiceServer interface {
	// Check the existence of user
	ExistUser(context.Context, *jsonapi.IdRequest) (*jsonapi.ExistResponse, error)
	// Gets the specified user
	GetUser(context.Context, *jsonapi.GetRequest) (*User, error)
	// Gets the specified user by their email id
	GetUserByEmail(context.Context, *jsonapi.GetEmailRequest) (*User, error)
	// Gets all related roles
	GetRelatedRoles(context.Context, *jsonapi.RelationshipRequest) (*RoleCollection, error)
	// List all users. Only *roles* relationship is allowed for inclusion.
	ListUsers(context.Context, *jsonapi.ListRequest) (*UserCollection, error)
	// Create an user
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	// Create relationship links with roles
	CreateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	// Update relationship links with roles
	UpdateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// Delete an user
	DeleteUser(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
	// Delete relationship links with roles
	DeleteRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
	// Basic health check that always return success
	Healthz(context.Context, *jsonapi.HealthzIdRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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