rector

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 42 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"
	RectorServiceGetRolesPerm        perms.Name = "GetRoles"
	RectorServiceSetJobPropsPerm     perms.Name = "SetJobProps"
	RectorServiceUpdateRolePermsPerm perms.Name = "UpdateRolePerms"
	RectorServiceViewAuditLogPerm    perms.Name = "ViewAuditLog"
)
View Source
const (
	RectorService_GetJobProps_FullMethodName           = "/services.rector.RectorService/GetJobProps"
	RectorService_SetJobProps_FullMethodName           = "/services.rector.RectorService/SetJobProps"
	RectorService_GetRoles_FullMethodName              = "/services.rector.RectorService/GetRoles"
	RectorService_GetRole_FullMethodName               = "/services.rector.RectorService/GetRole"
	RectorService_CreateRole_FullMethodName            = "/services.rector.RectorService/CreateRole"
	RectorService_DeleteRole_FullMethodName            = "/services.rector.RectorService/DeleteRole"
	RectorService_UpdateRolePerms_FullMethodName       = "/services.rector.RectorService/UpdateRolePerms"
	RectorService_GetPermissions_FullMethodName        = "/services.rector.RectorService/GetPermissions"
	RectorService_ViewAuditLog_FullMethodName          = "/services.rector.RectorService/ViewAuditLog"
	RectorService_UpdateRoleLimits_FullMethodName      = "/services.rector.RectorService/UpdateRoleLimits"
	RectorService_CreateOrUpdateLawBook_FullMethodName = "/services.rector.RectorService/CreateOrUpdateLawBook"
	RectorService_DeleteLawBook_FullMethodName         = "/services.rector.RectorService/DeleteLawBook"
	RectorService_CreateOrUpdateLaw_FullMethodName     = "/services.rector.RectorService/CreateOrUpdateLaw"
	RectorService_DeleteLaw_FullMethodName             = "/services.rector.RectorService/DeleteLaw"
)
View Source
const AuditLogPageSize = 30

Variables

