rector

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RectorServicePerm perms.Category = "RectorService"

	RectorServiceCreateRolePerm              perms.Name = "CreateRole"
	RectorServiceDeleteRolePerm              perms.Name = "DeleteRole"
	RectorServiceGetJobPropsPerm             perms.Name = "GetJobProps"
	RectorServiceGetPermissionsPerm          perms.Name = "GetPermissions"
	RectorServiceGetPermissionsJobsPermField perms.Key  = "Jobs"
	RectorServiceGetRolesPerm                perms.Name = "GetRoles"
	RectorServiceSetJobPropsPerm             perms.Name = "SetJobProps"
	RectorServiceUpdateRolePermsPerm         perms.Name = "UpdateRolePerms"
	RectorServiceViewAuditLogPerm            perms.Name = "ViewAuditLog"
)
View Source
const AuditLogPageSize = 30

Variables

View Source
var (
	InvalidRequestErr    = status.Error(codes.InvalidArgument, "Invalid role action requested!")
	NoPermissionErr      = status.Error(codes.PermissionDenied, "No permission to create/change/delete role!")
	RoleAlreadyExistsErr = status.Error(codes.InvalidArgument, "Role already exists!")
	OwnRoleDeletionErr   = status.Error(codes.InvalidArgument, "Can't delete your own role!")
)
View Source
var File_services_rector_rector_proto protoreflect.FileDescriptor
View Source
var PermsRemap = map[string]string{

	"RectorService/GetRole": "RectorService/GetRoles",
}
View Source
var RectorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "services.rector.RectorService",
	HandlerType: (*RectorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetJobProps",
			Handler:    _RectorService_GetJobProps_Handler,
		},
		{
			MethodName: "SetJobProps",
			Handler:    _RectorService_SetJobProps_Handler,
		},
		{
			MethodName: "GetRoles",
			Handler:    _RectorService_GetRoles_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _RectorService_GetRole_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _RectorService_CreateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _RectorService_DeleteRole_Handler,
		},
		{
			MethodName: "UpdateRolePerms",
			Handler:    _RectorService_UpdateRolePerms_Handler,
		},
		{
			MethodName: "GetPermissions",
			Handler:    _RectorService_GetPermissions_Handler,
		},
		{
			MethodName: "ViewAuditLog",
			Handler:    _RectorService_ViewAuditLog_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services/rector/rector.proto",
}

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

Functions

func RegisterRectorServiceServer

func RegisterRectorServiceServer(s grpc.ServiceRegistrar, srv RectorServiceServer)

Types

type AttrsUpdate

type AttrsUpdate struct {
	ToUpdate []*permissions.RoleAttribute `protobuf:"bytes,1,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"`
	ToRemove []*permissions.RoleAttribute `protobuf:"bytes,2,rep,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"`
	// contains filtered or unexported fields
}

func (*AttrsUpdate) Descriptor deprecated

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

Deprecated: Use AttrsUpdate.ProtoReflect.Descriptor instead.

func (*AttrsUpdate) GetToRemove

func (x *AttrsUpdate) GetToRemove() []*permissions.RoleAttribute

func (*AttrsUpdate) GetToUpdate

func (x *AttrsUpdate) GetToUpdate() []*permissions.RoleAttribute

func (*AttrsUpdate) ProtoMessage

func (*AttrsUpdate) ProtoMessage()

func (*AttrsUpdate) ProtoReflect

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

func (*AttrsUpdate) Reset

func (x *AttrsUpdate) Reset()

func (*AttrsUpdate) String

func (x *AttrsUpdate) String() string

func (*AttrsUpdate) Validate

func (m *AttrsUpdate) Validate() error

Validate checks the field values on AttrsUpdate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttrsUpdate) ValidateAll

func (m *AttrsUpdate) ValidateAll() error

ValidateAll checks the field values on AttrsUpdate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttrsUpdateMultiError, or nil if none found.

type AttrsUpdateMultiError

type AttrsUpdateMultiError []error

AttrsUpdateMultiError is an error wrapping multiple validation errors returned by AttrsUpdate.ValidateAll() if the designated constraints aren't met.

func (AttrsUpdateMultiError) AllErrors

func (m AttrsUpdateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttrsUpdateMultiError) Error

