Documentation ¶
Index ¶
- Variables
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetFullName() string
- func (x *User) GetPassword() string
- func (x *User) GetShadow() bool
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserValidationError
Constants ¶
This section is empty.
Variables ¶
var File_api_auth_auth_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Shadow bool `protobuf:"varint,5,opt,name=shadow,proto3" json:"shadow,omitempty"` // contains filtered or unexported fields }
A clouditor user
func (*User) Descriptor
deprecated
func (*User) GetFullName ¶
func (*User) GetPassword ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶ added in v1.7.0
Validate checks the field values on User 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 (*User) ValidateAll ¶ added in v1.7.0
ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.
type UserMultiError ¶ added in v1.7.0
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶ added in v1.7.0
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶ added in v1.7.0
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserValidationError ¶ added in v1.7.0
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶ added in v1.7.0
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶ added in v1.7.0
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶ added in v1.7.0
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶ added in v1.7.0
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶ added in v1.7.0
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶ added in v1.7.0
func (e UserValidationError) Reason() string
Reason function returns reason value.