View Source
var (
	ErrFailedQuery       = status.Error(codes.Internal, "errors.RectorService.ErrFailedQuery")
	ErrInvalidRequest    = status.Error(codes.InvalidArgument, "errors.RectorService.ErrInvalidRequest")
	ErrNoPermission      = status.Error(codes.PermissionDenied, "errors.RectorService.ErrNoPermission")
	ErrRoleAlreadyExists = status.Error(codes.InvalidArgument, "errors.RectorService.ErrRoleAlreadyExists")
	ErrOwnRoleDeletion   = status.Error(codes.InvalidArgument, "errors.RectorService.ErrOwnRoleDeletion")
	ErrInvalidAttrs      = status.Error(codes.InvalidArgument, "errors.RectorService.ErrInvalidAttrs")
	ErrInvalidPerms      = status.Error(codes.InvalidArgument, "errors.RectorService.ErrInvalidPerms")
)
View Source
var (
	ErrInvalidJPQuickButton = status.Error(codes.InvalidArgument, "Invalid quick access button found!")
)
View Source
var File_services_rector_rector_proto protoreflect.FileDescriptor
View Source
var PermsRemap = map[string]string{

	"RectorService/CreateOrUpdateLaw":     "SuperUser",
	"RectorService/CreateOrUpdateLawBook": "SuperUser",
	"RectorService/DeleteLaw":             "SuperUser",
	"RectorService/DeleteLawBook":         "SuperUser",
	"RectorService/GetPermissions":        "RectorService/GetRoles",
	"RectorService/GetRole":               "RectorService/GetRoles",
	"RectorService/UpdateRoleLimits":      "SuperUser",
}
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,
		},
		{
			MethodName: "UpdateRoleLimits",
			Handler:    _RectorService_UpdateRoleLimits_Handler,
		},
		{
			MethodName: "CreateOrUpdateLawBook",
			Handler:    _RectorService_CreateOrUpdateLawBook_Handler,
		},
		{
			MethodName: "DeleteLawBook",
			Handler:    _RectorService_DeleteLawBook_Handler,
		},
		{
			MethodName: "CreateOrUpdateLaw",
			Handler:    _RectorService_CreateOrUpdateLaw_Handler,
		},
		{
			MethodName: "DeleteLaw",
			Handler:    _RectorService_DeleteLaw_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 CreateOrUpdateLawBookRequest added in v0.8.6

type CreateOrUpdateLawBookRequest struct {
	LawBook *laws.LawBook `protobuf:"bytes,1,opt,name=lawBook,proto3" json:"lawBook,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateLawBookRequest) Descriptor deprecated added in v0.8.6

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

Deprecated: Use CreateOrUpdateLawBookRequest.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateLawBookRequest) GetLawBook added in v0.8.6

func (x *CreateOrUpdateLawBookRequest) GetLawBook() *laws.LawBook

func (*CreateOrUpdateLawBookRequest) ProtoMessage added in v0.8.6

func (*CreateOrUpdateLawBookRequest) ProtoMessage()

func (*CreateOrUpdateLawBookRequest) ProtoReflect added in v0.8.6

func (*CreateOrUpdateLawBookRequest) Reset added in v0.8.6

func (x *CreateOrUpdateLawBookRequest) Reset()

func (*CreateOrUpdateLawBookRequest) String added in v0.8.6

func (*CreateOrUpdateLawBookRequest) Validate added in v0.8.6

func (m *CreateOrUpdateLawBookRequest) Validate() error

Validate checks the field values on CreateOrUpdateLawBookRequest 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 (*CreateOrUpdateLawBookRequest) ValidateAll added in v0.8.6

func (m *CreateOrUpdateLawBookRequest) ValidateAll() error

ValidateAll checks the field values on CreateOrUpdateLawBookRequest 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 CreateOrUpdateLawBookRequestMultiError, or nil if none found.

type CreateOrUpdateLawBookRequestMultiError added in v0.8.6

type CreateOrUpdateLawBookRequestMultiError []error

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

func (CreateOrUpdateLawBookRequestMultiError) AllErrors added in v0.8.6

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateLawBookRequestMultiError) Error added in v0.8.6

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

type CreateOrUpdateLawBookRequestValidationError added in v0.8.6

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

CreateOrUpdateLawBookRequestValidationError is the validation error returned by CreateOrUpdateLawBookRequest.Validate if the designated constraints aren't met.

func (CreateOrUpdateLawBookRequestValidationError) Cause added in v0.8.6

Cause function returns cause value.

func (CreateOrUpdateLawBookRequestValidationError) Error added in v0.8.6

Error satisfies the builtin error interface

func (CreateOrUpdateLawBookRequestValidationError) ErrorName added in v0.8.6

ErrorName returns error name.

func (CreateOrUpdateLawBookRequestValidationError) Field added in v0.8.6

Field function returns field value.

func (CreateOrUpdateLawBookRequestValidationError) Key added in v0.8.6

Key function returns key value.

func (CreateOrUpdateLawBookRequestValidationError) Reason added in v0.8.6

Reason function returns reason value.

type CreateOrUpdateLawBookResponse added in v0.8.6

type CreateOrUpdateLawBookResponse struct {
	LawBook *laws.LawBook `protobuf:"bytes,1,opt,name=lawBook,proto3" json:"lawBook,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateLawBookResponse) Descriptor deprecated added in v0.8.6

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

Deprecated: Use CreateOrUpdateLawBookResponse.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateLawBookResponse) GetLawBook added in v0.8.6

func (x *CreateOrUpdateLawBookResponse) GetLawBook() *laws.LawBook

func (*CreateOrUpdateLawBookResponse) ProtoMessage added in v0.8.6

func (*CreateOrUpdateLawBookResponse) ProtoMessage()

func (*CreateOrUpdateLawBookResponse) ProtoReflect added in v0.8.6

func (*CreateOrUpdateLawBookResponse) Reset added in v0.8.6

func (x *CreateOrUpdateLawBookResponse) Reset()

func (*CreateOrUpdateLawBookResponse) String added in v0.8.6

func (*CreateOrUpdateLawBookResponse) Validate added in v0.8.6

func (m *CreateOrUpdateLawBookResponse) Validate() error

Validate checks the field values on CreateOrUpdateLawBookResponse 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 (*CreateOrUpdateLawBookResponse) ValidateAll added in v0.8.6

func (m *CreateOrUpdateLawBookResponse) ValidateAll() error

ValidateAll checks the field values on CreateOrUpdateLawBookResponse 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 CreateOrUpdateLawBookResponseMultiError, or nil if none found.

type CreateOrUpdateLawBookResponseMultiError added in v0.8.6

type CreateOrUpdateLawBookResponseMultiError []error

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

func (CreateOrUpdateLawBookResponseMultiError) AllErrors added in v0.8.6

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateLawBookResponseMultiError) Error added in v0.8.6

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