func (m AttrsUpdateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AttrsUpdateValidationError

type AttrsUpdateValidationError struct {
	// contains filtered or unexported fields
}

AttrsUpdateValidationError is the validation error returned by AttrsUpdate.Validate if the designated constraints aren't met.

func (AttrsUpdateValidationError) Cause

Cause function returns cause value.

func (AttrsUpdateValidationError) Error

Error satisfies the builtin error interface

func (AttrsUpdateValidationError) ErrorName

func (e AttrsUpdateValidationError) ErrorName() string

ErrorName returns error name.

func (AttrsUpdateValidationError) Field

Field function returns field value.

func (AttrsUpdateValidationError) Key

Key function returns key value.

func (AttrsUpdateValidationError) Reason

Reason function returns reason value.

type CreateRoleRequest

type CreateRoleRequest struct {
	Job   string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	Grade int32  `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetGrade

func (x *CreateRoleRequest) GetGrade() int32

func (*CreateRoleRequest) GetJob

func (x *CreateRoleRequest) GetJob() string

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 (m *CreateRoleRequest) Validate() error

Validate checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateRoleRequest) ValidateAll

func (m *CreateRoleRequest) ValidateAll() error

ValidateAll checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRoleRequestMultiError, or nil if none found.

type CreateRoleRequestMultiError

type CreateRoleRequestMultiError []error

CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.

func (CreateRoleRequestMultiError) AllErrors

func (m CreateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRoleRequestValidationError

type CreateRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.

func (CreateRoleRequestValidationError) Cause

Cause function returns cause value.

func (CreateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleRequestValidationError) Field

Field function returns field value.

func (CreateRoleRequestValidationError) Key

Key function returns key value.

func (CreateRoleRequestValidationError) Reason

Reason function returns reason value.

type CreateRoleResponse

type CreateRoleResponse struct {
	Role *permissions.Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleResponse) Descriptor deprecated

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

Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.

func (*CreateRoleResponse) GetRole

func (x *CreateRoleResponse) GetRole() *permissions.Role

func (*CreateRoleResponse) ProtoMessage

func (*CreateRoleResponse) ProtoMessage()

func (*CreateRoleResponse) ProtoReflect

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

func (*CreateRoleResponse) Reset

func (x *CreateRoleResponse) Reset()

func (*CreateRoleResponse) String

func (x *CreateRoleResponse) String() string

func (*CreateRoleResponse) Validate

func (m *CreateRoleResponse) Validate() error

Validate checks the field values on CreateRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateRoleResponse) ValidateAll

func (m *CreateRoleResponse) ValidateAll() error

ValidateAll checks the field values on CreateRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRoleResponseMultiError, or nil if none found.

type CreateRoleResponseMultiError

type CreateRoleResponseMultiError []error

CreateRoleResponseMultiError is an error wrapping multiple validation errors returned by CreateRoleResponse.ValidateAll() if the designated constraints aren't met.

func (CreateRoleResponseMultiError) AllErrors

func (m CreateRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRoleResponseValidationError

type CreateRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateRoleResponseValidationError is the validation error returned by CreateRoleResponse.Validate if the designated constraints aren't met.

func (CreateRoleResponseValidationError) Cause

Cause function returns cause value.

func (CreateRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleResponseValidationError) Field

Field function returns field value.

func (CreateRoleResponseValidationError) Key

Key function returns key value.

func (CreateRoleResponseValidationError) Reason

Reason function returns reason value.

type DeleteRoleRequest

type DeleteRoleRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRoleRequest) Descriptor deprecated

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

Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteRoleRequest) GetId

func (x *DeleteRoleRequest) GetId() uint64

func (*DeleteRoleRequest) ProtoMessage

func (*DeleteRoleRequest) ProtoMessage()

func (*DeleteRoleRequest) ProtoReflect

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

func (*DeleteRoleRequest) Reset

func (x *DeleteRoleRequest) Reset()

func (*DeleteRoleRequest) String

func (x *DeleteRoleRequest) String() string

func (*DeleteRoleRequest) Validate

func (m *DeleteRoleRequest) Validate() error

Validate checks the field values on DeleteRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRoleRequest) ValidateAll

func (m *DeleteRoleRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleRequestMultiError, or nil if none found.

type DeleteRoleRequestMultiError

type DeleteRoleRequestMultiError []error

DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRoleRequestMultiError) AllErrors

func (m DeleteRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRoleRequestValidationError

type DeleteRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.

func (DeleteRoleRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleRequestValidationError) Field

Field function returns field value.

func (DeleteRoleRequestValidationError) Key

Key function returns key value.

func (DeleteRoleRequestValidationError) Reason

Reason function returns reason value.

type DeleteRoleResponse

type DeleteRoleResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteRoleResponse) Descriptor deprecated

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

Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.

func (*DeleteRoleResponse) ProtoMessage

func (*DeleteRoleResponse) ProtoMessage()

func (*DeleteRoleResponse) ProtoReflect

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

func (*DeleteRoleResponse) Reset

func (x *DeleteRoleResponse) Reset()

func (*DeleteRoleResponse) String

func (x *DeleteRoleResponse) String() string

func (*DeleteRoleResponse) Validate

func (m *DeleteRoleResponse) Validate() error

Validate checks the field values on DeleteRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRoleResponse) ValidateAll

func (m *DeleteRoleResponse) ValidateAll() error

ValidateAll checks the field values on DeleteRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleResponseMultiError, or nil if none found.

type DeleteRoleResponseMultiError

type DeleteRoleResponseMultiError []error

DeleteRoleResponseMultiError is an error wrapping multiple validation errors returned by DeleteRoleResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteRoleResponseMultiError) AllErrors

func (m DeleteRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRoleResponseValidationError

type DeleteRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteRoleResponseValidationError is the validation error returned by DeleteRoleResponse.Validate if the designated constraints aren't met.

func (DeleteRoleResponseValidationError) Cause

Cause function returns cause value.

func (DeleteRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleResponseValidationError) Field

Field function returns field value.

func (DeleteRoleResponseValidationError) Key

Key function returns key value.

func (DeleteRoleResponseValidationError) Reason

Reason function returns reason value.

type GetJobPropsRequest

type GetJobPropsRequest struct {
	// contains filtered or unexported fields
}

func (*GetJobPropsRequest) Descriptor deprecated

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

Deprecated: Use GetJobPropsRequest.ProtoReflect.Descriptor instead.

func (*GetJobPropsRequest) ProtoMessage

func (*GetJobPropsRequest) ProtoMessage()

func (*GetJobPropsRequest) ProtoReflect

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

func (*GetJobPropsRequest) Reset

func (x *GetJobPropsRequest) Reset()

func (*GetJobPropsRequest) String

func (x *GetJobPropsRequest) String() string

func (*GetJobPropsRequest) Validate

func (m *GetJobPropsRequest) Validate() error

Validate checks the field values on GetJobPropsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetJobPropsRequest) ValidateAll

func (m *GetJobPropsRequest) ValidateAll() error

ValidateAll checks the field values on GetJobPropsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJobPropsRequestMultiError, or nil if none found.

type GetJobPropsRequestMultiError

type GetJobPropsRequestMultiError []error

GetJobPropsRequestMultiError is an error wrapping multiple validation errors returned by GetJobPropsRequest.ValidateAll() if the designated constraints aren't met.

func (GetJobPropsRequestMultiError) AllErrors

func (m GetJobPropsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetJobPropsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetJobPropsRequestValidationError

type GetJobPropsRequestValidationError struct {
	// contains filtered or unexported fields
}

GetJobPropsRequestValidationError is the validation error returned by GetJobPropsRequest.Validate if the designated constraints aren't met.

func (GetJobPropsRequestValidationError) Cause

Cause function returns cause value.

func (GetJobPropsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetJobPropsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetJobPropsRequestValidationError) Field

Field function returns field value.

func (GetJobPropsRequestValidationError) Key

Key function returns key value.

func (GetJobPropsRequestValidationError) Reason

Reason function returns reason value.

type GetJobPropsResponse

type GetJobPropsResponse struct {
	JobProps *jobs.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"`
	// contains filtered or unexported fields
}

func (*GetJobPropsResponse) Descriptor deprecated

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

Deprecated: Use GetJobPropsResponse.ProtoReflect.Descriptor instead.

func (*GetJobPropsResponse) GetJobProps

func (x *GetJobPropsResponse) GetJobProps() *jobs.JobProps

func (*GetJobPropsResponse) ProtoMessage

func (*GetJobPropsResponse) ProtoMessage()

func (*GetJobPropsResponse) ProtoReflect

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

func (*GetJobPropsResponse) Reset

func (x *GetJobPropsResponse) Reset()

func (*GetJobPropsResponse) String

func (x *GetJobPropsResponse) String() string

func (*GetJobPropsResponse) Validate

func (m *GetJobPropsResponse) Validate() error

Validate checks the field values on GetJobPropsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetJobPropsResponse) ValidateAll

