Documentation ¶
Index ¶
- Variables
- type ResourceAnnotation
- func (*ResourceAnnotation) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceAnnotation) GetType() string
- func (*ResourceAnnotation) ProtoMessage()
- func (x *ResourceAnnotation) ProtoReflect() protoreflect.Message
- func (x *ResourceAnnotation) Reset()
- func (x *ResourceAnnotation) String() string
- func (m *ResourceAnnotation) Validate() error
- func (m *ResourceAnnotation) ValidateAll() error
- type ResourceAnnotationMultiError
- type ResourceAnnotationValidationError
- func (e ResourceAnnotationValidationError) Cause() error
- func (e ResourceAnnotationValidationError) Error() string
- func (e ResourceAnnotationValidationError) ErrorName() string
- func (e ResourceAnnotationValidationError) Field() string
- func (e ResourceAnnotationValidationError) Key() bool
- func (e ResourceAnnotationValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( // optional bool disallowed_by_default = 189503207; E_DisallowedByDefault = &file_envoy_annotations_deprecation_proto_extTypes[0] // The API major and minor version on which the field was deprecated // (e.g., "3.5" for major version 3 and minor version 5). // // optional string deprecated_at_minor_version = 157299826; E_DeprecatedAtMinorVersion = &file_envoy_annotations_deprecation_proto_extTypes[1] )
Extension fields to descriptorpb.FieldOptions.
var ( // optional bool disallowed_by_default_enum = 70100853; E_DisallowedByDefaultEnum = &file_envoy_annotations_deprecation_proto_extTypes[2] // The API major and minor version on which the enum value was deprecated // (e.g., "3.5" for major version 3 and minor version 5). // // optional string deprecated_at_minor_version_enum = 181198657; E_DeprecatedAtMinorVersionEnum = &file_envoy_annotations_deprecation_proto_extTypes[3] )
Extension fields to descriptorpb.EnumValueOptions.
var (
// optional envoy.annotations.ResourceAnnotation resource = 265073217;
E_Resource = &file_envoy_annotations_resource_proto_extTypes[0]
)
Extension fields to descriptorpb.ServiceOptions.
var File_envoy_annotations_deprecation_proto protoreflect.FileDescriptor
var File_envoy_annotations_resource_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ResourceAnnotation ¶
type ResourceAnnotation struct { // Annotation for xDS services that indicates the fully-qualified Protobuf type for the resource // type. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ResourceAnnotation) Descriptor
deprecated
func (*ResourceAnnotation) Descriptor() ([]byte, []int)
Deprecated: Use ResourceAnnotation.ProtoReflect.Descriptor instead.
func (*ResourceAnnotation) GetType ¶
func (x *ResourceAnnotation) GetType() string
func (*ResourceAnnotation) ProtoMessage ¶
func (*ResourceAnnotation) ProtoMessage()
func (*ResourceAnnotation) ProtoReflect ¶
func (x *ResourceAnnotation) ProtoReflect() protoreflect.Message
func (*ResourceAnnotation) Reset ¶
func (x *ResourceAnnotation) Reset()
func (*ResourceAnnotation) String ¶
func (x *ResourceAnnotation) String() string
func (*ResourceAnnotation) Validate ¶
func (m *ResourceAnnotation) Validate() error
Validate checks the field values on ResourceAnnotation 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 (*ResourceAnnotation) ValidateAll ¶
func (m *ResourceAnnotation) ValidateAll() error
ValidateAll checks the field values on ResourceAnnotation 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 ResourceAnnotationMultiError, or nil if none found.
type ResourceAnnotationMultiError ¶
type ResourceAnnotationMultiError []error
ResourceAnnotationMultiError is an error wrapping multiple validation errors returned by ResourceAnnotation.ValidateAll() if the designated constraints aren't met.
func (ResourceAnnotationMultiError) AllErrors ¶
func (m ResourceAnnotationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceAnnotationMultiError) Error ¶
func (m ResourceAnnotationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceAnnotationValidationError ¶
type ResourceAnnotationValidationError struct {
// contains filtered or unexported fields
}
ResourceAnnotationValidationError is the validation error returned by ResourceAnnotation.Validate if the designated constraints aren't met.
func (ResourceAnnotationValidationError) Cause ¶
func (e ResourceAnnotationValidationError) Cause() error
Cause function returns cause value.
func (ResourceAnnotationValidationError) Error ¶
func (e ResourceAnnotationValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceAnnotationValidationError) ErrorName ¶
func (e ResourceAnnotationValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceAnnotationValidationError) Field ¶
func (e ResourceAnnotationValidationError) Field() string
Field function returns field value.
func (ResourceAnnotationValidationError) Key ¶
func (e ResourceAnnotationValidationError) Key() bool
Key function returns key value.
func (ResourceAnnotationValidationError) Reason ¶
func (e ResourceAnnotationValidationError) Reason() string
Reason function returns reason value.