type CreateOrUpdateLawBookResponseValidationError added in v0.8.6

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

CreateOrUpdateLawBookResponseValidationError is the validation error returned by CreateOrUpdateLawBookResponse.Validate if the designated constraints aren't met.

func (CreateOrUpdateLawBookResponseValidationError) Cause added in v0.8.6

Cause function returns cause value.

func (CreateOrUpdateLawBookResponseValidationError) Error added in v0.8.6

Error satisfies the builtin error interface

func (CreateOrUpdateLawBookResponseValidationError) ErrorName added in v0.8.6

ErrorName returns error name.

func (CreateOrUpdateLawBookResponseValidationError) Field added in v0.8.6

Field function returns field value.

func (CreateOrUpdateLawBookResponseValidationError) Key added in v0.8.6

Key function returns key value.

func (CreateOrUpdateLawBookResponseValidationError) Reason added in v0.8.6

Reason function returns reason value.

type CreateOrUpdateLawRequest added in v0.8.6

type CreateOrUpdateLawRequest struct {
	Law *laws.Law `protobuf:"bytes,1,opt,name=law,proto3" json:"law,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateLawRequest) Descriptor deprecated added in v0.8.6

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

Deprecated: Use CreateOrUpdateLawRequest.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateLawRequest) GetLaw added in v0.8.6

func (x *CreateOrUpdateLawRequest) GetLaw() *laws.Law

func (*CreateOrUpdateLawRequest) ProtoMessage added in v0.8.6

func (*CreateOrUpdateLawRequest) ProtoMessage()

func (*CreateOrUpdateLawRequest) ProtoReflect added in v0.8.6

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

func (*CreateOrUpdateLawRequest) Reset added in v0.8.6

func (x *CreateOrUpdateLawRequest) Reset()

func (*CreateOrUpdateLawRequest) String added in v0.8.6

func (x *CreateOrUpdateLawRequest) String() string

func (*CreateOrUpdateLawRequest) Validate added in v0.8.6

func (m *CreateOrUpdateLawRequest) Validate() error

Validate checks the field values on CreateOrUpdateLawRequest 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 (*CreateOrUpdateLawRequest) ValidateAll added in v0.8.6

func (m *CreateOrUpdateLawRequest) ValidateAll() error

ValidateAll checks the field values on CreateOrUpdateLawRequest 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 CreateOrUpdateLawRequestMultiError, or nil if none found.

type CreateOrUpdateLawRequestMultiError added in v0.8.6

type CreateOrUpdateLawRequestMultiError []error

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

func (CreateOrUpdateLawRequestMultiError) AllErrors added in v0.8.6

func (m CreateOrUpdateLawRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateLawRequestMultiError) Error added in v0.8.6

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

type CreateOrUpdateLawRequestValidationError added in v0.8.6

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

CreateOrUpdateLawRequestValidationError is the validation error returned by CreateOrUpdateLawRequest.Validate if the designated constraints aren't met.

func (CreateOrUpdateLawRequestValidationError) Cause added in v0.8.6

Cause function returns cause value.

func (CreateOrUpdateLawRequestValidationError) Error added in v0.8.6

Error satisfies the builtin error interface

func (CreateOrUpdateLawRequestValidationError) ErrorName added in v0.8.6

ErrorName returns error name.

func (CreateOrUpdateLawRequestValidationError) Field added in v0.8.6

Field function returns field value.

func (CreateOrUpdateLawRequestValidationError) Key added in v0.8.6

Key function returns key value.

func (CreateOrUpdateLawRequestValidationError) Reason added in v0.8.6

Reason function returns reason value.

type CreateOrUpdateLawResponse added in v0.8.6

type CreateOrUpdateLawResponse struct {
	Law *laws.Law `protobuf:"bytes,1,opt,name=law,proto3" json:"law,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateLawResponse) Descriptor deprecated added in v0.8.6

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

Deprecated: Use CreateOrUpdateLawResponse.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateLawResponse) GetLaw added in v0.8.6

func (x *CreateOrUpdateLawResponse) GetLaw() *laws.Law