func (m *GetJobPropsResponse) ValidateAll() error

ValidateAll checks the field values on GetJobPropsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJobPropsResponseMultiError, or nil if none found.

type GetJobPropsResponseMultiError

type GetJobPropsResponseMultiError []error

GetJobPropsResponseMultiError is an error wrapping multiple validation errors returned by GetJobPropsResponse.ValidateAll() if the designated constraints aren't met.

func (GetJobPropsResponseMultiError) AllErrors

func (m GetJobPropsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetJobPropsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetJobPropsResponseValidationError

type GetJobPropsResponseValidationError struct {
	// contains filtered or unexported fields
}

GetJobPropsResponseValidationError is the validation error returned by GetJobPropsResponse.Validate if the designated constraints aren't met.

func (GetJobPropsResponseValidationError) Cause

Cause function returns cause value.

func (GetJobPropsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetJobPropsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetJobPropsResponseValidationError) Field

Field function returns field value.

func (GetJobPropsResponseValidationError) Key

Key function returns key value.

func (GetJobPropsResponseValidationError) Reason

Reason function returns reason value.

type GetPermissionsRequest

type GetPermissionsRequest struct {
	// contains filtered or unexported fields
}

func (*GetPermissionsRequest) Descriptor deprecated

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

Deprecated: Use GetPermissionsRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionsRequest) ProtoMessage

func (*GetPermissionsRequest) ProtoMessage()

func (*GetPermissionsRequest) ProtoReflect

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

func (*GetPermissionsRequest) Reset

func (x *GetPermissionsRequest) Reset()

func (*GetPermissionsRequest) String

func (x *GetPermissionsRequest) String() string

func (*GetPermissionsRequest) Validate

func (m *GetPermissionsRequest) Validate() error

Validate checks the field values on GetPermissionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetPermissionsRequest) ValidateAll

func (m *GetPermissionsRequest) ValidateAll() error

ValidateAll checks the field values on GetPermissionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPermissionsRequestMultiError, or nil if none found.

type GetPermissionsRequestMultiError

type GetPermissionsRequestMultiError []error

GetPermissionsRequestMultiError is an error wrapping multiple validation errors returned by GetPermissionsRequest.ValidateAll() if the designated constraints aren't met.

func (GetPermissionsRequestMultiError) AllErrors

