Documentation ¶
Index ¶
- Variables
- type ElemSchema
- func (*ElemSchema) Descriptor() ([]byte, []int)deprecated
- func (x *ElemSchema) GetEnum() []*Enum
- func (x *ElemSchema) GetFormat() string
- func (x *ElemSchema) GetModel() string
- func (x *ElemSchema) GetRef() string
- func (x *ElemSchema) GetType() string
- func (*ElemSchema) ProtoMessage()
- func (x *ElemSchema) ProtoReflect() protoreflect.Message
- func (x *ElemSchema) Reset()
- func (x *ElemSchema) String() string
- func (m *ElemSchema) Validate() error
- func (m *ElemSchema) ValidateAll() error
- type ElemSchemaMultiError
- type ElemSchemaValidationError
- type Enum
- func (*Enum) Descriptor() ([]byte, []int)deprecated
- func (x *Enum) GetName() string
- func (x *Enum) GetTitle() *I18N
- func (x *Enum) GetValue() string
- func (*Enum) ProtoMessage()
- func (x *Enum) ProtoReflect() protoreflect.Message
- func (x *Enum) Reset()
- func (x *Enum) String() string
- func (m *Enum) Validate() error
- func (m *Enum) ValidateAll() error
- type EnumMultiError
- type EnumValidationError
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetMeta() *ErrorMeta
- func (x *Error) GetTitle() *I18N
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- func (m *Error) Validate() error
- func (m *Error) ValidateAll() error
- type ErrorMeta
- func (*ErrorMeta) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorMeta) GetCode() int64
- func (*ErrorMeta) ProtoMessage()
- func (x *ErrorMeta) ProtoReflect() protoreflect.Message
- func (x *ErrorMeta) Reset()
- func (x *ErrorMeta) String() string
- func (m *ErrorMeta) Validate() error
- func (m *ErrorMeta) ValidateAll() error
- type ErrorMetaMultiError
- type ErrorMetaValidationError
- type ErrorMultiError
- type ErrorValidationError
- type I18N
- func (*I18N) Descriptor() ([]byte, []int)deprecated
- func (x *I18N) GetEn() string
- func (x *I18N) GetZh() string
- func (*I18N) ProtoMessage()
- func (x *I18N) ProtoReflect() protoreflect.Message
- func (x *I18N) Reset()
- func (x *I18N) String() string
- func (m *I18N) Validate() error
- func (m *I18N) ValidateAll() error
- type I18NMultiError
- type I18NValidationError
- type Identifier
- func (*Identifier) Descriptor() ([]byte, []int)deprecated
- func (x *Identifier) GetPrimary() []string
- func (*Identifier) ProtoMessage()
- func (x *Identifier) ProtoReflect() protoreflect.Message
- func (x *Identifier) Reset()
- func (x *Identifier) String() string
- func (m *Identifier) Validate() error
- func (m *Identifier) ValidateAll() error
- type IdentifierMultiError
- type IdentifierValidationError
- type Meta
- type MetaMultiError
- type MetaValidationError
- type Model
- func (*Model) Descriptor() ([]byte, []int)deprecated
- func (x *Model) GetDescription() *I18N
- func (x *Model) GetProperties() []*Property
- func (x *Model) GetTitle() *I18N
- func (*Model) ProtoMessage()
- func (x *Model) ProtoReflect() protoreflect.Message
- func (x *Model) Reset()
- func (x *Model) String() string
- func (m *Model) Validate() error
- func (m *Model) ValidateAll() error
- type ModelMultiError
- type ModelValidationError
- type PropMeta
- func (*PropMeta) Descriptor() ([]byte, []int)deprecated
- func (x *PropMeta) GetDynamic() bool
- func (x *PropMeta) GetImmutable() bool
- func (*PropMeta) ProtoMessage()
- func (x *PropMeta) ProtoReflect() protoreflect.Message
- func (x *PropMeta) Reset()
- func (x *PropMeta) String() string
- func (m *PropMeta) Validate() error
- func (m *PropMeta) ValidateAll() error
- type PropMetaMultiError
- type PropMetaValidationError
- type PropSchema
- func (*PropSchema) Descriptor() ([]byte, []int)deprecated
- func (x *PropSchema) GetElem() *ElemSchema
- func (x *PropSchema) GetEnum() []*Enum
- func (x *PropSchema) GetFormat() string
- func (x *PropSchema) GetModel() string
- func (x *PropSchema) GetRef() string
- func (x *PropSchema) GetRequired() bool
- func (x *PropSchema) GetType() string
- func (*PropSchema) ProtoMessage()
- func (x *PropSchema) ProtoReflect() protoreflect.Message
- func (x *PropSchema) Reset()
- func (x *PropSchema) String() string
- func (m *PropSchema) Validate() error
- func (m *PropSchema) ValidateAll() error
- type PropSchemaMultiError
- type PropSchemaValidationError
- type Property
- func (*Property) Descriptor() ([]byte, []int)deprecated
- func (x *Property) GetDescription() *I18N
- func (x *Property) GetMeta() *PropMeta
- func (x *Property) GetName() string
- func (x *Property) GetSchema() *PropSchema
- func (x *Property) GetTitle() *I18N
- func (*Property) ProtoMessage()
- func (x *Property) ProtoReflect() protoreflect.Message
- func (x *Property) Reset()
- func (x *Property) String() string
- func (m *Property) Validate() error
- func (m *Property) ValidateAll() error
- type PropertyMultiError
- type PropertyValidationError
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetDescription() *I18N
- func (x *Resource) GetErrors() []string
- func (x *Resource) GetIdentifier() *Identifier
- func (x *Resource) GetMeta() *Meta
- func (x *Resource) GetModels() map[string]*Model
- func (x *Resource) GetPlural() string
- func (x *Resource) GetTitle() *I18N
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- func (m *Resource) Validate() error
- func (m *Resource) ValidateAll() error
- type ResourceMultiError
- type ResourceValidationError
Constants ¶
This section is empty.
Variables ¶
var File_pkg_resource_v1_resource_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ElemSchema ¶
type ElemSchema struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Format *string `protobuf:"bytes,2,opt,name=format,proto3,oneof" json:"format,omitempty"` Model *string `protobuf:"bytes,3,opt,name=model,proto3,oneof" json:"model,omitempty"` Ref *string `protobuf:"bytes,4,opt,name=ref,proto3,oneof" json:"ref,omitempty"` Enum []*Enum `protobuf:"bytes,5,rep,name=enum,proto3" json:"enum,omitempty"` // contains filtered or unexported fields }
func (*ElemSchema) Descriptor
deprecated
func (*ElemSchema) Descriptor() ([]byte, []int)
Deprecated: Use ElemSchema.ProtoReflect.Descriptor instead.
func (*ElemSchema) GetEnum ¶
func (x *ElemSchema) GetEnum() []*Enum
func (*ElemSchema) GetFormat ¶
func (x *ElemSchema) GetFormat() string
func (*ElemSchema) GetModel ¶
func (x *ElemSchema) GetModel() string
func (*ElemSchema) GetRef ¶
func (x *ElemSchema) GetRef() string
func (*ElemSchema) GetType ¶
func (x *ElemSchema) GetType() string
func (*ElemSchema) ProtoMessage ¶
func (*ElemSchema) ProtoMessage()
func (*ElemSchema) ProtoReflect ¶
func (x *ElemSchema) ProtoReflect() protoreflect.Message
func (*ElemSchema) Reset ¶
func (x *ElemSchema) Reset()
func (*ElemSchema) String ¶
func (x *ElemSchema) String() string
func (*ElemSchema) Validate ¶
func (m *ElemSchema) Validate() error
Validate checks the field values on ElemSchema 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 (*ElemSchema) ValidateAll ¶
func (m *ElemSchema) ValidateAll() error
ValidateAll checks the field values on ElemSchema 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 ElemSchemaMultiError, or nil if none found.
type ElemSchemaMultiError ¶
type ElemSchemaMultiError []error
ElemSchemaMultiError is an error wrapping multiple validation errors returned by ElemSchema.ValidateAll() if the designated constraints aren't met.
func (ElemSchemaMultiError) AllErrors ¶
func (m ElemSchemaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ElemSchemaMultiError) Error ¶
func (m ElemSchemaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ElemSchemaValidationError ¶
type ElemSchemaValidationError struct {
// contains filtered or unexported fields
}
ElemSchemaValidationError is the validation error returned by ElemSchema.Validate if the designated constraints aren't met.
func (ElemSchemaValidationError) Cause ¶
func (e ElemSchemaValidationError) Cause() error
Cause function returns cause value.
func (ElemSchemaValidationError) Error ¶
func (e ElemSchemaValidationError) Error() string
Error satisfies the builtin error interface
func (ElemSchemaValidationError) ErrorName ¶
func (e ElemSchemaValidationError) ErrorName() string
ErrorName returns error name.
func (ElemSchemaValidationError) Field ¶
func (e ElemSchemaValidationError) Field() string
Field function returns field value.
func (ElemSchemaValidationError) Key ¶
func (e ElemSchemaValidationError) Key() bool
Key function returns key value.
func (ElemSchemaValidationError) Reason ¶
func (e ElemSchemaValidationError) Reason() string
Reason function returns reason value.
type Enum ¶
type Enum struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Title *I18N `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*Enum) Descriptor
deprecated
func (*Enum) ProtoMessage ¶
func (*Enum) ProtoMessage()
func (*Enum) ProtoReflect ¶
func (x *Enum) ProtoReflect() protoreflect.Message
func (*Enum) Validate ¶
Validate checks the field values on Enum 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 (*Enum) ValidateAll ¶
ValidateAll checks the field values on Enum 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 EnumMultiError, or nil if none found.
type EnumMultiError ¶
type EnumMultiError []error
EnumMultiError is an error wrapping multiple validation errors returned by Enum.ValidateAll() if the designated constraints aren't met.
func (EnumMultiError) AllErrors ¶
func (m EnumMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnumMultiError) Error ¶
func (m EnumMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnumValidationError ¶
type EnumValidationError struct {
// contains filtered or unexported fields
}
EnumValidationError is the validation error returned by Enum.Validate if the designated constraints aren't met.
func (EnumValidationError) Cause ¶
func (e EnumValidationError) Cause() error
Cause function returns cause value.
func (EnumValidationError) Error ¶
func (e EnumValidationError) Error() string
Error satisfies the builtin error interface
func (EnumValidationError) ErrorName ¶
func (e EnumValidationError) ErrorName() string
ErrorName returns error name.
func (EnumValidationError) Field ¶
func (e EnumValidationError) Field() string
Field function returns field value.
func (EnumValidationError) Key ¶
func (e EnumValidationError) Key() bool
Key function returns key value.
func (EnumValidationError) Reason ¶
func (e EnumValidationError) Reason() string
Reason function returns reason value.
type Error ¶
type Error struct { Title *I18N `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Meta *ErrorMeta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
func (*Error) Validate ¶
Validate checks the field values on Error 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 (*Error) ValidateAll ¶
ValidateAll checks the field values on Error 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 ErrorMultiError, or nil if none found.
type ErrorMeta ¶
type ErrorMeta struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*ErrorMeta) Descriptor
deprecated
func (*ErrorMeta) ProtoMessage ¶
func (*ErrorMeta) ProtoMessage()
func (*ErrorMeta) ProtoReflect ¶
func (x *ErrorMeta) ProtoReflect() protoreflect.Message
func (*ErrorMeta) Validate ¶
Validate checks the field values on ErrorMeta 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 (*ErrorMeta) ValidateAll ¶
ValidateAll checks the field values on ErrorMeta 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 ErrorMetaMultiError, or nil if none found.
type ErrorMetaMultiError ¶
type ErrorMetaMultiError []error
ErrorMetaMultiError is an error wrapping multiple validation errors returned by ErrorMeta.ValidateAll() if the designated constraints aren't met.
func (ErrorMetaMultiError) AllErrors ¶
func (m ErrorMetaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorMetaMultiError) Error ¶
func (m ErrorMetaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorMetaValidationError ¶
type ErrorMetaValidationError struct {
// contains filtered or unexported fields
}
ErrorMetaValidationError is the validation error returned by ErrorMeta.Validate if the designated constraints aren't met.
func (ErrorMetaValidationError) Cause ¶
func (e ErrorMetaValidationError) Cause() error
Cause function returns cause value.
func (ErrorMetaValidationError) Error ¶
func (e ErrorMetaValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorMetaValidationError) ErrorName ¶
func (e ErrorMetaValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorMetaValidationError) Field ¶
func (e ErrorMetaValidationError) Field() string
Field function returns field value.
func (ErrorMetaValidationError) Key ¶
func (e ErrorMetaValidationError) Key() bool
Key function returns key value.
func (ErrorMetaValidationError) Reason ¶
func (e ErrorMetaValidationError) Reason() string
Reason function returns reason value.
type ErrorMultiError ¶
type ErrorMultiError []error
ErrorMultiError is an error wrapping multiple validation errors returned by Error.ValidateAll() if the designated constraints aren't met.
func (ErrorMultiError) AllErrors ¶
func (m ErrorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorMultiError) Error ¶
func (m ErrorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorValidationError ¶
type ErrorValidationError struct {
// contains filtered or unexported fields
}
ErrorValidationError is the validation error returned by Error.Validate if the designated constraints aren't met.
func (ErrorValidationError) Cause ¶
func (e ErrorValidationError) Cause() error
Cause function returns cause value.
func (ErrorValidationError) Error ¶
func (e ErrorValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorValidationError) ErrorName ¶
func (e ErrorValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorValidationError) Field ¶
func (e ErrorValidationError) Field() string
Field function returns field value.
func (ErrorValidationError) Key ¶
func (e ErrorValidationError) Key() bool
Key function returns key value.
func (ErrorValidationError) Reason ¶
func (e ErrorValidationError) Reason() string
Reason function returns reason value.
type I18N ¶
type I18N struct { Zh string `protobuf:"bytes,1,opt,name=zh,proto3" json:"zh,omitempty"` En string `protobuf:"bytes,2,opt,name=en,proto3" json:"en,omitempty"` // contains filtered or unexported fields }
func (*I18N) Descriptor
deprecated
func (*I18N) ProtoMessage ¶
func (*I18N) ProtoMessage()
func (*I18N) ProtoReflect ¶
func (x *I18N) ProtoReflect() protoreflect.Message
func (*I18N) Validate ¶
Validate checks the field values on I18N 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 (*I18N) ValidateAll ¶
ValidateAll checks the field values on I18N 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 I18NMultiError, or nil if none found.
type I18NMultiError ¶
type I18NMultiError []error
I18NMultiError is an error wrapping multiple validation errors returned by I18N.ValidateAll() if the designated constraints aren't met.
func (I18NMultiError) AllErrors ¶
func (m I18NMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (I18NMultiError) Error ¶
func (m I18NMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type I18NValidationError ¶
type I18NValidationError struct {
// contains filtered or unexported fields
}
I18NValidationError is the validation error returned by I18N.Validate if the designated constraints aren't met.
func (I18NValidationError) Cause ¶
func (e I18NValidationError) Cause() error
Cause function returns cause value.
func (I18NValidationError) Error ¶
func (e I18NValidationError) Error() string
Error satisfies the builtin error interface
func (I18NValidationError) ErrorName ¶
func (e I18NValidationError) ErrorName() string
ErrorName returns error name.
func (I18NValidationError) Field ¶
func (e I18NValidationError) Field() string
Field function returns field value.
func (I18NValidationError) Key ¶
func (e I18NValidationError) Key() bool
Key function returns key value.
func (I18NValidationError) Reason ¶
func (e I18NValidationError) Reason() string
Reason function returns reason value.
type Identifier ¶
type Identifier struct { Primary []string `protobuf:"bytes,1,rep,name=primary,proto3" json:"primary,omitempty"` // contains filtered or unexported fields }
func (*Identifier) Descriptor
deprecated
func (*Identifier) Descriptor() ([]byte, []int)
Deprecated: Use Identifier.ProtoReflect.Descriptor instead.
func (*Identifier) GetPrimary ¶
func (x *Identifier) GetPrimary() []string
func (*Identifier) ProtoMessage ¶
func (*Identifier) ProtoMessage()
func (*Identifier) ProtoReflect ¶
func (x *Identifier) ProtoReflect() protoreflect.Message
func (*Identifier) Reset ¶
func (x *Identifier) Reset()
func (*Identifier) String ¶
func (x *Identifier) String() string
func (*Identifier) Validate ¶
func (m *Identifier) Validate() error
Validate checks the field values on Identifier 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 (*Identifier) ValidateAll ¶
func (m *Identifier) ValidateAll() error
ValidateAll checks the field values on Identifier 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 IdentifierMultiError, or nil if none found.
type IdentifierMultiError ¶
type IdentifierMultiError []error
IdentifierMultiError is an error wrapping multiple validation errors returned by Identifier.ValidateAll() if the designated constraints aren't met.
func (IdentifierMultiError) AllErrors ¶
func (m IdentifierMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdentifierMultiError) Error ¶
func (m IdentifierMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdentifierValidationError ¶
type IdentifierValidationError struct {
// contains filtered or unexported fields
}
IdentifierValidationError is the validation error returned by Identifier.Validate if the designated constraints aren't met.
func (IdentifierValidationError) Cause ¶
func (e IdentifierValidationError) Cause() error
Cause function returns cause value.
func (IdentifierValidationError) Error ¶
func (e IdentifierValidationError) Error() string
Error satisfies the builtin error interface
func (IdentifierValidationError) ErrorName ¶
func (e IdentifierValidationError) ErrorName() string
ErrorName returns error name.
func (IdentifierValidationError) Field ¶
func (e IdentifierValidationError) Field() string
Field function returns field value.
func (IdentifierValidationError) Key ¶
func (e IdentifierValidationError) Key() bool
Key function returns key value.
func (IdentifierValidationError) Reason ¶
func (e IdentifierValidationError) Reason() string
Reason function returns reason value.
type Meta ¶
type Meta struct { Datasource bool `protobuf:"varint,1,opt,name=datasource,proto3" json:"datasource,omitempty"` // contains filtered or unexported fields }
func (*Meta) Descriptor
deprecated
func (*Meta) GetDatasource ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
func (*Meta) Validate ¶
Validate checks the field values on Meta 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 (*Meta) ValidateAll ¶
ValidateAll checks the field values on Meta 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 MetaMultiError, or nil if none found.
type MetaMultiError ¶
type MetaMultiError []error
MetaMultiError is an error wrapping multiple validation errors returned by Meta.ValidateAll() if the designated constraints aren't met.
func (MetaMultiError) AllErrors ¶
func (m MetaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetaMultiError) Error ¶
func (m MetaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetaValidationError ¶
type MetaValidationError struct {
// contains filtered or unexported fields
}
MetaValidationError is the validation error returned by Meta.Validate if the designated constraints aren't met.
func (MetaValidationError) Cause ¶
func (e MetaValidationError) Cause() error
Cause function returns cause value.
func (MetaValidationError) Error ¶
func (e MetaValidationError) Error() string
Error satisfies the builtin error interface
func (MetaValidationError) ErrorName ¶
func (e MetaValidationError) ErrorName() string
ErrorName returns error name.
func (MetaValidationError) Field ¶
func (e MetaValidationError) Field() string
Field function returns field value.
func (MetaValidationError) Key ¶
func (e MetaValidationError) Key() bool
Key function returns key value.
func (MetaValidationError) Reason ¶
func (e MetaValidationError) Reason() string
Reason function returns reason value.
type Model ¶
type Model struct { Title *I18N `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description *I18N `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Properties []*Property `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty"` // contains filtered or unexported fields }
func (*Model) Descriptor
deprecated
func (*Model) GetDescription ¶
func (*Model) GetProperties ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
func (*Model) Validate ¶
Validate checks the field values on Model 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 (*Model) ValidateAll ¶
ValidateAll checks the field values on Model 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 ModelMultiError, or nil if none found.
type ModelMultiError ¶
type ModelMultiError []error
ModelMultiError is an error wrapping multiple validation errors returned by Model.ValidateAll() if the designated constraints aren't met.
func (ModelMultiError) AllErrors ¶
func (m ModelMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ModelMultiError) Error ¶
func (m ModelMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ModelValidationError ¶
type ModelValidationError struct {
// contains filtered or unexported fields
}
ModelValidationError is the validation error returned by Model.Validate if the designated constraints aren't met.
func (ModelValidationError) Cause ¶
func (e ModelValidationError) Cause() error
Cause function returns cause value.
func (ModelValidationError) Error ¶
func (e ModelValidationError) Error() string
Error satisfies the builtin error interface
func (ModelValidationError) ErrorName ¶
func (e ModelValidationError) ErrorName() string
ErrorName returns error name.
func (ModelValidationError) Field ¶
func (e ModelValidationError) Field() string
Field function returns field value.
func (ModelValidationError) Key ¶
func (e ModelValidationError) Key() bool
Key function returns key value.
func (ModelValidationError) Reason ¶
func (e ModelValidationError) Reason() string
Reason function returns reason value.
type PropMeta ¶
type PropMeta struct { Dynamic *bool `protobuf:"varint,1,opt,name=dynamic,proto3,oneof" json:"dynamic,omitempty"` Immutable *bool `protobuf:"varint,2,opt,name=immutable,proto3,oneof" json:"immutable,omitempty"` // contains filtered or unexported fields }
func (*PropMeta) Descriptor
deprecated
func (*PropMeta) GetDynamic ¶
func (*PropMeta) GetImmutable ¶
func (*PropMeta) ProtoMessage ¶
func (*PropMeta) ProtoMessage()
func (*PropMeta) ProtoReflect ¶
func (x *PropMeta) ProtoReflect() protoreflect.Message
func (*PropMeta) Validate ¶
Validate checks the field values on PropMeta 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 (*PropMeta) ValidateAll ¶
ValidateAll checks the field values on PropMeta 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 PropMetaMultiError, or nil if none found.
type PropMetaMultiError ¶
type PropMetaMultiError []error
PropMetaMultiError is an error wrapping multiple validation errors returned by PropMeta.ValidateAll() if the designated constraints aren't met.
func (PropMetaMultiError) AllErrors ¶
func (m PropMetaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PropMetaMultiError) Error ¶
func (m PropMetaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PropMetaValidationError ¶
type PropMetaValidationError struct {
// contains filtered or unexported fields
}
PropMetaValidationError is the validation error returned by PropMeta.Validate if the designated constraints aren't met.
func (PropMetaValidationError) Cause ¶
func (e PropMetaValidationError) Cause() error
Cause function returns cause value.
func (PropMetaValidationError) Error ¶
func (e PropMetaValidationError) Error() string
Error satisfies the builtin error interface
func (PropMetaValidationError) ErrorName ¶
func (e PropMetaValidationError) ErrorName() string
ErrorName returns error name.
func (PropMetaValidationError) Field ¶
func (e PropMetaValidationError) Field() string
Field function returns field value.
func (PropMetaValidationError) Key ¶
func (e PropMetaValidationError) Key() bool
Key function returns key value.
func (PropMetaValidationError) Reason ¶
func (e PropMetaValidationError) Reason() string
Reason function returns reason value.
type PropSchema ¶
type PropSchema struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Format *string `protobuf:"bytes,2,opt,name=format,proto3,oneof" json:"format,omitempty"` Required *bool `protobuf:"varint,3,opt,name=required,proto3,oneof" json:"required,omitempty"` Elem *ElemSchema `protobuf:"bytes,4,opt,name=elem,proto3,oneof" json:"elem,omitempty"` Enum []*Enum `protobuf:"bytes,5,rep,name=enum,proto3" json:"enum,omitempty"` Model *string `protobuf:"bytes,6,opt,name=model,proto3,oneof" json:"model,omitempty"` Ref *string `protobuf:"bytes,7,opt,name=ref,proto3,oneof" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*PropSchema) Descriptor
deprecated
func (*PropSchema) Descriptor() ([]byte, []int)
Deprecated: Use PropSchema.ProtoReflect.Descriptor instead.
func (*PropSchema) GetElem ¶
func (x *PropSchema) GetElem() *ElemSchema
func (*PropSchema) GetEnum ¶
func (x *PropSchema) GetEnum() []*Enum
func (*PropSchema) GetFormat ¶
func (x *PropSchema) GetFormat() string
func (*PropSchema) GetModel ¶
func (x *PropSchema) GetModel() string
func (*PropSchema) GetRef ¶
func (x *PropSchema) GetRef() string
func (*PropSchema) GetRequired ¶
func (x *PropSchema) GetRequired() bool
func (*PropSchema) GetType ¶
func (x *PropSchema) GetType() string
func (*PropSchema) ProtoMessage ¶
func (*PropSchema) ProtoMessage()
func (*PropSchema) ProtoReflect ¶
func (x *PropSchema) ProtoReflect() protoreflect.Message
func (*PropSchema) Reset ¶
func (x *PropSchema) Reset()
func (*PropSchema) String ¶
func (x *PropSchema) String() string
func (*PropSchema) Validate ¶
func (m *PropSchema) Validate() error
Validate checks the field values on PropSchema 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 (*PropSchema) ValidateAll ¶
func (m *PropSchema) ValidateAll() error
ValidateAll checks the field values on PropSchema 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 PropSchemaMultiError, or nil if none found.
type PropSchemaMultiError ¶
type PropSchemaMultiError []error
PropSchemaMultiError is an error wrapping multiple validation errors returned by PropSchema.ValidateAll() if the designated constraints aren't met.
func (PropSchemaMultiError) AllErrors ¶
func (m PropSchemaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PropSchemaMultiError) Error ¶
func (m PropSchemaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PropSchemaValidationError ¶
type PropSchemaValidationError struct {
// contains filtered or unexported fields
}
PropSchemaValidationError is the validation error returned by PropSchema.Validate if the designated constraints aren't met.
func (PropSchemaValidationError) Cause ¶
func (e PropSchemaValidationError) Cause() error
Cause function returns cause value.
func (PropSchemaValidationError) Error ¶
func (e PropSchemaValidationError) Error() string
Error satisfies the builtin error interface
func (PropSchemaValidationError) ErrorName ¶
func (e PropSchemaValidationError) ErrorName() string
ErrorName returns error name.
func (PropSchemaValidationError) Field ¶
func (e PropSchemaValidationError) Field() string
Field function returns field value.
func (PropSchemaValidationError) Key ¶
func (e PropSchemaValidationError) Key() bool
Key function returns key value.
func (PropSchemaValidationError) Reason ¶
func (e PropSchemaValidationError) Reason() string
Reason function returns reason value.
type Property ¶
type Property struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Title *I18N `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description *I18N `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Schema *PropSchema `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"` Meta *PropMeta `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*Property) Descriptor
deprecated
func (*Property) GetDescription ¶
func (*Property) GetSchema ¶
func (x *Property) GetSchema() *PropSchema
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
func (*Property) ProtoReflect ¶
func (x *Property) ProtoReflect() protoreflect.Message
func (*Property) Validate ¶
Validate checks the field values on Property 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 (*Property) ValidateAll ¶
ValidateAll checks the field values on Property 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 PropertyMultiError, or nil if none found.
type PropertyMultiError ¶
type PropertyMultiError []error
PropertyMultiError is an error wrapping multiple validation errors returned by Property.ValidateAll() if the designated constraints aren't met.
func (PropertyMultiError) AllErrors ¶
func (m PropertyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PropertyMultiError) Error ¶
func (m PropertyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PropertyValidationError ¶
type PropertyValidationError struct {
// contains filtered or unexported fields
}
PropertyValidationError is the validation error returned by Property.Validate if the designated constraints aren't met.
func (PropertyValidationError) Cause ¶
func (e PropertyValidationError) Cause() error
Cause function returns cause value.
func (PropertyValidationError) Error ¶
func (e PropertyValidationError) Error() string
Error satisfies the builtin error interface
func (PropertyValidationError) ErrorName ¶
func (e PropertyValidationError) ErrorName() string
ErrorName returns error name.
func (PropertyValidationError) Field ¶
func (e PropertyValidationError) Field() string
Field function returns field value.
func (PropertyValidationError) Key ¶
func (e PropertyValidationError) Key() bool
Key function returns key value.
func (PropertyValidationError) Reason ¶
func (e PropertyValidationError) Reason() string
Reason function returns reason value.
type Resource ¶
type Resource struct { Plural string `protobuf:"bytes,1,opt,name=plural,proto3" json:"plural,omitempty"` Title *I18N `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description *I18N `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Models map[string]*Model `` /* 153-byte string literal not displayed */ Meta *Meta `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` Identifier *Identifier `protobuf:"bytes,6,opt,name=identifier,proto3" json:"identifier,omitempty"` Errors []string `protobuf:"bytes,7,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetDescription ¶
func (*Resource) GetIdentifier ¶
func (x *Resource) GetIdentifier() *Identifier
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
func (*Resource) Validate ¶
Validate checks the field values on Resource 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 (*Resource) ValidateAll ¶
ValidateAll checks the field values on Resource 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 ResourceMultiError, or nil if none found.
type ResourceMultiError ¶
type ResourceMultiError []error
ResourceMultiError is an error wrapping multiple validation errors returned by Resource.ValidateAll() if the designated constraints aren't met.
func (ResourceMultiError) AllErrors ¶
func (m ResourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceMultiError) Error ¶
func (m ResourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceValidationError ¶
type ResourceValidationError struct {
// contains filtered or unexported fields
}
ResourceValidationError is the validation error returned by Resource.Validate if the designated constraints aren't met.
func (ResourceValidationError) Cause ¶
func (e ResourceValidationError) Cause() error
Cause function returns cause value.
func (ResourceValidationError) Error ¶
func (e ResourceValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceValidationError) ErrorName ¶
func (e ResourceValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceValidationError) Field ¶
func (e ResourceValidationError) Field() string
Field function returns field value.
func (ResourceValidationError) Key ¶
func (e ResourceValidationError) Key() bool
Key function returns key value.
func (ResourceValidationError) Reason ¶
func (e ResourceValidationError) Reason() string
Reason function returns reason value.