func (*CreateOrUpdateLawResponse) ProtoMessage added in v0.8.6

func (*CreateOrUpdateLawResponse) ProtoMessage()

func (*CreateOrUpdateLawResponse) ProtoReflect added in v0.8.6

func (*CreateOrUpdateLawResponse) Reset added in v0.8.6

func (x *CreateOrUpdateLawResponse) Reset()

func (*CreateOrUpdateLawResponse) String added in v0.8.6

func (x *CreateOrUpdateLawResponse) String() string

func (*CreateOrUpdateLawResponse) Validate added in v0.8.6

func (m *CreateOrUpdateLawResponse) Validate() error

Validate checks the field values on CreateOrUpdateLawResponse 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 (*CreateOrUpdateLawResponse) ValidateAll added in v0.8.6

func (m *CreateOrUpdateLawResponse) ValidateAll() error

ValidateAll checks the field values on CreateOrUpdateLawResponse 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 CreateOrUpdateLawResponseMultiError, or nil if none found.

type CreateOrUpdateLawResponseMultiError added in v0.8.6

type CreateOrUpdateLawResponseMultiError []error

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

func (CreateOrUpdateLawResponseMultiError) AllErrors added in v0.8.6

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateLawResponseMultiError) Error added in v0.8.6

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

type CreateOrUpdateLawResponseValidationError added in v0.8.6

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

CreateOrUpdateLawResponseValidationError is the validation error returned by CreateOrUpdateLawResponse.Validate if the designated constraints aren't met.

func (CreateOrUpdateLawResponseValidationError) Cause added in v0.8.6

Cause function returns cause value.

func (CreateOrUpdateLawResponseValidationError) Error added in v0.8.6

Error satisfies the builtin error interface

func (CreateOrUpdateLawResponseValidationError) ErrorName added in v0.8.6

ErrorName returns error name.

func (CreateOrUpdateLawResponseValidationError) Field added in v0.8.6

Field function returns field value.

func (CreateOrUpdateLawResponseValidationError) Key added in v0.8.6

Key function returns key value.

func (CreateOrUpdateLawResponseValidationError) Reason added in v0.8.6

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 DeleteLawBookRequest added in v0.8.1

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

func (*DeleteLawBookRequest) Descriptor deprecated added in v0.8.1

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

Deprecated: Use DeleteLawBookRequest.ProtoReflect.Descriptor instead.

func (*DeleteLawBookRequest) GetId added in v0.8.1

func (x *DeleteLawBookRequest) GetId() uint64

func (*DeleteLawBookRequest) ProtoMessage added in v0.8.1

func (*DeleteLawBookRequest) ProtoMessage()

func (*DeleteLawBookRequest) ProtoReflect added in v0.8.1

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

func (*DeleteLawBookRequest) Reset added in v0.8.1

func (x *DeleteLawBookRequest) Reset()

func (*DeleteLawBookRequest) String added in v0.8.1

func (x *DeleteLawBookRequest) String() string

func (*DeleteLawBookRequest) Validate added in v0.8.1

func (m *DeleteLawBookRequest) Validate() error

Validate checks the field values on DeleteLawBookRequest 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 (*DeleteLawBookRequest) ValidateAll added in v0.8.1

func (m *DeleteLawBookRequest) ValidateAll() error

ValidateAll checks the field values on DeleteLawBookRequest 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 DeleteLawBookRequestMultiError, or nil if none found.

type DeleteLawBookRequestMultiError added in v0.8.1

type DeleteLawBookRequestMultiError []error

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

func (DeleteLawBookRequestMultiError) AllErrors added in v0.8.1

func (m DeleteLawBookRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteLawBookRequestMultiError) Error added in v0.8.1

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

type DeleteLawBookRequestValidationError added in v0.8.1

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

DeleteLawBookRequestValidationError is the validation error returned by DeleteLawBookRequest.Validate if the designated constraints aren't met.

func (DeleteLawBookRequestValidationError) Cause added in v0.8.1

Cause function returns cause value.

func (DeleteLawBookRequestValidationError) Error added in v0.8.1

Error satisfies the builtin error interface

func (DeleteLawBookRequestValidationError) ErrorName added in v0.8.1

ErrorName returns error name.

func (DeleteLawBookRequestValidationError) Field added in v0.8.1

Field function returns field value.

func (DeleteLawBookRequestValidationError) Key added in v0.8.1