func (m GetPermissionsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetPermissionsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetPermissionsRequestValidationError

type GetPermissionsRequestValidationError struct {
	// contains filtered or unexported fields
}

GetPermissionsRequestValidationError is the validation error returned by GetPermissionsRequest.Validate if the designated constraints aren't met.

func (GetPermissionsRequestValidationError) Cause

Cause function returns cause value.

func (GetPermissionsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPermissionsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPermissionsRequestValidationError) Field

Field function returns field value.

func (GetPermissionsRequestValidationError) Key

Key function returns key value.

func (GetPermissionsRequestValidationError) Reason

Reason function returns reason value.

type GetPermissionsResponse

type GetPermissionsResponse struct {
	Permissions []*permissions.Permission    `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Attributes  []*permissions.RoleAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionsResponse) Descriptor deprecated

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

Deprecated: Use GetPermissionsResponse.ProtoReflect.Descriptor instead.

func (*GetPermissionsResponse) GetAttributes

func (x *GetPermissionsResponse) GetAttributes() []*permissions.RoleAttribute

func (*GetPermissionsResponse) GetPermissions

func (x *GetPermissionsResponse) GetPermissions() []*permissions.Permission

func (*GetPermissionsResponse) ProtoMessage

func (*GetPermissionsResponse) ProtoMessage()

func (*GetPermissionsResponse) ProtoReflect

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

func (*GetPermissionsResponse) Reset

func (x *GetPermissionsResponse) Reset()

func (*GetPermissionsResponse) String

func (x *GetPermissionsResponse) String() string

func (*GetPermissionsResponse) Validate

func (m *GetPermissionsResponse) Validate() error

Validate checks the field values on GetPermissionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetPermissionsResponse) ValidateAll

func (m *GetPermissionsResponse) ValidateAll() error

ValidateAll checks the field values on GetPermissionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPermissionsResponseMultiError, or nil if none found.

type GetPermissionsResponseMultiError

type GetPermissionsResponseMultiError []error

GetPermissionsResponseMultiError is an error wrapping multiple validation errors returned by GetPermissionsResponse.ValidateAll() if the designated constraints aren't met.

func (GetPermissionsResponseMultiError) AllErrors

func (m GetPermissionsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetPermissionsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetPermissionsResponseValidationError

type GetPermissionsResponseValidationError struct {
	// contains filtered or unexported fields
}

GetPermissionsResponseValidationError is the validation error returned by GetPermissionsResponse.Validate if the designated constraints aren't met.

func (GetPermissionsResponseValidationError) Cause

Cause function returns cause value.

func (GetPermissionsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPermissionsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPermissionsResponseValidationError) Field

Field function returns field value.

func (GetPermissionsResponseValidationError) Key

Key function returns key value.

func (GetPermissionsResponseValidationError) Reason

Reason function returns reason value.

type GetRoleRequest

type GetRoleRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleRequest) Descriptor deprecated

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

Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.

func (*GetRoleRequest) GetId

func (x *GetRoleRequest) GetId() uint64

func (*GetRoleRequest) ProtoMessage

func (*GetRoleRequest) ProtoMessage()

func (*GetRoleRequest) ProtoReflect

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

func (*GetRoleRequest) Reset

func (x *GetRoleRequest) Reset()

func (*GetRoleRequest) String

func (x *GetRoleRequest) String() string

func (*GetRoleRequest) Validate

func (m *GetRoleRequest) Validate() error

Validate checks the field values on GetRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRoleRequest) ValidateAll

func (m *GetRoleRequest) ValidateAll() error

ValidateAll checks the field values on GetRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleRequestMultiError, or nil if none found.

type GetRoleRequestMultiError

type GetRoleRequestMultiError []error

GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.

func (GetRoleRequestMultiError) AllErrors

func (m GetRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleRequestMultiError) Error

func (m GetRoleRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRoleRequestValidationError

type GetRoleRequestValidationError struct {
	// contains filtered or unexported fields
}

GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.

func (GetRoleRequestValidationError) Cause

Cause function returns cause value.

func (GetRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRoleRequestValidationError) ErrorName

func (e GetRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleRequestValidationError) Field

Field function returns field value.

func (GetRoleRequestValidationError) Key

Key function returns key value.

func (GetRoleRequestValidationError) Reason

Reason function returns reason value.

type GetRoleResponse

type GetRoleResponse struct {
	Role *permissions.Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleResponse) Descriptor deprecated

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

Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.

func (*GetRoleResponse) GetRole

func (x *GetRoleResponse) GetRole() *permissions.Role

func (*GetRoleResponse) ProtoMessage

func (*GetRoleResponse) ProtoMessage()

func (*GetRoleResponse) ProtoReflect

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

func (*GetRoleResponse) Reset

func (x *GetRoleResponse) Reset()

func (*GetRoleResponse) String

func (x *GetRoleResponse) String() string

func (*GetRoleResponse) Validate

func (m *GetRoleResponse) Validate() error

Validate checks the field values on GetRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRoleResponse) ValidateAll

func (m *GetRoleResponse) ValidateAll() error

ValidateAll checks the field values on GetRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleResponseMultiError, or nil if none found.

type GetRoleResponseMultiError

type GetRoleResponseMultiError []error

GetRoleResponseMultiError is an error wrapping multiple validation errors returned by GetRoleResponse.ValidateAll() if the designated constraints aren't met.

func (GetRoleResponseMultiError) AllErrors

func (m GetRoleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetRoleResponseValidationError

type GetRoleResponseValidationError struct {
	// contains filtered or unexported fields
}

GetRoleResponseValidationError is the validation error returned by GetRoleResponse.Validate if the designated constraints aren't met.

func (GetRoleResponseValidationError) Cause

Cause function returns cause value.

func (GetRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (GetRoleResponseValidationError) ErrorName

func (e GetRoleResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleResponseValidationError) Field

Field function returns field value.

func (GetRoleResponseValidationError) Key

Key function returns key value.

func (GetRoleResponseValidationError) Reason

Reason function returns reason value.

type GetRolesRequest

type GetRolesRequest struct {
	// contains filtered or unexported fields
}

func (*GetRolesRequest) Descriptor deprecated

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

Deprecated: Use GetRolesRequest.ProtoReflect.Descriptor instead.

func (*GetRolesRequest) ProtoMessage

func (*GetRolesRequest) ProtoMessage()

func (*GetRolesRequest) ProtoReflect

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

func (*GetRolesRequest) Reset

func (x *GetRolesRequest) Reset()

func (*GetRolesRequest) String

func (x *GetRolesRequest) String() string

func (*GetRolesRequest) Validate

func (m *GetRolesRequest) Validate() error

Validate checks the field values on GetRolesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRolesRequest) ValidateAll

func (m *GetRolesRequest) ValidateAll() error

ValidateAll checks the field values on GetRolesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolesRequestMultiError, or nil if none found.

type GetRolesRequestMultiError

type GetRolesRequestMultiError []error

GetRolesRequestMultiError is an error wrapping multiple validation errors returned by GetRolesRequest.ValidateAll() if the designated constraints aren't met.

func (GetRolesRequestMultiError) AllErrors

func (m GetRolesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolesRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetRolesRequestValidationError

type GetRolesRequestValidationError struct {
	// contains filtered or unexported fields
}

GetRolesRequestValidationError is the validation error returned by GetRolesRequest.Validate if the designated constraints aren't met.

func (GetRolesRequestValidationError) Cause

Cause function returns cause value.

func (GetRolesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRolesRequestValidationError) ErrorName

func (e GetRolesRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRolesRequestValidationError) Field

Field function returns field value.

func (GetRolesRequestValidationError) Key

Key function returns key value.

func (GetRolesRequestValidationError) Reason

Reason function returns reason value.

type GetRolesResponse

type GetRolesResponse struct {
	Roles []*permissions.Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRolesResponse) Descriptor deprecated

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

Deprecated: Use GetRolesResponse.ProtoReflect.Descriptor instead.

func (*GetRolesResponse) GetRoles

func (x *GetRolesResponse) GetRoles() []*permissions.Role

func (*GetRolesResponse) ProtoMessage

func (*GetRolesResponse) ProtoMessage()

func (*GetRolesResponse) ProtoReflect

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

func (*GetRolesResponse) Reset

func (x *GetRolesResponse) Reset()

func (*GetRolesResponse) String

func (x *GetRolesResponse) String() string

func (*GetRolesResponse) Validate

func (m *GetRolesResponse) Validate() error

Validate checks the field values on GetRolesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRolesResponse) ValidateAll

func (m *GetRolesResponse) ValidateAll() error

ValidateAll checks the field values on GetRolesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolesResponseMultiError, or nil if none found.

type GetRolesResponseMultiError

type GetRolesResponseMultiError []error

GetRolesResponseMultiError is an error wrapping multiple validation errors returned by GetRolesResponse.ValidateAll() if the designated constraints aren't met.

func (GetRolesResponseMultiError) AllErrors

func (m GetRolesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolesResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetRolesResponseValidationError

type GetRolesResponseValidationError struct {
	// contains filtered or unexported fields
}

GetRolesResponseValidationError is the validation error returned by GetRolesResponse.Validate if the designated constraints aren't met.

func (GetRolesResponseValidationError) Cause

Cause function returns cause value.

func (GetRolesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetRolesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetRolesResponseValidationError) Field

Field function returns field value.

func (GetRolesResponseValidationError) Key

Key function returns key value.

func (GetRolesResponseValidationError) Reason

Reason function returns reason value.

type PermItem

type PermItem struct {
	Id  uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Val bool   `protobuf:"varint,2,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*PermItem) Descriptor deprecated

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

Deprecated: Use PermItem.ProtoReflect.Descriptor instead.

func (*PermItem) GetId

func (x *PermItem) GetId() uint64

func (*PermItem) GetVal

func (x *PermItem) GetVal() bool

func (*PermItem) ProtoMessage

func (*PermItem) ProtoMessage()

func (*PermItem) ProtoReflect

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

func (*PermItem) Reset

func (x *PermItem) Reset()

func (*PermItem) String

func (x *PermItem) String() string

func (*PermItem) Validate

func (m *PermItem) Validate() error

Validate checks the field values on PermItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PermItem) ValidateAll

func (m *PermItem) ValidateAll() error

ValidateAll checks the field values on PermItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermItemMultiError, or nil if none found.

type PermItemMultiError

type PermItemMultiError []error

PermItemMultiError is an error wrapping multiple validation errors returned by PermItem.ValidateAll() if the designated constraints aren't met.

func (PermItemMultiError) AllErrors

func (m PermItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermItemMultiError) Error

func (m PermItemMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PermItemValidationError

type PermItemValidationError struct {
	// contains filtered or unexported fields
}

PermItemValidationError is the validation error returned by PermItem.Validate if the designated constraints aren't met.

func (PermItemValidationError) Cause

func (e PermItemValidationError) Cause() error

Cause function returns cause value.

func (PermItemValidationError) Error

func (e PermItemValidationError) Error() string

Error satisfies the builtin error interface

func (PermItemValidationError) ErrorName

func (e PermItemValidationError) ErrorName() string

ErrorName returns error name.

func (PermItemValidationError) Field

func (e PermItemValidationError) Field() string

Field function returns field value.

func (PermItemValidationError) Key

func (e PermItemValidationError) Key() bool

Key function returns key value.

func (PermItemValidationError) Reason

func (e PermItemValidationError) Reason() string

Reason function returns reason value.

type PermsUpdate

type PermsUpdate struct {
	ToUpdate []*PermItem `protobuf:"bytes,1,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"`
	ToRemove []uint64    `protobuf:"varint,2,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"`
	// contains filtered or unexported fields
}

func (*PermsUpdate) Descriptor deprecated

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

Deprecated: Use PermsUpdate.ProtoReflect.Descriptor instead.

func (*PermsUpdate) GetToRemove

func (x *PermsUpdate) GetToRemove() []uint64

func (*PermsUpdate) GetToUpdate

func (x *PermsUpdate) GetToUpdate() []*PermItem

func (*PermsUpdate) ProtoMessage

func (*PermsUpdate) ProtoMessage()

func (*PermsUpdate) ProtoReflect

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

func (*PermsUpdate) Reset

func (x *PermsUpdate) Reset()

func (*PermsUpdate) String

func (x *PermsUpdate) String() string

func (*PermsUpdate) Validate

func (m *PermsUpdate) Validate() error

Validate checks the field values on PermsUpdate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PermsUpdate) ValidateAll

func (m *PermsUpdate) ValidateAll() error

ValidateAll checks the field values on PermsUpdate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermsUpdateMultiError, or nil if none found.

type PermsUpdateMultiError

type PermsUpdateMultiError []error

PermsUpdateMultiError is an error wrapping multiple validation errors returned by PermsUpdate.ValidateAll() if the designated constraints aren't met.

func (PermsUpdateMultiError) AllErrors

func (m PermsUpdateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermsUpdateMultiError) Error

func (m PermsUpdateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PermsUpdateValidationError

type PermsUpdateValidationError struct {
	// contains filtered or unexported fields
}

PermsUpdateValidationError is the validation error returned by PermsUpdate.Validate if the designated constraints aren't met.

func (PermsUpdateValidationError) Cause

Cause function returns cause value.

func (PermsUpdateValidationError) Error

Error satisfies the builtin error interface

func (PermsUpdateValidationError) ErrorName

func (e PermsUpdateValidationError) ErrorName() string

ErrorName returns error name.

func (PermsUpdateValidationError) Field

Field function returns field value.

func (PermsUpdateValidationError) Key

Key function returns key value.

func (PermsUpdateValidationError) Reason

Reason function returns reason value.

type RectorServiceClient

type RectorServiceClient interface {
	// @perm
	GetJobProps(ctx context.Context, in *GetJobPropsRequest, opts ...grpc.CallOption) (*GetJobPropsResponse, error)
	// @perm
	SetJobProps(ctx context.Context, in *SetJobPropsRequest, opts ...grpc.CallOption) (*SetJobPropsResponse, error)
	// @perm
	GetRoles(ctx context.Context, in *GetRolesRequest, opts ...grpc.CallOption) (*GetRolesResponse, error)
	// @perm: Name=GetRoles
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error)
	// @perm
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error)
	// @perm
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error)
	// @perm
	UpdateRolePerms(ctx context.Context, in *UpdateRolePermsRequest, opts ...grpc.CallOption) (*UpdateRolePermsResponse, error)
	// @perm: Attrs=Jobs/JobList:"config.C.Game.Livemap.Jobs"
	GetPermissions(ctx context.Context, in *GetPermissionsRequest, opts ...grpc.CallOption) (*GetPermissionsResponse, error)
	// @perm
	ViewAuditLog(ctx context.Context, in *ViewAuditLogRequest, opts ...grpc.CallOption) (*ViewAuditLogResponse, error)
}

