Documentation ¶
Index ¶
- Variables
- func ValidateJobGradeList(in *JobGradeList, validVals map[string]int32, maxVals map[string]int32) (bool, bool)
- func ValidateJobList(in *StringList, validVals []string, maxVals []string) (bool, bool)
- func ValidateStringList(in *StringList, validVals []string, maxVals []string) (bool, bool)
- type AttributeTypes
- type AttributeValues
- func (x *AttributeValues) Check(aType AttributeTypes, validVals *AttributeValues, maxVals *AttributeValues) (bool, bool)
- func (x *AttributeValues) Default(aType AttributeTypes)
- func (*AttributeValues) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeValues) GetJobGradeList() *JobGradeList
- func (x *AttributeValues) GetJobList() *StringList
- func (x *AttributeValues) GetStringList() *StringList
- func (m *AttributeValues) GetValidValues() isAttributeValues_ValidValues
- func (*AttributeValues) ProtoMessage()
- func (x *AttributeValues) ProtoReflect() protoreflect.Message
- func (x *AttributeValues) Reset()
- func (x *AttributeValues) Scan(value any) error
- func (x *AttributeValues) String() string
- func (m *AttributeValues) Validate() error
- func (m *AttributeValues) ValidateAll() error
- func (x *AttributeValues) Value() (driver.Value, error)
- type AttributeValuesMultiError
- type AttributeValuesValidationError
- func (e AttributeValuesValidationError) Cause() error
- func (e AttributeValuesValidationError) Error() string
- func (e AttributeValuesValidationError) ErrorName() string
- func (e AttributeValuesValidationError) Field() string
- func (e AttributeValuesValidationError) Key() bool
- func (e AttributeValuesValidationError) Reason() string
- type AttributeValues_JobGradeList
- type AttributeValues_JobList
- type AttributeValues_StringList
- type JobGradeList
- func (*JobGradeList) Descriptor() ([]byte, []int)deprecated
- func (x *JobGradeList) GetJobs() map[string]int32
- func (*JobGradeList) ProtoMessage()
- func (x *JobGradeList) ProtoReflect() protoreflect.Message
- func (x *JobGradeList) Reset()
- func (x *JobGradeList) String() string
- func (m *JobGradeList) Validate() error
- func (m *JobGradeList) ValidateAll() error
- type JobGradeListMultiError
- type JobGradeListValidationError
- func (e JobGradeListValidationError) Cause() error
- func (e JobGradeListValidationError) Error() string
- func (e JobGradeListValidationError) ErrorName() string
- func (e JobGradeListValidationError) Field() string
- func (e JobGradeListValidationError) Key() bool
- func (e JobGradeListValidationError) Reason() string
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetCategory() string
- func (x *Permission) GetCreatedAt() *timestamp.Timestamp
- func (x *Permission) GetGuardName() string
- func (x *Permission) GetId() uint64
- func (x *Permission) GetName() string
- func (x *Permission) GetVal() bool
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- func (m *Permission) Validate() error
- func (m *Permission) ValidateAll() error
- type PermissionMultiError
- type PermissionValidationError
- type RawRoleAttribute
- func (*RawRoleAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *RawRoleAttribute) GetAttrId() uint64
- func (x *RawRoleAttribute) GetCategory() string
- func (x *RawRoleAttribute) GetCreatedAt() *timestamp.Timestamp
- func (x *RawRoleAttribute) GetKey() string
- func (x *RawRoleAttribute) GetName() string
- func (x *RawRoleAttribute) GetPermissionId() uint64
- func (x *RawRoleAttribute) GetRoleId() uint64
- func (x *RawRoleAttribute) GetType() string
- func (x *RawRoleAttribute) GetValidValues() *AttributeValues
- func (x *RawRoleAttribute) GetValue() *AttributeValues
- func (*RawRoleAttribute) ProtoMessage()
- func (x *RawRoleAttribute) ProtoReflect() protoreflect.Message
- func (x *RawRoleAttribute) Reset()
- func (x *RawRoleAttribute) String() string
- func (m *RawRoleAttribute) Validate() error
- func (m *RawRoleAttribute) ValidateAll() error
- type RawRoleAttributeMultiError
- type RawRoleAttributeValidationError
- func (e RawRoleAttributeValidationError) Cause() error
- func (e RawRoleAttributeValidationError) Error() string
- func (e RawRoleAttributeValidationError) ErrorName() string
- func (e RawRoleAttributeValidationError) Field() string
- func (e RawRoleAttributeValidationError) Key() bool
- func (e RawRoleAttributeValidationError) Reason() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetAttributes() []*RoleAttribute
- func (x *Role) GetCreatedAt() *timestamp.Timestamp
- func (x *Role) GetGrade() int32
- func (x *Role) GetId() uint64
- func (x *Role) GetJob() string
- func (x *Role) GetJobGrade() int32
- func (x *Role) GetJobGradeLabel() string
- func (x *Role) GetJobLabel() string
- func (x *Role) GetPermissions() []*Permission
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) SetJob(job string)
- func (x *Role) SetJobGrade(grade int32)
- func (x *Role) SetJobGradeLabel(label string)
- func (x *Role) SetJobLabel(label string)
- func (x *Role) String() string
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleAttribute
- func (*RoleAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *RoleAttribute) GetAttrId() uint64
- func (x *RoleAttribute) GetCategory() string
- func (x *RoleAttribute) GetCreatedAt() *timestamp.Timestamp
- func (x *RoleAttribute) GetKey() string
- func (x *RoleAttribute) GetMaxValues() *AttributeValues
- func (x *RoleAttribute) GetName() string
- func (x *RoleAttribute) GetPermissionId() uint64
- func (x *RoleAttribute) GetRoleId() uint64
- func (x *RoleAttribute) GetType() string
- func (x *RoleAttribute) GetValidValues() *AttributeValues
- func (x *RoleAttribute) GetValue() *AttributeValues
- func (*RoleAttribute) ProtoMessage()
- func (x *RoleAttribute) ProtoReflect() protoreflect.Message
- func (x *RoleAttribute) Reset()
- func (x *RoleAttribute) String() string
- func (m *RoleAttribute) Validate() error
- func (m *RoleAttribute) ValidateAll() error
- type RoleAttributeMultiError
- type RoleAttributeValidationError
- func (e RoleAttributeValidationError) Cause() error
- func (e RoleAttributeValidationError) Error() string
- func (e RoleAttributeValidationError) ErrorName() string
- func (e RoleAttributeValidationError) Field() string
- func (e RoleAttributeValidationError) Key() bool
- func (e RoleAttributeValidationError) Reason() string
- type RoleMultiError
- type RoleValidationError
- type StringList
- func (*StringList) Descriptor() ([]byte, []int)deprecated
- func (x *StringList) GetStrings() []string
- func (*StringList) ProtoMessage()
- func (x *StringList) ProtoReflect() protoreflect.Message
- func (x *StringList) Reset()
- func (x *StringList) String() string
- func (m *StringList) Validate() error
- func (m *StringList) ValidateAll() error
- type StringListMultiError
- type StringListValidationError
Constants ¶
This section is empty.
Variables ¶
var File_resources_permissions_permissions_proto protoreflect.FileDescriptor
Functions ¶
func ValidateJobGradeList ¶ added in v0.7.0
func ValidateJobList ¶ added in v0.7.0
func ValidateJobList(in *StringList, validVals []string, maxVals []string) (bool, bool)
func ValidateStringList ¶ added in v0.7.0
func ValidateStringList(in *StringList, validVals []string, maxVals []string) (bool, bool)
Types ¶
type AttributeTypes ¶ added in v0.7.0
type AttributeTypes string
const ( StringListAttributeType AttributeTypes = "StringList" JobListAttributeType AttributeTypes = "JobList" JobGradeListAttributeType AttributeTypes = "JobGradeList" )
type AttributeValues ¶
type AttributeValues struct { // Types that are assignable to ValidValues: // // *AttributeValues_StringList // *AttributeValues_JobList // *AttributeValues_JobGradeList ValidValues isAttributeValues_ValidValues `protobuf_oneof:"valid_values"` // contains filtered or unexported fields }
func (*AttributeValues) Check ¶ added in v0.7.0
func (x *AttributeValues) Check(aType AttributeTypes, validVals *AttributeValues, maxVals *AttributeValues) (bool, bool)
func (*AttributeValues) Default ¶ added in v0.7.0
func (x *AttributeValues) Default(aType AttributeTypes)
func (*AttributeValues) Descriptor
deprecated
func (*AttributeValues) Descriptor() ([]byte, []int)
Deprecated: Use AttributeValues.ProtoReflect.Descriptor instead.
func (*AttributeValues) GetJobGradeList ¶
func (x *AttributeValues) GetJobGradeList() *JobGradeList
func (*AttributeValues) GetJobList ¶
func (x *AttributeValues) GetJobList() *StringList
func (*AttributeValues) GetStringList ¶
func (x *AttributeValues) GetStringList() *StringList
func (*AttributeValues) GetValidValues ¶
func (m *AttributeValues) GetValidValues() isAttributeValues_ValidValues
func (*AttributeValues) ProtoMessage ¶
func (*AttributeValues) ProtoMessage()
func (*AttributeValues) ProtoReflect ¶
func (x *AttributeValues) ProtoReflect() protoreflect.Message
func (*AttributeValues) Reset ¶
func (x *AttributeValues) Reset()
func (*AttributeValues) Scan ¶ added in v0.8.20
func (x *AttributeValues) Scan(value any) error
Scan implements driver.Valuer for protobuf DocActivityData.
func (*AttributeValues) String ¶
func (x *AttributeValues) String() string
func (*AttributeValues) Validate ¶
func (m *AttributeValues) Validate() error
Validate checks the field values on AttributeValues 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 (*AttributeValues) ValidateAll ¶
func (m *AttributeValues) ValidateAll() error
ValidateAll checks the field values on AttributeValues 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 AttributeValuesMultiError, or nil if none found.
type AttributeValuesMultiError ¶
type AttributeValuesMultiError []error
AttributeValuesMultiError is an error wrapping multiple validation errors returned by AttributeValues.ValidateAll() if the designated constraints aren't met.
func (AttributeValuesMultiError) AllErrors ¶
func (m AttributeValuesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AttributeValuesMultiError) Error ¶
func (m AttributeValuesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AttributeValuesValidationError ¶
type AttributeValuesValidationError struct {
// contains filtered or unexported fields
}
AttributeValuesValidationError is the validation error returned by AttributeValues.Validate if the designated constraints aren't met.
func (AttributeValuesValidationError) Cause ¶
func (e AttributeValuesValidationError) Cause() error
Cause function returns cause value.
func (AttributeValuesValidationError) Error ¶
func (e AttributeValuesValidationError) Error() string
Error satisfies the builtin error interface
func (AttributeValuesValidationError) ErrorName ¶
func (e AttributeValuesValidationError) ErrorName() string
ErrorName returns error name.
func (AttributeValuesValidationError) Field ¶
func (e AttributeValuesValidationError) Field() string
Field function returns field value.
func (AttributeValuesValidationError) Key ¶
func (e AttributeValuesValidationError) Key() bool
Key function returns key value.
func (AttributeValuesValidationError) Reason ¶
func (e AttributeValuesValidationError) Reason() string
Reason function returns reason value.
type AttributeValues_JobGradeList ¶
type AttributeValues_JobGradeList struct {
JobGradeList *JobGradeList `protobuf:"bytes,3,opt,name=job_grade_list,json=jobGradeList,proto3,oneof"`
}
type AttributeValues_JobList ¶
type AttributeValues_JobList struct {
JobList *StringList `protobuf:"bytes,2,opt,name=job_list,json=jobList,proto3,oneof"`
}
type AttributeValues_StringList ¶
type AttributeValues_StringList struct {
StringList *StringList `protobuf:"bytes,1,opt,name=string_list,json=stringList,proto3,oneof"`
}
type JobGradeList ¶
type JobGradeList struct { Jobs map[string]int32 `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
func (*JobGradeList) Descriptor
deprecated
func (*JobGradeList) Descriptor() ([]byte, []int)
Deprecated: Use JobGradeList.ProtoReflect.Descriptor instead.
func (*JobGradeList) GetJobs ¶
func (x *JobGradeList) GetJobs() map[string]int32
func (*JobGradeList) ProtoMessage ¶
func (*JobGradeList) ProtoMessage()
func (*JobGradeList) ProtoReflect ¶
func (x *JobGradeList) ProtoReflect() protoreflect.Message
func (*JobGradeList) Reset ¶
func (x *JobGradeList) Reset()
func (*JobGradeList) String ¶
func (x *JobGradeList) String() string
func (*JobGradeList) Validate ¶
func (m *JobGradeList) Validate() error
Validate checks the field values on JobGradeList 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 (*JobGradeList) ValidateAll ¶
func (m *JobGradeList) ValidateAll() error
ValidateAll checks the field values on JobGradeList 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 JobGradeListMultiError, or nil if none found.
type JobGradeListMultiError ¶
type JobGradeListMultiError []error
JobGradeListMultiError is an error wrapping multiple validation errors returned by JobGradeList.ValidateAll() if the designated constraints aren't met.
func (JobGradeListMultiError) AllErrors ¶
func (m JobGradeListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobGradeListMultiError) Error ¶
func (m JobGradeListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobGradeListValidationError ¶
type JobGradeListValidationError struct {
// contains filtered or unexported fields
}
JobGradeListValidationError is the validation error returned by JobGradeList.Validate if the designated constraints aren't met.
func (JobGradeListValidationError) Cause ¶
func (e JobGradeListValidationError) Cause() error
Cause function returns cause value.
func (JobGradeListValidationError) Error ¶
func (e JobGradeListValidationError) Error() string
Error satisfies the builtin error interface
func (JobGradeListValidationError) ErrorName ¶
func (e JobGradeListValidationError) ErrorName() string
ErrorName returns error name.
func (JobGradeListValidationError) Field ¶
func (e JobGradeListValidationError) Field() string
Field function returns field value.
func (JobGradeListValidationError) Key ¶
func (e JobGradeListValidationError) Key() bool
Key function returns key value.
func (JobGradeListValidationError) Reason ¶
func (e JobGradeListValidationError) Reason() string
Reason function returns reason value.
type Permission ¶
type Permission struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` GuardName string `protobuf:"bytes,5,opt,name=guard_name,json=guardName,proto3" json:"guard_name,omitempty"` Val bool `protobuf:"varint,6,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetCategory ¶
func (x *Permission) GetCategory() string
func (*Permission) GetCreatedAt ¶
func (x *Permission) GetCreatedAt() *timestamp.Timestamp
func (*Permission) GetGuardName ¶
func (x *Permission) GetGuardName() string
func (*Permission) GetId ¶
func (x *Permission) GetId() uint64
func (*Permission) GetName ¶
func (x *Permission) GetName() string
func (*Permission) GetVal ¶
func (x *Permission) GetVal() bool
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
func (*Permission) Validate ¶
func (m *Permission) Validate() error
Validate checks the field values on Permission 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 (*Permission) ValidateAll ¶
func (m *Permission) ValidateAll() error
ValidateAll checks the field values on Permission 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 PermissionMultiError, or nil if none found.
type PermissionMultiError ¶
type PermissionMultiError []error
PermissionMultiError is an error wrapping multiple validation errors returned by Permission.ValidateAll() if the designated constraints aren't met.
func (PermissionMultiError) AllErrors ¶
func (m PermissionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionMultiError) Error ¶
func (m PermissionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionValidationError ¶
type PermissionValidationError struct {
// contains filtered or unexported fields
}
PermissionValidationError is the validation error returned by Permission.Validate if the designated constraints aren't met.
func (PermissionValidationError) Cause ¶
func (e PermissionValidationError) Cause() error
Cause function returns cause value.
func (PermissionValidationError) Error ¶
func (e PermissionValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionValidationError) ErrorName ¶
func (e PermissionValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionValidationError) Field ¶
func (e PermissionValidationError) Field() string
Field function returns field value.
func (PermissionValidationError) Key ¶
func (e PermissionValidationError) Key() bool
Key function returns key value.
func (PermissionValidationError) Reason ¶
func (e PermissionValidationError) Reason() string
Reason function returns reason value.
type RawRoleAttribute ¶ added in v0.6.3
type RawRoleAttribute struct { RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` AttrId uint64 `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty"` PermissionId uint64 `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` ValidValues *AttributeValues `protobuf:"bytes,9,opt,name=valid_values,json=validValues,proto3" json:"valid_values,omitempty"` Value *AttributeValues `protobuf:"bytes,10,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*RawRoleAttribute) Descriptor
deprecated
added in
v0.6.3
func (*RawRoleAttribute) Descriptor() ([]byte, []int)
Deprecated: Use RawRoleAttribute.ProtoReflect.Descriptor instead.
func (*RawRoleAttribute) GetAttrId ¶ added in v0.6.3
func (x *RawRoleAttribute) GetAttrId() uint64
func (*RawRoleAttribute) GetCategory ¶ added in v0.6.3
func (x *RawRoleAttribute) GetCategory() string
func (*RawRoleAttribute) GetCreatedAt ¶ added in v0.6.3
func (x *RawRoleAttribute) GetCreatedAt() *timestamp.Timestamp
func (*RawRoleAttribute) GetKey ¶ added in v0.6.3
func (x *RawRoleAttribute) GetKey() string
func (*RawRoleAttribute) GetName ¶ added in v0.6.3
func (x *RawRoleAttribute) GetName() string
func (*RawRoleAttribute) GetPermissionId ¶ added in v0.6.3
func (x *RawRoleAttribute) GetPermissionId() uint64
func (*RawRoleAttribute) GetRoleId ¶ added in v0.6.3
func (x *RawRoleAttribute) GetRoleId() uint64
func (*RawRoleAttribute) GetType ¶ added in v0.6.3
func (x *RawRoleAttribute) GetType() string
func (*RawRoleAttribute) GetValidValues ¶ added in v0.8.20
func (x *RawRoleAttribute) GetValidValues() *AttributeValues
func (*RawRoleAttribute) GetValue ¶ added in v0.8.20
func (x *RawRoleAttribute) GetValue() *AttributeValues
func (*RawRoleAttribute) ProtoMessage ¶ added in v0.6.3
func (*RawRoleAttribute) ProtoMessage()
func (*RawRoleAttribute) ProtoReflect ¶ added in v0.6.3
func (x *RawRoleAttribute) ProtoReflect() protoreflect.Message
func (*RawRoleAttribute) Reset ¶ added in v0.6.3
func (x *RawRoleAttribute) Reset()
func (*RawRoleAttribute) String ¶ added in v0.6.3
func (x *RawRoleAttribute) String() string
func (*RawRoleAttribute) Validate ¶ added in v0.6.3
func (m *RawRoleAttribute) Validate() error
Validate checks the field values on RawRoleAttribute 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 (*RawRoleAttribute) ValidateAll ¶ added in v0.6.3
func (m *RawRoleAttribute) ValidateAll() error
ValidateAll checks the field values on RawRoleAttribute 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 RawRoleAttributeMultiError, or nil if none found.
type RawRoleAttributeMultiError ¶ added in v0.6.3
type RawRoleAttributeMultiError []error
RawRoleAttributeMultiError is an error wrapping multiple validation errors returned by RawRoleAttribute.ValidateAll() if the designated constraints aren't met.
func (RawRoleAttributeMultiError) AllErrors ¶ added in v0.6.3
func (m RawRoleAttributeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RawRoleAttributeMultiError) Error ¶ added in v0.6.3
func (m RawRoleAttributeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RawRoleAttributeValidationError ¶ added in v0.6.3
type RawRoleAttributeValidationError struct {
// contains filtered or unexported fields
}
RawRoleAttributeValidationError is the validation error returned by RawRoleAttribute.Validate if the designated constraints aren't met.
func (RawRoleAttributeValidationError) Cause ¶ added in v0.6.3
func (e RawRoleAttributeValidationError) Cause() error
Cause function returns cause value.
func (RawRoleAttributeValidationError) Error ¶ added in v0.6.3
func (e RawRoleAttributeValidationError) Error() string
Error satisfies the builtin error interface
func (RawRoleAttributeValidationError) ErrorName ¶ added in v0.6.3
func (e RawRoleAttributeValidationError) ErrorName() string
ErrorName returns error name.
func (RawRoleAttributeValidationError) Field ¶ added in v0.6.3
func (e RawRoleAttributeValidationError) Field() string
Field function returns field value.
func (RawRoleAttributeValidationError) Key ¶ added in v0.6.3
func (e RawRoleAttributeValidationError) Key() bool
Key function returns key value.
func (RawRoleAttributeValidationError) Reason ¶ added in v0.6.3
func (e RawRoleAttributeValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` Grade int32 `protobuf:"varint,5,opt,name=grade,proto3" json:"grade,omitempty"` JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` Permissions []*Permission `protobuf:"bytes,7,rep,name=permissions,proto3" json:"permissions,omitempty"` Attributes []*RoleAttribute `protobuf:"bytes,8,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func ConvertFromRole ¶
func ConvertFromRole(p *model.FivenetRoles) *Role
func (*Role) Descriptor
deprecated
func (*Role) GetAttributes ¶
func (x *Role) GetAttributes() []*RoleAttribute
func (*Role) GetCreatedAt ¶
func (*Role) GetJobGrade ¶
func (*Role) GetJobGradeLabel ¶
func (*Role) GetJobLabel ¶
func (*Role) GetPermissions ¶
func (x *Role) GetPermissions() []*Permission
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
func (*Role) SetJobGrade ¶ added in v0.8.6
func (*Role) SetJobGradeLabel ¶
func (*Role) SetJobLabel ¶
func (*Role) Validate ¶
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 ¶
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 RoleAttribute ¶
type RoleAttribute struct { RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` AttrId uint64 `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty"` PermissionId uint64 `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` ValidValues *AttributeValues `protobuf:"bytes,9,opt,name=valid_values,json=validValues,proto3" json:"valid_values,omitempty"` Value *AttributeValues `protobuf:"bytes,10,opt,name=value,proto3" json:"value,omitempty"` MaxValues *AttributeValues `protobuf:"bytes,11,opt,name=max_values,json=maxValues,proto3,oneof" json:"max_values,omitempty"` // contains filtered or unexported fields }
func (*RoleAttribute) Descriptor
deprecated
func (*RoleAttribute) Descriptor() ([]byte, []int)
Deprecated: Use RoleAttribute.ProtoReflect.Descriptor instead.
func (*RoleAttribute) GetAttrId ¶
func (x *RoleAttribute) GetAttrId() uint64
func (*RoleAttribute) GetCategory ¶
func (x *RoleAttribute) GetCategory() string
func (*RoleAttribute) GetCreatedAt ¶
func (x *RoleAttribute) GetCreatedAt() *timestamp.Timestamp
func (*RoleAttribute) GetKey ¶
func (x *RoleAttribute) GetKey() string
func (*RoleAttribute) GetMaxValues ¶ added in v0.7.0
func (x *RoleAttribute) GetMaxValues() *AttributeValues
func (*RoleAttribute) GetName ¶
func (x *RoleAttribute) GetName() string
func (*RoleAttribute) GetPermissionId ¶
func (x *RoleAttribute) GetPermissionId() uint64
func (*RoleAttribute) GetRoleId ¶
func (x *RoleAttribute) GetRoleId() uint64
func (*RoleAttribute) GetType ¶
func (x *RoleAttribute) GetType() string
func (*RoleAttribute) GetValidValues ¶
func (x *RoleAttribute) GetValidValues() *AttributeValues
func (*RoleAttribute) GetValue ¶
func (x *RoleAttribute) GetValue() *AttributeValues
func (*RoleAttribute) ProtoMessage ¶
func (*RoleAttribute) ProtoMessage()
func (*RoleAttribute) ProtoReflect ¶
func (x *RoleAttribute) ProtoReflect() protoreflect.Message
func (*RoleAttribute) Reset ¶
func (x *RoleAttribute) Reset()
func (*RoleAttribute) String ¶
func (x *RoleAttribute) String() string
func (*RoleAttribute) Validate ¶
func (m *RoleAttribute) Validate() error
Validate checks the field values on RoleAttribute 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 (*RoleAttribute) ValidateAll ¶
func (m *RoleAttribute) ValidateAll() error
ValidateAll checks the field values on RoleAttribute 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 RoleAttributeMultiError, or nil if none found.
type RoleAttributeMultiError ¶
type RoleAttributeMultiError []error
RoleAttributeMultiError is an error wrapping multiple validation errors returned by RoleAttribute.ValidateAll() if the designated constraints aren't met.
func (RoleAttributeMultiError) AllErrors ¶
func (m RoleAttributeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleAttributeMultiError) Error ¶
func (m RoleAttributeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleAttributeValidationError ¶
type RoleAttributeValidationError struct {
// contains filtered or unexported fields
}
RoleAttributeValidationError is the validation error returned by RoleAttribute.Validate if the designated constraints aren't met.
func (RoleAttributeValidationError) Cause ¶
func (e RoleAttributeValidationError) Cause() error
Cause function returns cause value.
func (RoleAttributeValidationError) Error ¶
func (e RoleAttributeValidationError) Error() string
Error satisfies the builtin error interface
func (RoleAttributeValidationError) ErrorName ¶
func (e RoleAttributeValidationError) ErrorName() string
ErrorName returns error name.
func (RoleAttributeValidationError) Field ¶
func (e RoleAttributeValidationError) Field() string
Field function returns field value.
func (RoleAttributeValidationError) Key ¶
func (e RoleAttributeValidationError) Key() bool
Key function returns key value.
func (RoleAttributeValidationError) Reason ¶
func (e RoleAttributeValidationError) 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 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 StringList ¶
type StringList struct { Strings []string `protobuf:"bytes,1,rep,name=strings,proto3" json:"strings,omitempty"` // contains filtered or unexported fields }
func (*StringList) Descriptor
deprecated
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetStrings ¶
func (x *StringList) GetStrings() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶
func (x *StringList) Reset()
func (*StringList) String ¶
func (x *StringList) String() string
func (*StringList) Validate ¶
func (m *StringList) Validate() error
Validate checks the field values on StringList 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 (*StringList) ValidateAll ¶
func (m *StringList) ValidateAll() error
ValidateAll checks the field values on StringList 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 StringListMultiError, or nil if none found.
type StringListMultiError ¶
type StringListMultiError []error
StringListMultiError is an error wrapping multiple validation errors returned by StringList.ValidateAll() if the designated constraints aren't met.
func (StringListMultiError) AllErrors ¶
func (m StringListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StringListMultiError) Error ¶
func (m StringListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StringListValidationError ¶
type StringListValidationError struct {
// contains filtered or unexported fields
}
StringListValidationError is the validation error returned by StringList.Validate if the designated constraints aren't met.
func (StringListValidationError) Cause ¶
func (e StringListValidationError) Cause() error
Cause function returns cause value.
func (StringListValidationError) Error ¶
func (e StringListValidationError) Error() string
Error satisfies the builtin error interface
func (StringListValidationError) ErrorName ¶
func (e StringListValidationError) ErrorName() string
ErrorName returns error name.
func (StringListValidationError) Field ¶
func (e StringListValidationError) Field() string
Field function returns field value.
func (StringListValidationError) Key ¶
func (e StringListValidationError) Key() bool
Key function returns key value.
func (StringListValidationError) Reason ¶
func (e StringListValidationError) Reason() string
Reason function returns reason value.