Key function returns key value.

func (DeleteLawBookRequestValidationError) Reason added in v0.8.1

Reason function returns reason value.

type DeleteLawBookResponse added in v0.8.1

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

func (*DeleteLawBookResponse) Descriptor deprecated added in v0.8.1

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

Deprecated: Use DeleteLawBookResponse.ProtoReflect.Descriptor instead.

func (*DeleteLawBookResponse) ProtoMessage added in v0.8.1

func (*DeleteLawBookResponse) ProtoMessage()

func (*DeleteLawBookResponse) ProtoReflect added in v0.8.1

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

func (*DeleteLawBookResponse) Reset added in v0.8.1

func (x *DeleteLawBookResponse) Reset()

func (*DeleteLawBookResponse) String added in v0.8.1

func (x *DeleteLawBookResponse) String() string

func (*DeleteLawBookResponse) Validate added in v0.8.1

func (m *DeleteLawBookResponse) Validate() error

Validate checks the field values on DeleteLawBookResponse 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 (*DeleteLawBookResponse) ValidateAll added in v0.8.1

func (m *DeleteLawBookResponse) ValidateAll() error

ValidateAll checks the field values on DeleteLawBookResponse 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 DeleteLawBookResponseMultiError, or nil if none found.

type DeleteLawBookResponseMultiError added in v0.8.1

type DeleteLawBookResponseMultiError []error

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

func (DeleteLawBookResponseMultiError) AllErrors added in v0.8.1

func (m DeleteLawBookResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteLawBookResponseMultiError) Error added in v0.8.1

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

type DeleteLawBookResponseValidationError added in v0.8.1

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

DeleteLawBookResponseValidationError is the validation error returned by DeleteLawBookResponse.Validate if the designated constraints aren't met.

func (DeleteLawBookResponseValidationError) Cause added in v0.8.1

Cause function returns cause value.

func (DeleteLawBookResponseValidationError) Error added in v0.8.1

Error satisfies the builtin error interface

func (DeleteLawBookResponseValidationError) ErrorName added in v0.8.1

ErrorName returns error name.

func (DeleteLawBookResponseValidationError) Field added in v0.8.1

Field function returns field value.

func (DeleteLawBookResponseValidationError) Key added in v0.8.1

Key function returns key value.

func (DeleteLawBookResponseValidationError) Reason added in v0.8.1

Reason function returns reason value.

type DeleteLawRequest added in v0.8.1

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

func (*DeleteLawRequest) Descriptor deprecated added in v0.8.1

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

Deprecated: Use DeleteLawRequest.ProtoReflect.Descriptor instead.

func (*DeleteLawRequest) GetId added in v0.8.1

func (x *DeleteLawRequest) GetId() uint64

func (*DeleteLawRequest) ProtoMessage added in v0.8.1

func (*DeleteLawRequest) ProtoMessage()

func (*DeleteLawRequest) ProtoReflect added in v0.8.1

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

func (*DeleteLawRequest) Reset added in v0.8.1

func (x *DeleteLawRequest) Reset()

func (*DeleteLawRequest) String added in v0.8.1

func (x *DeleteLawRequest) String() string

func (*DeleteLawRequest) Validate added in v0.8.1

func (m *DeleteLawRequest) Validate() error

Validate checks the field values on DeleteLawRequest 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 (*DeleteLawRequest) ValidateAll added in v0.8.1

func (m *DeleteLawRequest) ValidateAll() error

ValidateAll checks the field values on DeleteLawRequest 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 DeleteLawRequestMultiError, or nil if none found.

type DeleteLawRequestMultiError added in v0.8.1

type DeleteLawRequestMultiError []error

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

func (DeleteLawRequestMultiError) AllErrors added in v0.8.1

func (m DeleteLawRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteLawRequestMultiError) Error added in v0.8.1

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

type DeleteLawRequestValidationError added in v0.8.1

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

DeleteLawRequestValidationError is the validation error returned by DeleteLawRequest.Validate if the designated constraints aren't met.

func (DeleteLawRequestValidationError) Cause added in v0.8.1

Cause function returns cause value.

func (DeleteLawRequestValidationError) Error added in v0.8.1

Error satisfies the builtin error interface

func (DeleteLawRequestValidationError) ErrorName added in v0.8.1

ErrorName returns error name.

func (DeleteLawRequestValidationError) Field added in v0.8.1