RectorServiceClient is the client API for RectorService 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 RectorServiceServer

type RectorServiceServer interface {
	// @perm
	GetJobProps(context.Context, *GetJobPropsRequest) (*GetJobPropsResponse, error)
	// @perm
	SetJobProps(context.Context, *SetJobPropsRequest) (*SetJobPropsResponse, error)
	// @perm
	GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error)
	// @perm: Name=GetRoles
	GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
	// @perm
	CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
	// @perm
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
	// @perm
	UpdateRolePerms(context.Context, *UpdateRolePermsRequest) (*UpdateRolePermsResponse, error)
	// @perm: Attrs=Jobs/JobList:"config.C.Game.Livemap.Jobs"
	GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
	// @perm
	ViewAuditLog(context.Context, *ViewAuditLogRequest) (*ViewAuditLogResponse, error)
	// contains filtered or unexported methods
}

RectorServiceServer is the server API for RectorService service. All implementations must embed UnimplementedRectorServiceServer for forward compatibility

type Server

type Server struct {
	RectorServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(logger *zap.Logger, db *sql.DB, p perms.Permissions, aud audit.IAuditer, c *mstlystcdata.Enricher) *Server

func (*Server) CreateRole

func (s *Server) CreateRole(ctx context.Context, req *CreateRoleRequest) (*CreateRoleResponse, error)

func (*Server) DeleteRole

func (s *Server) DeleteRole(ctx context.Context, req *DeleteRoleRequest) (*DeleteRoleResponse, error)

func (*Server) GetJobProps

func (s *Server) GetJobProps(ctx context.Context, req *GetJobPropsRequest) (*GetJobPropsResponse, error)

func (*Server) GetPermissions

func (s *Server) GetPermissions(ctx context.Context, req *GetPermissionsRequest) (*GetPermissionsResponse, error)

func (*Server) GetPermsRemap

func (s *Server) GetPermsRemap() map[string]string

func (*Server) GetRole

func (s *Server) GetRole(ctx context.Context, req *GetRoleRequest) (*GetRoleResponse, error)

func (*Server) GetRoles

func (s *Server) GetRoles(ctx context.Context, req *GetRolesRequest) (*GetRolesResponse, error)

func (*Server) SetJobProps

func (s *Server) SetJobProps(ctx context.Context, req *SetJobPropsRequest) (*SetJobPropsResponse, error)

func (*Server) UpdateRolePerms

func (s *Server) UpdateRolePerms(ctx context.Context, req *UpdateRolePermsRequest) (*UpdateRolePermsResponse, error)

func (*Server) ViewAuditLog

func (s *Server) ViewAuditLog(ctx context.Context, req *ViewAuditLogRequest) (*ViewAuditLogResponse, error)

type SetJobPropsRequest

type SetJobPropsRequest struct {
	JobProps *jobs.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"`
	// contains filtered or unexported fields
}

func (*SetJobPropsRequest) Descriptor deprecated

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

Deprecated: Use SetJobPropsRequest.ProtoReflect.Descriptor instead.

func (*SetJobPropsRequest) GetJobProps

func (x *SetJobPropsRequest) GetJobProps() *jobs.JobProps

func (*SetJobPropsRequest) ProtoMessage

func (*SetJobPropsRequest) ProtoMessage()

func (*SetJobPropsRequest) ProtoReflect

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

func (*SetJobPropsRequest) Reset

func (x *SetJobPropsRequest) Reset()

func (*SetJobPropsRequest) String

func (x *SetJobPropsRequest) String() string

func (*SetJobPropsRequest) Validate

func (m *SetJobPropsRequest) Validate() error

Validate checks the field values on SetJobPropsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetJobPropsRequest) ValidateAll

