v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const OperationRoleServiceCreateRole = "/user.api.role.v1.RoleService/CreateRole"
View Source
const OperationRoleServiceDeleteRole = "/user.api.role.v1.RoleService/DeleteRole"
View Source
const OperationRoleServiceGetRole = "/user.api.role.v1.RoleService/GetRole"
View Source
const OperationRoleServiceGetRolePermission = "/user.api.role.v1.RoleService/GetRolePermission"
View Source
const OperationRoleServiceListRoles = "/user.api.role.v1.RoleService/ListRoles"
View Source
const OperationRoleServiceUpdateRole = "/user.api.role.v1.RoleService/UpdateRole"
View Source
const OperationRoleServiceUpdateRolePermission = "/user.api.role.v1.RoleService/UpdateRolePermission"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "ROLE_PRESERVED",
	}
	ErrorReason_value = map[string]int32{
		"ROLE_PRESERVED": 0,
	}
)

Enum value maps for ErrorReason.

View Source
var File_user_api_role_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_user_api_role_v1_role_proto protoreflect.FileDescriptor
View Source
var RoleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.api.role.v1.RoleService",
	HandlerType: (*RoleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListRoles",
			Handler:    _RoleService_ListRoles_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _RoleService_GetRole_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _RoleService_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _RoleService_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _RoleService_DeleteRole_Handler,
		},
		{
			MethodName: "GetRolePermission",
			Handler:    _RoleService_GetRolePermission_Handler,
		},
		{
			MethodName: "UpdateRolePermission",
			Handler:    _RoleService_UpdateRolePermission_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/api/role/v1/role.proto",
}

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

Functions

func ErrorRolePreserved

func ErrorRolePreserved(format string, args ...interface{}) *errors.Error

func ErrorRolePreservedLocalized

func ErrorRolePreservedLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func IsRolePreserved

func IsRolePreserved(err error) bool

func RegisterRoleServiceHTTPServer

func RegisterRoleServiceHTTPServer(s *http.Server, srv RoleServiceHTTPServer)

func RegisterRoleServiceServer

func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)

Types

type CreateRoleRequest

type CreateRoleRequest struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetName

func (x *CreateRoleRequest) GetName() 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 DeleteRoleRequest