Field function returns field value.

func (DeleteLawRequestValidationError) Key added in v0.8.1

Key function returns key value.

func (DeleteLawRequestValidationError) Reason added in v0.8.1

Reason function returns reason value.

type DeleteLawResponse added in v0.8.1

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

func (*DeleteLawResponse) Descriptor deprecated added in v0.8.1

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

Deprecated: Use DeleteLawResponse.ProtoReflect.Descriptor instead.

func (*DeleteLawResponse) ProtoMessage added in v0.8.1

func (*DeleteLawResponse) ProtoMessage()

func (*DeleteLawResponse) ProtoReflect added in v0.8.1

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

func (*DeleteLawResponse) Reset added in v0.8.1

func (x *DeleteLawResponse) Reset()

func (*DeleteLawResponse) String added in v0.8.1

func (x *DeleteLawResponse) String() string

func (*DeleteLawResponse) Validate added in v0.8.1

func (m *DeleteLawResponse) Validate() error

Validate checks the field values on DeleteLawResponse 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 (*DeleteLawResponse) ValidateAll added in v0.8.1

func (m *DeleteLawResponse) ValidateAll() error

ValidateAll checks the field values on DeleteLawResponse 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 DeleteLawResponseMultiError, or nil if none found.

type DeleteLawResponseMultiError added in v0.8.1

type DeleteLawResponseMultiError []error

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

func (DeleteLawResponseMultiError) AllErrors added in v0.8.1

func (m DeleteLawResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteLawResponseMultiError) Error added in v0.8.1

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

type DeleteLawResponseValidationError added in v0.8.1

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

DeleteLawResponseValidationError is the validation error returned by DeleteLawResponse.Validate if the designated constraints aren't met.

func (DeleteLawResponseValidationError) Cause added in v0.8.1

Cause function returns cause value.

func (DeleteLawResponseValidationError) Error added in v0.8.1

Error satisfies the builtin error interface

func (DeleteLawResponseValidationError) ErrorName added in v0.8.1

ErrorName returns error name.

func (DeleteLawResponseValidationError) Field added in v0.8.1

Field function returns field value.

func (DeleteLawResponseValidationError) Key added in v0.8.1

Key function returns key value.

func (DeleteLawResponseValidationError) Reason added in v0.8.1

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 *users.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() *users.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 {
	RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionsRequest) Descriptor deprecated

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

Deprecated: Use GetPermissionsRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionsRequest) GetRoleId added in v0.7.0