func (m *SetJobPropsRequest) ValidateAll() error

ValidateAll checks the field values on SetJobPropsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetJobPropsRequestMultiError, or nil if none found.

type SetJobPropsRequestMultiError

type SetJobPropsRequestMultiError []error

SetJobPropsRequestMultiError is an error wrapping multiple validation errors returned by SetJobPropsRequest.ValidateAll() if the designated constraints aren't met.

func (SetJobPropsRequestMultiError) AllErrors

func (m SetJobPropsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetJobPropsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SetJobPropsRequestValidationError

type SetJobPropsRequestValidationError struct {
	// contains filtered or unexported fields
}

SetJobPropsRequestValidationError is the validation error returned by SetJobPropsRequest.Validate if the designated constraints aren't met.

func (SetJobPropsRequestValidationError) Cause

Cause function returns cause value.

func (SetJobPropsRequestValidationError) Error

Error satisfies the builtin error interface

func (SetJobPropsRequestValidationError) ErrorName

ErrorName returns error name.

func (SetJobPropsRequestValidationError) Field

Field function returns field value.

func (SetJobPropsRequestValidationError) Key

Key function returns key value.

func (SetJobPropsRequestValidationError) Reason

Reason function returns reason value.

type SetJobPropsResponse

type SetJobPropsResponse struct {
	// contains filtered or unexported fields
}

func (*SetJobPropsResponse) Descriptor deprecated

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

Deprecated: Use SetJobPropsResponse.ProtoReflect.Descriptor instead.

func (*SetJobPropsResponse) ProtoMessage

func (*SetJobPropsResponse) ProtoMessage()

func (*SetJobPropsResponse) ProtoReflect

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

func (*SetJobPropsResponse) Reset

func (x *SetJobPropsResponse) Reset()

func (*SetJobPropsResponse) String

func (x *SetJobPropsResponse) String() string

func (*SetJobPropsResponse) Validate

func (m *SetJobPropsResponse) Validate() error

Validate checks the field values on SetJobPropsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetJobPropsResponse) ValidateAll