type DeleteRoleRequest struct {
	Id string `protobuf:"bytes,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() string

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 ErrorReason

type ErrorReason int32
const (
	ErrorReason_ROLE_PRESERVED ErrorReason = 0
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

func (ErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type GetRolePermissionRequest

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

func (*GetRolePermissionRequest) Descriptor deprecated

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

Deprecated: Use GetRolePermissionRequest.ProtoReflect.Descriptor instead.

func (*GetRolePermissionRequest) GetId

func (x *GetRolePermissionRequest) GetId() string

func (*GetRolePermissionRequest) ProtoMessage

func (*GetRolePermissionRequest) ProtoMessage()

func (*GetRolePermissionRequest) ProtoReflect

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

func (*GetRolePermissionRequest) Reset

func (x *GetRolePermissionRequest) Reset()

func (*GetRolePermissionRequest) String

func (x *GetRolePermissionRequest) String() string

func (*GetRolePermissionRequest) Validate

func (m *GetRolePermissionRequest) Validate() error

Validate checks the field values on GetRolePermissionRequest 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 (*GetRolePermissionRequest) ValidateAll

func (m *GetRolePermissionRequest) ValidateAll() error

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

type GetRolePermissionRequestMultiError

type GetRolePermissionRequestMultiError []error

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

func (GetRolePermissionRequestMultiError) AllErrors

func (m GetRolePermissionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRolePermissionRequestMultiError) Error

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

type GetRolePermissionRequestValidationError

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

GetRolePermissionRequestValidationError is the validation error returned by GetRolePermissionRequest.Validate if the designated constraints aren't met.

func (GetRolePermissionRequestValidationError) Cause

Cause function returns cause value.

func (GetRolePermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRolePermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (GetRolePermissionRequestValidationError) Field

Field function returns field value.

func (GetRolePermissionRequestValidationError) Key

Key function returns key value.

func (GetRolePermissionRequestValidationError) Reason

Reason function returns reason value.

type GetRolePermissionResponse

type GetRolePermissionResponse struct {
	Acl       []*v1.Permission         `protobuf:"bytes,1,rep,name=acl,proto3" json:"acl,omitempty"`
	DefGroups []*v1.PermissionDefGroup `protobuf:"bytes,2,rep,name=def_groups,json=defGroups,proto3" json:"def_groups,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRolePermissionResponse) Descriptor deprecated

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

Deprecated: Use GetRolePermissionResponse.ProtoReflect.Descriptor instead.

func (*GetRolePermissionResponse) GetAcl

func (x *GetRolePermissionResponse) GetAcl() []*v1.Permission

func (*GetRolePermissionResponse) GetDefGroups

func (x *GetRolePermissionResponse) GetDefGroups() []*v1.PermissionDefGroup

func (*GetRolePermissionResponse) ProtoMessage

func (*GetRolePermissionResponse) ProtoMessage()

func (*GetRolePermissionResponse) ProtoReflect

func (*GetRolePermissionResponse) Reset

func (x *GetRolePermissionResponse) Reset()

func (*GetRolePermissionResponse) String

func (x *GetRolePermissionResponse) String() string

func (*GetRolePermissionResponse) Validate

func (m *GetRolePermissionResponse) Validate() error

Validate checks the field values on GetRolePermissionResponse 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 (*GetRolePermissionResponse) ValidateAll

func (m *GetRolePermissionResponse) ValidateAll() error

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

type GetRolePermissionResponseMultiError

type GetRolePermissionResponseMultiError []error

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

func (GetRolePermissionResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRolePermissionResponseMultiError) Error

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

type GetRolePermissionResponseValidationError

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

GetRolePermissionResponseValidationError is the validation error returned by GetRolePermissionResponse.Validate if the designated constraints aren't met.

func (GetRolePermissionResponseValidationError) Cause

Cause function returns cause value.

func (GetRolePermissionResponseValidationError) Error

Error satisfies the builtin error interface

func (GetRolePermissionResponseValidationError) ErrorName

ErrorName returns error name.

func (GetRolePermissionResponseValidationError) Field

Field function returns field value.

func (GetRolePermissionResponseValidationError) Key

Key function returns key value.

func (GetRolePermissionResponseValidationError) Reason

Reason function returns reason value.

type GetRoleRequest

type GetRoleRequest struct {

	// id or name should be provided
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// id or name should be provided
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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() string

func (*GetRoleRequest) GetName

func (x *GetRoleRequest) GetName() string

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 ListRolesRequest

type ListRolesRequest struct {
	PageOffset int32                  `protobuf:"varint,1,opt,name=page_offset,json=pageOffset,proto3" json:"page_offset,omitempty"`
	PageSize   int32                  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Search     string                 `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	Sort       []string               `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"`
	Fields     *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"`
	Filter     *RoleFilter            `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRolesRequest) Descriptor deprecated

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

Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.

func (*ListRolesRequest) GetFields

func (x *ListRolesRequest) GetFields() *fieldmaskpb.FieldMask

func (*ListRolesRequest) GetFilter

func (x *ListRolesRequest) GetFilter() *RoleFilter

func (*ListRolesRequest) GetPageOffset

func (x *ListRolesRequest) GetPageOffset() int32

func (*ListRolesRequest) GetPageSize

func (x *ListRolesRequest) GetPageSize() int32

func (*ListRolesRequest) GetSearch

func (x *ListRolesRequest) GetSearch() string

func (*ListRolesRequest) GetSort

func (x *ListRolesRequest) GetSort() []string

func (*ListRolesRequest) ProtoMessage

func (*ListRolesRequest) ProtoMessage()

func (*ListRolesRequest) ProtoReflect

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

func (*ListRolesRequest) Reset

func (x *ListRolesRequest) Reset()

func (*ListRolesRequest) String

func (x *ListRolesRequest) String() string

func (*ListRolesRequest) Validate

func (m *ListRolesRequest) Validate() error

Validate checks the field values on ListRolesRequest 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 (*ListRolesRequest) ValidateAll

func (m *ListRolesRequest) ValidateAll() error

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

type ListRolesRequestMultiError

type ListRolesRequestMultiError []error

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

func (ListRolesRequestMultiError) AllErrors

func (m ListRolesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRolesRequestMultiError) Error

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

type ListRolesRequestValidationError

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

ListRolesRequestValidationError is the validation error returned by ListRolesRequest.Validate if the designated constraints aren't met.

func (ListRolesRequestValidationError) Cause

Cause function returns cause value.

func (ListRolesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRolesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListRolesRequestValidationError) Field

Field function returns field value.

func (ListRolesRequestValidationError) Key

Key function returns key value.

func (ListRolesRequestValidationError) Reason

Reason function returns reason value.

type ListRolesResponse

type ListRolesResponse struct {
	TotalSize  int32   `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	FilterSize int32   `protobuf:"varint,2,opt,name=filter_size,json=filterSize,proto3" json:"filter_size,omitempty"`
	Items      []*Role `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRolesResponse) Descriptor deprecated

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

Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.

func (*ListRolesResponse) GetFilterSize

func (x *ListRolesResponse) GetFilterSize() int32

func (*ListRolesResponse) GetItems

func (x *ListRolesResponse) GetItems() []*Role

func (*ListRolesResponse) GetTotalSize

func (x *ListRolesResponse) GetTotalSize() int32

func (*ListRolesResponse) ProtoMessage

func (*ListRolesResponse) ProtoMessage()

func (*ListRolesResponse) ProtoReflect

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

func (*ListRolesResponse) Reset

func (x *ListRolesResponse) Reset()

func (*ListRolesResponse) String

func (x *ListRolesResponse) String() string

func (*ListRolesResponse) Validate

func (m *ListRolesResponse) Validate() error

Validate checks the field values on ListRolesResponse 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 (*ListRolesResponse) ValidateAll

func (m *ListRolesResponse) ValidateAll() error

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

type ListRolesResponseMultiError

type ListRolesResponseMultiError []error

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

func (ListRolesResponseMultiError) AllErrors

func (m ListRolesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRolesResponseMultiError) Error

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

type ListRolesResponseValidationError

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

ListRolesResponseValidationError is the validation error returned by ListRolesResponse.Validate if the designated constraints aren't met.

func (ListRolesResponseValidationError) Cause

Cause function returns cause value.

func (ListRolesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListRolesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListRolesResponseValidationError) Field

Field function returns field value.

func (ListRolesResponseValidationError) Key

Key function returns key value.

func (ListRolesResponseValidationError) Reason

Reason function returns reason value.

type Role

type Role struct {
	Id          string                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string                   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IsPreserved bool                     `protobuf:"varint,3,opt,name=is_preserved,json=isPreserved,proto3" json:"is_preserved,omitempty"`
	Acl         []*v1.Permission         `protobuf:"bytes,4,rep,name=acl,proto3" json:"acl,omitempty"`
	DefGroups   []*v1.PermissionDefGroup `protobuf:"bytes,5,rep,name=def_groups,json=defGroups,proto3" json:"def_groups,omitempty"`
	// contains filtered or unexported fields
}

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetAcl

func (x *Role) GetAcl() []*v1.Permission

func (*Role) GetDefGroups

func (x *Role) GetDefGroups() []*v1.PermissionDefGroup

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) GetIsPreserved

func (x *Role) GetIsPreserved() bool

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

func (*Role) Validate

func (m *Role) Validate() error

Validate checks the field values on Role 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 (*Role) ValidateAll

func (m *Role) ValidateAll() error

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

type RoleFilter

type RoleFilter struct {
	Id   *query.StringFilterOperation `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name *query.StringFilterOperation `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleFilter) Descriptor deprecated

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

Deprecated: Use RoleFilter.ProtoReflect.Descriptor instead.

func (*RoleFilter) GetId

func (*RoleFilter) GetName

func (x *RoleFilter) GetName() *query.StringFilterOperation

func (*RoleFilter) ProtoMessage

func (*RoleFilter) ProtoMessage()

func (*RoleFilter) ProtoReflect

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

func (*RoleFilter) Reset

func (x *RoleFilter) Reset()

func (*RoleFilter) String

func (x *RoleFilter) String() string

func (*RoleFilter) Validate

func (m *RoleFilter) Validate() error

Validate checks the field values on RoleFilter 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 (*RoleFilter) ValidateAll

func (m *RoleFilter) ValidateAll() error

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

type RoleFilterMultiError

type RoleFilterMultiError []error

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

func (RoleFilterMultiError) AllErrors

func (m RoleFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleFilterMultiError) Error

func (m RoleFilterMultiError) Error() string

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

type RoleFilterValidationError

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

RoleFilterValidationError is the validation error returned by RoleFilter.Validate if the designated constraints aren't met.

func (RoleFilterValidationError) Cause

func (e RoleFilterValidationError) Cause() error

Cause function returns cause value.

func (RoleFilterValidationError) Error

Error satisfies the builtin error interface

func (RoleFilterValidationError) ErrorName

func (e RoleFilterValidationError) ErrorName() string

ErrorName returns error name.

func (RoleFilterValidationError) Field

Field function returns field value.

func (RoleFilterValidationError) Key

Key function returns key value.

func (RoleFilterValidationError) Reason

func (e RoleFilterValidationError) Reason() string

Reason function returns reason value.

type RoleMultiError

type RoleMultiError []error

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

func (RoleMultiError) AllErrors

func (m RoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RoleMultiError) Error

func (m RoleMultiError) Error() string

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

type RoleServiceClient

type RoleServiceClient interface {
	// authz: user.role,*,list
	ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error)
	// authz: user.role,id,get
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*Role, error)
	// authz: user.role,*,create
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*Role, error)
	// authz: user.role,id,update
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*Role, error)
	// authz: user.role,id,delete
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error)
	GetRolePermission(ctx context.Context, in *GetRolePermissionRequest, opts ...grpc.CallOption) (*GetRolePermissionResponse, error)
	UpdateRolePermission(ctx context.Context, in *UpdateRolePermissionRequest, opts ...grpc.CallOption) (*UpdateRolePermissionResponse, error)
}

RoleServiceClient is the client API for RoleService service.

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

type RoleServiceHTTPClient

type RoleServiceHTTPClient interface {
	CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *Role, err error)
	DeleteRole(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *DeleteRoleResponse, err error)
	GetRole(ctx context.Context, req *GetRoleRequest, opts ...http.CallOption) (rsp *Role, err error)
	GetRolePermission(ctx context.Context, req *GetRolePermissionRequest, opts ...http.CallOption) (rsp *GetRolePermissionResponse, err error)
	ListRoles(ctx context.Context, req *ListRolesRequest, opts ...http.CallOption) (rsp *ListRolesResponse, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *Role, err error)
	UpdateRolePermission(ctx context.Context, req *UpdateRolePermissionRequest, opts ...http.CallOption) (rsp *UpdateRolePermissionResponse, err error)
}

func NewRoleServiceHTTPClient

func NewRoleServiceHTTPClient(client *http.Client) RoleServiceHTTPClient

type RoleServiceHTTPClientImpl

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

func (*RoleServiceHTTPClientImpl) CreateRole

func (c *RoleServiceHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*Role, error)

func (*RoleServiceHTTPClientImpl) DeleteRole

func (*RoleServiceHTTPClientImpl) GetRole

func (*RoleServiceHTTPClientImpl) GetRolePermission

func (*RoleServiceHTTPClientImpl) ListRoles

func (*RoleServiceHTTPClientImpl) UpdateRole

func (c *RoleServiceHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*Role, error)

func (*RoleServiceHTTPClientImpl) UpdateRolePermission

type RoleServiceServer

type RoleServiceServer interface {
	// authz: user.role,*,list
	ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
	// authz: user.role,id,get
	GetRole(context.Context, *GetRoleRequest) (*Role, error)
	// authz: user.role,*,create
	CreateRole(context.Context, *CreateRoleRequest) (*Role, error)
	// authz: user.role,id,update
	UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error)
	// authz: user.role,id,delete
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
	GetRolePermission(context.Context, *GetRolePermissionRequest) (*GetRolePermissionResponse, error)
	UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error)
}

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

func NewRoleServiceClientProxy

func NewRoleServiceClientProxy(cc RoleServiceClient) RoleServiceServer

type RoleValidationError

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

RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.

func (RoleValidationError) Cause

func (e RoleValidationError) Cause() error

Cause function returns cause value.

func (RoleValidationError) Error

func (e RoleValidationError) Error() string

Error satisfies the builtin error interface

func (RoleValidationError) ErrorName

func (e RoleValidationError) ErrorName() string

ErrorName returns error name.

func (RoleValidationError) Field

func (e RoleValidationError) Field() string

Field function returns field value.

func (RoleValidationError) Key

func (e RoleValidationError) Key() bool

Key function returns key value.

func (RoleValidationError) Reason

func (e RoleValidationError) Reason() string

Reason function returns reason value.

type UnimplementedRoleServiceServer

type UnimplementedRoleServiceServer struct {
}

UnimplementedRoleServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRoleServiceServer) CreateRole

func (UnimplementedRoleServiceServer) DeleteRole

func (UnimplementedRoleServiceServer) GetRole

func (UnimplementedRoleServiceServer) GetRolePermission

func (UnimplementedRoleServiceServer) ListRoles

func (UnimplementedRoleServiceServer) UpdateRole

type UnsafeRoleServiceServer

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

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

type UpdateRole

type UpdateRole struct {
	Id   string                     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string                     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Acl  []*UpdateRolePermissionAcl `protobuf:"bytes,3,rep,name=acl,proto3" json:"acl,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRole) Descriptor deprecated

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

Deprecated: Use UpdateRole.ProtoReflect.Descriptor instead.

func (*UpdateRole) GetAcl

func (x *UpdateRole) GetAcl() []*UpdateRolePermissionAcl

func (*UpdateRole) GetId

func (x *UpdateRole) GetId() string

func (*UpdateRole) GetName

func (x *UpdateRole) GetName() string

func (*UpdateRole) ProtoMessage

func (*UpdateRole) ProtoMessage()

func (*UpdateRole) ProtoReflect

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

func (*UpdateRole) Reset

func (x *UpdateRole) Reset()

func (*UpdateRole) String

func (x *UpdateRole) String() string

func (*UpdateRole) Validate

func (m *UpdateRole) Validate() error

Validate checks the field values on UpdateRole 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 (*UpdateRole) ValidateAll

func (m *UpdateRole) ValidateAll() error

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

type UpdateRoleMultiError

type UpdateRoleMultiError []error

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

func (UpdateRoleMultiError) AllErrors

func (m UpdateRoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleMultiError) Error

func (m UpdateRoleMultiError) Error() string

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

type UpdateRolePermissionAcl

type UpdateRolePermissionAcl struct {
	Namespace string    `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Resource  string    `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	Action    string    `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
	Effect    v1.Effect `protobuf:"varint,5,opt,name=effect,proto3,enum=user.api.permission.v1.Effect" json:"effect,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRolePermissionAcl) Descriptor deprecated

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

Deprecated: Use UpdateRolePermissionAcl.ProtoReflect.Descriptor instead.

func (*UpdateRolePermissionAcl) GetAction

func (x *UpdateRolePermissionAcl) GetAction() string

func (*UpdateRolePermissionAcl) GetEffect

func (x *UpdateRolePermissionAcl) GetEffect() v1.Effect

func (*UpdateRolePermissionAcl) GetNamespace

func (x *UpdateRolePermissionAcl) GetNamespace() string

func (*UpdateRolePermissionAcl) GetResource

func (x *UpdateRolePermissionAcl) GetResource() string

func (*UpdateRolePermissionAcl) ProtoMessage

func (*UpdateRolePermissionAcl) ProtoMessage()

func (*UpdateRolePermissionAcl) ProtoReflect

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

func (*UpdateRolePermissionAcl) Reset

func (x *UpdateRolePermissionAcl) Reset()

func (*UpdateRolePermissionAcl) String

func (x *UpdateRolePermissionAcl) String() string

func (*UpdateRolePermissionAcl) Validate

func (m *UpdateRolePermissionAcl) Validate() error

Validate checks the field values on UpdateRolePermissionAcl 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 (*UpdateRolePermissionAcl) ValidateAll

func (m *UpdateRolePermissionAcl) ValidateAll() error

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

type UpdateRolePermissionAclMultiError

type UpdateRolePermissionAclMultiError []error

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

func (UpdateRolePermissionAclMultiError) AllErrors

func (m UpdateRolePermissionAclMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRolePermissionAclMultiError) Error

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

type UpdateRolePermissionAclValidationError

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

UpdateRolePermissionAclValidationError is the validation error returned by UpdateRolePermissionAcl.Validate if the designated constraints aren't met.

func (UpdateRolePermissionAclValidationError) Cause

Cause function returns cause value.

func (UpdateRolePermissionAclValidationError) Error

Error satisfies the builtin error interface

func (UpdateRolePermissionAclValidationError) ErrorName

ErrorName returns error name.

func (UpdateRolePermissionAclValidationError) Field

Field function returns field value.

func (UpdateRolePermissionAclValidationError) Key

Key function returns key value.

func (UpdateRolePermissionAclValidationError) Reason

Reason function returns reason value.

type UpdateRolePermissionRequest

type UpdateRolePermissionRequest struct {
	Id  string                     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Acl []*UpdateRolePermissionAcl `protobuf:"bytes,2,rep,name=acl,proto3" json:"acl,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRolePermissionRequest) Descriptor deprecated

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

Deprecated: Use UpdateRolePermissionRequest.ProtoReflect.Descriptor instead.

func (*UpdateRolePermissionRequest) GetAcl

func (*UpdateRolePermissionRequest) GetId

func (*UpdateRolePermissionRequest) ProtoMessage

func (*UpdateRolePermissionRequest) ProtoMessage()

func (*UpdateRolePermissionRequest) ProtoReflect

func (*UpdateRolePermissionRequest) Reset

func (x *UpdateRolePermissionRequest) Reset()

func (*UpdateRolePermissionRequest) String

func (x *UpdateRolePermissionRequest) String() string

func (*UpdateRolePermissionRequest) Validate

func (m *UpdateRolePermissionRequest) Validate() error

Validate checks the field values on UpdateRolePermissionRequest 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 (*UpdateRolePermissionRequest) ValidateAll

func (m *UpdateRolePermissionRequest) ValidateAll() error

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

type UpdateRolePermissionRequestMultiError

type UpdateRolePermissionRequestMultiError []error

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

func (UpdateRolePermissionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRolePermissionRequestMultiError) Error

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

type UpdateRolePermissionRequestValidationError

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

UpdateRolePermissionRequestValidationError is the validation error returned by UpdateRolePermissionRequest.Validate if the designated constraints aren't met.

func (UpdateRolePermissionRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRolePermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRolePermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRolePermissionRequestValidationError) Field

Field function returns field value.

func (UpdateRolePermissionRequestValidationError) Key

Key function returns key value.

func (UpdateRolePermissionRequestValidationError) Reason

Reason function returns reason value.

type UpdateRolePermissionResponse

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

func (*UpdateRolePermissionResponse) Descriptor deprecated

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

Deprecated: Use UpdateRolePermissionResponse.ProtoReflect.Descriptor instead.

func (*UpdateRolePermissionResponse) ProtoMessage

func (*UpdateRolePermissionResponse) ProtoMessage()

func (*UpdateRolePermissionResponse) ProtoReflect

func (*UpdateRolePermissionResponse) Reset

func (x *UpdateRolePermissionResponse) Reset()

func (*UpdateRolePermissionResponse) String

func (*UpdateRolePermissionResponse) Validate

func (m *UpdateRolePermissionResponse) Validate() error

Validate checks the field values on UpdateRolePermissionResponse 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 (*UpdateRolePermissionResponse) ValidateAll

func (m *UpdateRolePermissionResponse) ValidateAll() error

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

type UpdateRolePermissionResponseMultiError

type UpdateRolePermissionResponseMultiError []error

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

func (UpdateRolePermissionResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRolePermissionResponseMultiError) Error

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

type UpdateRolePermissionResponseValidationError

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

UpdateRolePermissionResponseValidationError is the validation error returned by UpdateRolePermissionResponse.Validate if the designated constraints aren't met.

func (UpdateRolePermissionResponseValidationError) Cause

Cause function returns cause value.

func (UpdateRolePermissionResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateRolePermissionResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateRolePermissionResponseValidationError) Field

Field function returns field value.

func (UpdateRolePermissionResponseValidationError) Key

Key function returns key value.

func (UpdateRolePermissionResponseValidationError) Reason

Reason function returns reason value.

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Role       *UpdateRole            `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest) Descriptor deprecated

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

Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest) GetRole

func (x *UpdateRoleRequest) GetRole() *UpdateRole

func (*UpdateRoleRequest) GetUpdateMask

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

func (*UpdateRoleRequest) ProtoMessage

func (*UpdateRoleRequest) ProtoMessage()

func (*UpdateRoleRequest) ProtoReflect

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

func (*UpdateRoleRequest) Reset

func (x *UpdateRoleRequest) Reset()

func (*UpdateRoleRequest) String

func (x *UpdateRoleRequest) String() string

func (*UpdateRoleRequest) Validate

func (m *UpdateRoleRequest) Validate() error

Validate checks the field values on UpdateRoleRequest 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 (*UpdateRoleRequest) ValidateAll

func (m *UpdateRoleRequest) ValidateAll() error

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

type UpdateRoleRequestMultiError

type UpdateRoleRequestMultiError []error

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

func (UpdateRoleRequestMultiError) AllErrors

func (m UpdateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleRequestMultiError) Error

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

type UpdateRoleRequestValidationError

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

UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.

func (UpdateRoleRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleRequestValidationError) Field

Field function returns field value.

func (UpdateRoleRequestValidationError) Key

Key function returns key value.

func (UpdateRoleRequestValidationError) Reason

Reason function returns reason value.

type UpdateRoleValidationError

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

UpdateRoleValidationError is the validation error returned by UpdateRole.Validate if the designated constraints aren't met.

func (UpdateRoleValidationError) Cause

func (e UpdateRoleValidationError) Cause() error

Cause function returns cause value.

func (UpdateRoleValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleValidationError) ErrorName

func (e UpdateRoleValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRoleValidationError) Field

Field function returns field value.

func (UpdateRoleValidationError) Key

Key function returns key value.

func (UpdateRoleValidationError) Reason

func (e UpdateRoleValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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