permissions

package
v0.6.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resources_permissions_permissions_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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) 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) 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

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

Cause function returns cause value.

func (AttributeValuesValidationError) Error

Error satisfies the builtin error interface

func (AttributeValuesValidationError) ErrorName

func (e AttributeValuesValidationError) ErrorName() string

ErrorName returns error name.

func (AttributeValuesValidationError) Field

Field function returns field value.

func (AttributeValuesValidationError) Key

Key function returns key value.

func (AttributeValuesValidationError) Reason

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

Cause function returns cause value.

func (JobGradeListValidationError) Error

Error satisfies the builtin error interface

func (JobGradeListValidationError) ErrorName

func (e JobGradeListValidationError) ErrorName() string

ErrorName returns error name.

func (JobGradeListValidationError) Field

Field function returns field value.

func (JobGradeListValidationError) Key

Key function returns key value.

func (JobGradeListValidationError) Reason

Reason function returns reason value.

type Permission

type Permission struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"`                                             // @gotags: alias:"id"
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty" alias:"created_at"` // @gotags: alias:"created_at"
	Category  string               `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty" alias:"category"`                            // @gotags: alias:"category"
	Name      string               `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" alias:"name"`                                        // @gotags: alias:"name"
	GuardName string               `protobuf:"bytes,5,opt,name=guard_name,json=guardName,proto3" json:"guard_name,omitempty" alias:"guard_name"`       // @gotags: alias:"guard_name"
	Val       bool                 `protobuf:"varint,6,opt,name=val,proto3" json:"val,omitempty" alias:"val"`                                          // @gotags: alias:"val"
	// 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

Error satisfies the builtin error interface

func (PermissionValidationError) ErrorName

func (e PermissionValidationError) ErrorName() string

ErrorName returns error name.

func (PermissionValidationError) Field

Field function returns field value.

func (PermissionValidationError) Key

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" alias:"role_id"`                         // @gotags: alias:"role_id"
	CreatedAt      *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty" alias:"created_at"`        // @gotags: alias:"created_at"
	AttrId         uint64               `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty" alias:"attr_id"`                         // @gotags: alias:"attr_id"
	PermissionId   uint64               `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty" alias:"permission_id"` // @gotags: alias:"permission_id"
	Category       string               `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty" alias:"category"`                                   // @gotags: alias:"category"
	Name           string               `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty" alias:"name"`                                               // @gotags: alias:"name"
	Key            string               `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty" alias:"key"`                                                  // @gotags: alias:"key"
	Type           string               `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty" alias:"type"`                                               // @gotags: alias:"type"
	RawValue       string               `protobuf:"bytes,9,opt,name=raw_value,json=rawValue,proto3" json:"raw_value,omitempty" alias:"value"`                      // @gotags: alias:"value"
	RawValidValues string               ``                                                                                                                         // @gotags: alias:"valid_values"
	/* 127-byte string literal not displayed */
	// 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) GetRawValidValues added in v0.6.3

func (x *RawRoleAttribute) GetRawValidValues() string

func (*RawRoleAttribute) GetRawValue added in v0.6.3

func (x *RawRoleAttribute) GetRawValue() string

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) 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

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

Cause function returns cause value.

func (RawRoleAttributeValidationError) Error added in v0.6.3

Error satisfies the builtin error interface

func (RawRoleAttributeValidationError) ErrorName added in v0.6.3

ErrorName returns error name.

func (RawRoleAttributeValidationError) Field added in v0.6.3

Field function returns field value.

func (RawRoleAttributeValidationError) Key added in v0.6.3

Key function returns key value.

func (RawRoleAttributeValidationError) Reason added in v0.6.3

Reason function returns reason value.

type Role

type Role struct {
	Id            uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"`                                             // @gotags: alias:"id"
	CreatedAt     *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty" alias:"created_at"` // @gotags: alias:"created_at"
	Job           string               `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty" alias:"job"`                                           // @gotags: alias:"job"
	JobLabel      *string              `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty" alias:"job_label"`     // @gotags: alias:"job_label"
	Grade         int32                `protobuf:"varint,5,opt,name=grade,proto3" json:"grade,omitempty" alias:"grade"`                                    // @gotags: alias:"grade"
	JobGradeLabel *string              ``                                                                                                                  // @gotags: alias:"job_grade_label"
	/* 132-byte string literal not displayed */
	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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetAttributes

func (x *Role) GetAttributes() []*RoleAttribute

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() *timestamp.Timestamp

func (*Role) GetGrade

func (x *Role) GetGrade() int32

func (*Role) GetId

func (x *Role) GetId() uint64

func (*Role) GetJob

func (x *Role) GetJob() string

func (*Role) GetJobGrade

func (x *Role) GetJobGrade() int32

func (*Role) GetJobGradeLabel

func (x *Role) GetJobGradeLabel() string

func (*Role) GetJobLabel

func (x *Role) GetJobLabel() string

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) Reset

func (x *Role) Reset()

func (*Role) SetJobGradeLabel

func (x *Role) SetJobGradeLabel(label string)

func (*Role) SetJobLabel

func (x *Role) SetJobLabel(label string)

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 RoleAttribute

type RoleAttribute struct {
	RoleId       uint64               `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty" alias:"role_id"`                         // @gotags: alias:"role_id"
	CreatedAt    *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty" alias:"created_at"`        // @gotags: alias:"created_at"
	AttrId       uint64               `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty" alias:"attr_id"`                         // @gotags: alias:"attr_id"
	PermissionId uint64               `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty" alias:"permission_id"` // @gotags: alias:"permission_id"
	Category     string               `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty" alias:"category"`                                   // @gotags: alias:"category"
	Name         string               `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty" alias:"name"`                                               // @gotags: alias:"name"
	Key          string               `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty" alias:"key"`                                                  // @gotags: alias:"key"
	Type         string               `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty" alias:"type"`                                               // @gotags: alias:"type"
	Value        *AttributeValues     `protobuf:"bytes,11,opt,name=value,proto3" json:"value,omitempty"`
	ValidValues  *AttributeValues     `protobuf:"bytes,12,opt,name=valid_values,json=validValues,proto3" json:"valid_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) 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

Cause function returns cause value.

func (RoleAttributeValidationError) Error

Error satisfies the builtin error interface

func (RoleAttributeValidationError) ErrorName

func (e RoleAttributeValidationError) ErrorName() string

ErrorName returns error name.

func (RoleAttributeValidationError) Field

Field function returns field value.

func (RoleAttributeValidationError) Key

Key function returns key value.

func (RoleAttributeValidationError) Reason

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

Error satisfies the builtin error interface

func (StringListValidationError) ErrorName

func (e StringListValidationError) ErrorName() string

ErrorName returns error name.

func (StringListValidationError) Field

Field function returns field value.

func (StringListValidationError) Key

Key function returns key value.

func (StringListValidationError) Reason

func (e StringListValidationError) 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