func (m *SetJobPropsResponse) ValidateAll() error

ValidateAll checks the field values on SetJobPropsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetJobPropsResponseMultiError, or nil if none found.

type SetJobPropsResponseMultiError

type SetJobPropsResponseMultiError []error

SetJobPropsResponseMultiError is an error wrapping multiple validation errors returned by SetJobPropsResponse.ValidateAll() if the designated constraints aren't met.

func (SetJobPropsResponseMultiError) AllErrors

func (m SetJobPropsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetJobPropsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SetJobPropsResponseValidationError

type SetJobPropsResponseValidationError struct {
	// contains filtered or unexported fields
}

SetJobPropsResponseValidationError is the validation error returned by SetJobPropsResponse.Validate if the designated constraints aren't met.

func (SetJobPropsResponseValidationError) Cause

Cause function returns cause value.

func (SetJobPropsResponseValidationError) Error

Error satisfies the builtin error interface

func (SetJobPropsResponseValidationError) ErrorName

ErrorName returns error name.

func (SetJobPropsResponseValidationError) Field

Field function returns field value.

func (SetJobPropsResponseValidationError) Key

Key function returns key value.

func (SetJobPropsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedRectorServiceServer

type UnimplementedRectorServiceServer struct {
}

UnimplementedRectorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRectorServiceServer) CreateRole

func (UnimplementedRectorServiceServer) DeleteRole

func (UnimplementedRectorServiceServer) GetJobProps

func (UnimplementedRectorServiceServer) GetPermissions

func (UnimplementedRectorServiceServer) GetRole

func (UnimplementedRectorServiceServer) GetRoles

func (UnimplementedRectorServiceServer) SetJobProps

func (UnimplementedRectorServiceServer) UpdateRolePerms

func (UnimplementedRectorServiceServer) ViewAuditLog

type UnsafeRectorServiceServer

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

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

type UpdateRolePermsRequest

type UpdateRolePermsRequest struct {
	Id    uint64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Perms *PermsUpdate `protobuf:"bytes,2,opt,name=perms,proto3,oneof" json:"perms,omitempty"`
	Attrs *AttrsUpdate `protobuf:"bytes,3,opt,name=attrs,proto3,oneof" json:"attrs,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRolePermsRequest) Descriptor deprecated

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

Deprecated: Use UpdateRolePermsRequest.ProtoReflect.Descriptor instead.

func (*UpdateRolePermsRequest) GetAttrs

func (x *UpdateRolePermsRequest) GetAttrs() *AttrsUpdate

func (*UpdateRolePermsRequest) GetId

func (x *UpdateRolePermsRequest) GetId() uint64

func (*UpdateRolePermsRequest) GetPerms

func (x *UpdateRolePermsRequest) GetPerms() *PermsUpdate

func (*UpdateRolePermsRequest) ProtoMessage

func (*UpdateRolePermsRequest) ProtoMessage()

func (*UpdateRolePermsRequest) ProtoReflect

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

func (*UpdateRolePermsRequest) Reset

func (x *UpdateRolePermsRequest) Reset()

func (*UpdateRolePermsRequest) String

func (x *UpdateRolePermsRequest) String() string

func (*UpdateRolePermsRequest) Validate

func (m *UpdateRolePermsRequest) Validate() error

Validate checks the field values on UpdateRolePermsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateRolePermsRequest) ValidateAll

func (m *UpdateRolePermsRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRolePermsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRolePermsRequestMultiError, or nil if none found.

type UpdateRolePermsRequestMultiError

type UpdateRolePermsRequestMultiError []error

UpdateRolePermsRequestMultiError is an error wrapping multiple validation errors returned by UpdateRolePermsRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRolePermsRequestMultiError) AllErrors

func (m UpdateRolePermsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRolePermsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRolePermsRequestValidationError

type UpdateRolePermsRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateRolePermsRequestValidationError is the validation error returned by UpdateRolePermsRequest.Validate if the designated constraints aren't met.

func (UpdateRolePermsRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRolePermsRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRolePermsRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRolePermsRequestValidationError) Field

Field function returns field value.

func (UpdateRolePermsRequestValidationError) Key

Key function returns key value.

func (UpdateRolePermsRequestValidationError) Reason

Reason function returns reason value.

type UpdateRolePermsResponse

type UpdateRolePermsResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateRolePermsResponse) Descriptor deprecated

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

Deprecated: Use UpdateRolePermsResponse.ProtoReflect.Descriptor instead.

func (*UpdateRolePermsResponse) ProtoMessage

func (*UpdateRolePermsResponse) ProtoMessage()

func (*UpdateRolePermsResponse) ProtoReflect

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

func (*UpdateRolePermsResponse) Reset

func (x *UpdateRolePermsResponse) Reset()

func (*UpdateRolePermsResponse) String

func (x *UpdateRolePermsResponse) String() string

func (*UpdateRolePermsResponse) Validate

func (m *UpdateRolePermsResponse) Validate() error

Validate checks the field values on UpdateRolePermsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateRolePermsResponse) ValidateAll

func (m *UpdateRolePermsResponse) ValidateAll() error

ValidateAll checks the field values on UpdateRolePermsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRolePermsResponseMultiError, or nil if none found.

type UpdateRolePermsResponseMultiError

type UpdateRolePermsResponseMultiError []error

UpdateRolePermsResponseMultiError is an error wrapping multiple validation errors returned by UpdateRolePermsResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateRolePermsResponseMultiError) AllErrors

func (m UpdateRolePermsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRolePermsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRolePermsResponseValidationError

type UpdateRolePermsResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateRolePermsResponseValidationError is the validation error returned by UpdateRolePermsResponse.Validate if the designated constraints aren't met.

func (UpdateRolePermsResponseValidationError) Cause

Cause function returns cause value.

func (UpdateRolePermsResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateRolePermsResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateRolePermsResponseValidationError) Field

Field function returns field value.

func (UpdateRolePermsResponseValidationError) Key

Key function returns key value.

func (UpdateRolePermsResponseValidationError) Reason

Reason function returns reason value.

type ViewAuditLogRequest

type ViewAuditLogRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	UserIds    []int32                     `protobuf:"varint,2,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	From       *timestamp.Timestamp        `protobuf:"bytes,3,opt,name=from,proto3,oneof" json:"from,omitempty"`
	To         *timestamp.Timestamp        `protobuf:"bytes,4,opt,name=to,proto3,oneof" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*ViewAuditLogRequest) Descriptor deprecated

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

Deprecated: Use ViewAuditLogRequest.ProtoReflect.Descriptor instead.

func (*ViewAuditLogRequest) GetFrom

func (x *ViewAuditLogRequest) GetFrom() *timestamp.Timestamp

func (*ViewAuditLogRequest) GetPagination

func (x *ViewAuditLogRequest) GetPagination() *database.PaginationRequest

func (*ViewAuditLogRequest) GetTo

func (*ViewAuditLogRequest) GetUserIds

func (x *ViewAuditLogRequest) GetUserIds() []int32

func (*ViewAuditLogRequest) ProtoMessage

func (*ViewAuditLogRequest) ProtoMessage()

func (*ViewAuditLogRequest) ProtoReflect

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

func (*ViewAuditLogRequest) Reset

func (x *ViewAuditLogRequest) Reset()

func (*ViewAuditLogRequest) String

func (x *ViewAuditLogRequest) String() string

func (*ViewAuditLogRequest) Validate

func (m *ViewAuditLogRequest) Validate() error

Validate checks the field values on ViewAuditLogRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ViewAuditLogRequest) ValidateAll

func (m *ViewAuditLogRequest) ValidateAll() error

ValidateAll checks the field values on ViewAuditLogRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ViewAuditLogRequestMultiError, or nil if none found.

type ViewAuditLogRequestMultiError

type ViewAuditLogRequestMultiError []error

ViewAuditLogRequestMultiError is an error wrapping multiple validation errors returned by ViewAuditLogRequest.ValidateAll() if the designated constraints aren't met.

func (ViewAuditLogRequestMultiError) AllErrors

func (m ViewAuditLogRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ViewAuditLogRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ViewAuditLogRequestValidationError

type ViewAuditLogRequestValidationError struct {
	// contains filtered or unexported fields
}

ViewAuditLogRequestValidationError is the validation error returned by ViewAuditLogRequest.Validate if the designated constraints aren't met.

func (ViewAuditLogRequestValidationError) Cause

Cause function returns cause value.

func (ViewAuditLogRequestValidationError) Error

Error satisfies the builtin error interface

func (ViewAuditLogRequestValidationError) ErrorName

ErrorName returns error name.

func (ViewAuditLogRequestValidationError) Field

Field function returns field value.

func (ViewAuditLogRequestValidationError) Key

Key function returns key value.

func (ViewAuditLogRequestValidationError) Reason

Reason function returns reason value.

type ViewAuditLogResponse

type ViewAuditLogResponse struct {
	Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Logs       []*rector.AuditEntry         `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*ViewAuditLogResponse) Descriptor deprecated

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

Deprecated: Use ViewAuditLogResponse.ProtoReflect.Descriptor instead.

func (*ViewAuditLogResponse) GetLogs

func (x *ViewAuditLogResponse) GetLogs() []*rector.AuditEntry

func (*ViewAuditLogResponse) GetPagination

func (x *ViewAuditLogResponse) GetPagination() *database.PaginationResponse

func (*ViewAuditLogResponse) ProtoMessage

func (*ViewAuditLogResponse) ProtoMessage()

func (*ViewAuditLogResponse) ProtoReflect

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

func (*ViewAuditLogResponse) Reset

func (x *ViewAuditLogResponse) Reset()

func (*ViewAuditLogResponse) String

func (x *ViewAuditLogResponse) String() string

func (*ViewAuditLogResponse) Validate

func (m *ViewAuditLogResponse) Validate() error

Validate checks the field values on ViewAuditLogResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ViewAuditLogResponse) ValidateAll

func (m *ViewAuditLogResponse) ValidateAll() error

ValidateAll checks the field values on ViewAuditLogResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ViewAuditLogResponseMultiError, or nil if none found.

type ViewAuditLogResponseMultiError

type ViewAuditLogResponseMultiError []error

ViewAuditLogResponseMultiError is an error wrapping multiple validation errors returned by ViewAuditLogResponse.ValidateAll() if the designated constraints aren't met.

func (ViewAuditLogResponseMultiError) AllErrors

func (m ViewAuditLogResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ViewAuditLogResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ViewAuditLogResponseValidationError

type ViewAuditLogResponseValidationError struct {
	// contains filtered or unexported fields
}

ViewAuditLogResponseValidationError is the validation error returned by ViewAuditLogResponse.Validate if the designated constraints aren't met.

func (ViewAuditLogResponseValidationError) Cause

Cause function returns cause value.

func (ViewAuditLogResponseValidationError) Error

Error satisfies the builtin error interface

func (ViewAuditLogResponseValidationError) ErrorName

ErrorName returns error name.

func (ViewAuditLogResponseValidationError) Field

Field function returns field value.

func (ViewAuditLogResponseValidationError) Key

Key function returns key value.

func (ViewAuditLogResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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