func (x *GetPermissionsRequest) GetRoleId() uint64

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 {
	LowestRank *bool `protobuf:"varint,1,opt,name=lowest_rank,json=lowestRank,proto3,oneof" json:"lowest_rank,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRolesRequest) Descriptor deprecated

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

Deprecated: Use GetRolesRequest.ProtoReflect.Descriptor instead.

func (*GetRolesRequest) GetLowestRank added in v0.7.1

func (x *GetRolesRequest) GetLowestRank() bool

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: Name=GetRoles
	GetPermissions(ctx context.Context, in *GetPermissionsRequest, opts ...grpc.CallOption) (*GetPermissionsResponse, error)
	// @perm
	ViewAuditLog(ctx context.Context, in *ViewAuditLogRequest, opts ...grpc.CallOption) (*ViewAuditLogResponse, error)
	// @perm: Name=SuperUser
	UpdateRoleLimits(ctx context.Context, in *UpdateRoleLimitsRequest, opts ...grpc.CallOption) (*UpdateRoleLimitsResponse, error)
	// @perm: Name=SuperUser
	CreateOrUpdateLawBook(ctx context.Context, in *CreateOrUpdateLawBookRequest, opts ...grpc.CallOption) (*CreateOrUpdateLawBookResponse, error)
	// @perm: Name=SuperUser
	DeleteLawBook(ctx context.Context, in *DeleteLawBookRequest, opts ...grpc.CallOption) (*DeleteLawBookResponse, error)
	// @perm: Name=SuperUser
	CreateOrUpdateLaw(ctx context.Context, in *CreateOrUpdateLawRequest, opts ...grpc.CallOption) (*CreateOrUpdateLawResponse, error)
	// @perm: Name=SuperUser
	DeleteLaw(ctx context.Context, in *DeleteLawRequest, opts ...grpc.CallOption) (*DeleteLawResponse, 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: Name=GetRoles
	GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
	// @perm
	ViewAuditLog(context.Context, *ViewAuditLogRequest) (*ViewAuditLogResponse, error)
	// @perm: Name=SuperUser
	UpdateRoleLimits(context.Context, *UpdateRoleLimitsRequest) (*UpdateRoleLimitsResponse, error)
	// @perm: Name=SuperUser
	CreateOrUpdateLawBook(context.Context, *CreateOrUpdateLawBookRequest) (*CreateOrUpdateLawBookResponse, error)
	// @perm: Name=SuperUser
	DeleteLawBook(context.Context, *DeleteLawBookRequest) (*DeleteLawBookResponse, error)
	// @perm: Name=SuperUser
	CreateOrUpdateLaw(context.Context, *CreateOrUpdateLawRequest) (*CreateOrUpdateLawResponse, error)
	// @perm: Name=SuperUser
	DeleteLaw(context.Context, *DeleteLawRequest) (*DeleteLawResponse, 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, ps perms.Permissions, aud audit.IAuditer, enricher *mstlystcdata.Enricher, cache *mstlystcdata.Cache) *Server

func (*Server) CreateOrUpdateLaw added in v0.8.1

func (s *Server) CreateOrUpdateLaw(ctx context.Context, req *CreateOrUpdateLawRequest) (*CreateOrUpdateLawResponse, error)

func (*Server) CreateOrUpdateLawBook added in v0.8.1

func (*Server) CreateRole

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

func (*Server) DeleteLaw added in v0.8.1

func (s *Server) DeleteLaw(ctx context.Context, req *DeleteLawRequest) (*DeleteLawResponse, error)

func (*Server) DeleteLawBook added in v0.8.1

func (s *Server) DeleteLawBook(ctx context.Context, req *DeleteLawBookRequest) (*DeleteLawBookResponse, 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) RegisterServer added in v0.8.0

func (s *Server) RegisterServer(srv *grpc.Server)

func (*Server) SetJobProps

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

func (*Server) UpdateRoleLimits added in v0.7.0

func (s *Server) UpdateRoleLimits(ctx context.Context, req *UpdateRoleLimitsRequest) (*UpdateRoleLimitsResponse, 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 *users.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() *users.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) CreateOrUpdateLaw added in v0.8.1

func (UnimplementedRectorServiceServer) CreateOrUpdateLawBook added in v0.8.1

func (UnimplementedRectorServiceServer) CreateRole

func (UnimplementedRectorServiceServer) DeleteLaw added in v0.8.1

func (UnimplementedRectorServiceServer) DeleteLawBook added in v0.8.1

func (UnimplementedRectorServiceServer) DeleteRole

func (UnimplementedRectorServiceServer) GetJobProps

func (UnimplementedRectorServiceServer) GetPermissions

func (UnimplementedRectorServiceServer) GetRole

func (UnimplementedRectorServiceServer) GetRoles

func (UnimplementedRectorServiceServer) SetJobProps

func (UnimplementedRectorServiceServer) UpdateRoleLimits added in v0.7.0

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 UpdateRoleLimitsRequest added in v0.7.0

type UpdateRoleLimitsRequest struct {
	RoleId uint64       `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	Attrs  *AttrsUpdate `protobuf:"bytes,2,opt,name=attrs,proto3" json:"attrs,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleLimitsRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use UpdateRoleLimitsRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleLimitsRequest) GetAttrs added in v0.7.0

func (x *UpdateRoleLimitsRequest) GetAttrs() *AttrsUpdate

func (*UpdateRoleLimitsRequest) GetRoleId added in v0.7.0

func (x *UpdateRoleLimitsRequest) GetRoleId() uint64

func (*UpdateRoleLimitsRequest) ProtoMessage added in v0.7.0

func (*UpdateRoleLimitsRequest) ProtoMessage()

func (*UpdateRoleLimitsRequest) ProtoReflect added in v0.7.0

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

func (*UpdateRoleLimitsRequest) Reset added in v0.7.0

func (x *UpdateRoleLimitsRequest) Reset()

func (*UpdateRoleLimitsRequest) String added in v0.7.0

func (x *UpdateRoleLimitsRequest) String() string

func (*UpdateRoleLimitsRequest) Validate added in v0.7.0

func (m *UpdateRoleLimitsRequest) Validate() error

Validate checks the field values on UpdateRoleLimitsRequest 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 (*UpdateRoleLimitsRequest) ValidateAll added in v0.7.0

func (m *UpdateRoleLimitsRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRoleLimitsRequest 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 UpdateRoleLimitsRequestMultiError, or nil if none found.

type UpdateRoleLimitsRequestMultiError added in v0.7.0

type UpdateRoleLimitsRequestMultiError []error

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

func (UpdateRoleLimitsRequestMultiError) AllErrors added in v0.7.0

func (m UpdateRoleLimitsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleLimitsRequestMultiError) Error added in v0.7.0

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

type UpdateRoleLimitsRequestValidationError added in v0.7.0

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

UpdateRoleLimitsRequestValidationError is the validation error returned by UpdateRoleLimitsRequest.Validate if the designated constraints aren't met.

func (UpdateRoleLimitsRequestValidationError) Cause added in v0.7.0

Cause function returns cause value.

func (UpdateRoleLimitsRequestValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (UpdateRoleLimitsRequestValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (UpdateRoleLimitsRequestValidationError) Field added in v0.7.0

Field function returns field value.

func (UpdateRoleLimitsRequestValidationError) Key added in v0.7.0

Key function returns key value.

func (UpdateRoleLimitsRequestValidationError) Reason added in v0.7.0

Reason function returns reason value.

type UpdateRoleLimitsResponse added in v0.7.0

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

func (*UpdateRoleLimitsResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use UpdateRoleLimitsResponse.ProtoReflect.Descriptor instead.

func (*UpdateRoleLimitsResponse) ProtoMessage added in v0.7.0

func (*UpdateRoleLimitsResponse) ProtoMessage()

func (*UpdateRoleLimitsResponse) ProtoReflect added in v0.7.0

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

func (*UpdateRoleLimitsResponse) Reset added in v0.7.0

func (x *UpdateRoleLimitsResponse) Reset()

func (*UpdateRoleLimitsResponse) String added in v0.7.0

func (x *UpdateRoleLimitsResponse) String() string

func (*UpdateRoleLimitsResponse) Validate added in v0.7.0

func (m *UpdateRoleLimitsResponse) Validate() error

Validate checks the field values on UpdateRoleLimitsResponse 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 (*UpdateRoleLimitsResponse) ValidateAll added in v0.7.0

func (m *UpdateRoleLimitsResponse) ValidateAll() error

ValidateAll checks the field values on UpdateRoleLimitsResponse 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 UpdateRoleLimitsResponseMultiError, or nil if none found.

type UpdateRoleLimitsResponseMultiError added in v0.7.0

type UpdateRoleLimitsResponseMultiError []error

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

func (UpdateRoleLimitsResponseMultiError) AllErrors added in v0.7.0

func (m UpdateRoleLimitsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleLimitsResponseMultiError) Error added in v0.7.0

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

type UpdateRoleLimitsResponseValidationError added in v0.7.0

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

UpdateRoleLimitsResponseValidationError is the validation error returned by UpdateRoleLimitsResponse.Validate if the designated constraints aren't met.

func (UpdateRoleLimitsResponseValidationError) Cause added in v0.7.0

Cause function returns cause value.

func (UpdateRoleLimitsResponseValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (UpdateRoleLimitsResponseValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (UpdateRoleLimitsResponseValidationError) Field added in v0.7.0

Field function returns field value.

func (UpdateRoleLimitsResponseValidationError) Key added in v0.7.0

Key function returns key value.

func (UpdateRoleLimitsResponseValidationError) Reason added in v0.7.0

Reason function returns reason value.

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"`
	Service    *string                     `protobuf:"bytes,5,opt,name=service,proto3,oneof" json:"service,omitempty"`
	Method     *string                     `protobuf:"bytes,6,opt,name=method,proto3,oneof" json:"method,omitempty"`
	Search     *string                     `protobuf:"bytes,7,opt,name=search,proto3,oneof" json:"search,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) GetMethod added in v0.6.5

func (x *ViewAuditLogRequest) GetMethod() string

func (*ViewAuditLogRequest) GetPagination

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

func (*ViewAuditLogRequest) GetSearch added in v0.6.5

func (x *ViewAuditLogRequest) GetSearch() string

func (*ViewAuditLogRequest) GetService added in v0.6.5

func (x *ViewAuditLogRequest) GetService() string

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