v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 16 Imported by: 0

README

Resource for Resource Management Specification (RMS) v1

This document describes the Resource Management Specification (RMS) v1.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Error satisfies the builtin error interface

func (ElemSchemaValidationError) ErrorName

func (e ElemSchemaValidationError) ErrorName() string

ErrorName returns error name.

func (ElemSchemaValidationError) Field

Field function returns field value.

func (ElemSchemaValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetName

func (x *Enum) GetName() string

func (*Enum) GetTitle

func (x *Enum) GetTitle() *I18N

func (*Enum) GetValue

func (x *Enum) GetValue() string

func (*Enum) ProtoMessage

func (*Enum) ProtoMessage()

func (*Enum) ProtoReflect

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

func (*Enum) Reset

func (x *Enum) Reset()

func (*Enum) String

func (x *Enum) String() string

func (*Enum) Validate

func (m *Enum) Validate() error

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

func (m *Enum) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetMeta

func (x *Error) GetMeta() *ErrorMeta

func (*Error) GetTitle

func (x *Error) GetTitle() *I18N

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

func (*Error) Validate

func (m *Error) Validate() error

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

func (m *Error) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use ErrorMeta.ProtoReflect.Descriptor instead.

func (*ErrorMeta) GetCode

func (x *ErrorMeta) GetCode() int64

func (*ErrorMeta) ProtoMessage

func (*ErrorMeta) ProtoMessage()

func (*ErrorMeta) ProtoReflect

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

func (*ErrorMeta) Reset

func (x *ErrorMeta) Reset()

func (*ErrorMeta) String

func (x *ErrorMeta) String() string

func (*ErrorMeta) Validate

func (m *ErrorMeta) Validate() error

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

func (m *ErrorMeta) ValidateAll() error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use I18N.ProtoReflect.Descriptor instead.

func (*I18N) GetEn

func (x *I18N) GetEn() string

func (*I18N) GetZh

func (x *I18N) GetZh() string

func (*I18N) ProtoMessage

func (*I18N) ProtoMessage()

func (*I18N) ProtoReflect

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

func (*I18N) Reset

func (x *I18N) Reset()

func (*I18N) String

func (x *I18N) String() string

func (*I18N) Validate

func (m *I18N) Validate() error

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

func (m *I18N) ValidateAll() error

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

Error satisfies the builtin error interface

func (IdentifierValidationError) ErrorName

func (e IdentifierValidationError) ErrorName() string

ErrorName returns error name.

func (IdentifierValidationError) Field

Field function returns field value.

func (IdentifierValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetDatasource

func (x *Meta) GetDatasource() bool

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

func (*Meta) Validate

func (m *Meta) Validate() error

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

func (m *Meta) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetDescription

func (x *Model) GetDescription() *I18N

func (*Model) GetProperties

func (x *Model) GetProperties() []*Property

func (*Model) GetTitle

func (x *Model) GetTitle() *I18N

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

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

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

func (*Model) Validate

func (m *Model) Validate() error

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

func (m *Model) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use PropMeta.ProtoReflect.Descriptor instead.

func (*PropMeta) GetDynamic

func (x *PropMeta) GetDynamic() bool

func (*PropMeta) GetImmutable

func (x *PropMeta) GetImmutable() bool

func (*PropMeta) ProtoMessage

func (*PropMeta) ProtoMessage()

func (*PropMeta) ProtoReflect

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

func (*PropMeta) Reset

func (x *PropMeta) Reset()

func (*PropMeta) String

func (x *PropMeta) String() string

func (*PropMeta) Validate

func (m *PropMeta) Validate() error

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

func (m *PropMeta) ValidateAll() error

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

Error satisfies the builtin error interface

func (PropSchemaValidationError) ErrorName

func (e PropSchemaValidationError) ErrorName() string

ErrorName returns error name.

func (PropSchemaValidationError) Field

Field function returns field value.

func (PropSchemaValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetDescription

func (x *Property) GetDescription() *I18N

func (*Property) GetMeta

func (x *Property) GetMeta() *PropMeta

func (*Property) GetName

func (x *Property) GetName() string

func (*Property) GetSchema

func (x *Property) GetSchema() *PropSchema

func (*Property) GetTitle

func (x *Property) GetTitle() *I18N

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

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

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

func (*Property) Validate

func (m *Property) Validate() error

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

func (m *Property) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetDescription

func (x *Resource) GetDescription() *I18N

func (*Resource) GetErrors

func (x *Resource) GetErrors() []string

func (*Resource) GetIdentifier

func (x *Resource) GetIdentifier() *Identifier

func (*Resource) GetMeta

func (x *Resource) GetMeta() *Meta

func (*Resource) GetModels

func (x *Resource) GetModels() map[string]*Model

func (*Resource) GetPlural

func (x *Resource) GetPlural() string

func (*Resource) GetTitle

func (x *Resource) GetTitle() *I18N

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

func (*Resource) Validate

func (m *Resource) Validate() error

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

func (m *Resource) ValidateAll() error

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.

Jump to

Keyboard shortcuts

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