annotations

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 360

Documentation

Index

Constants

This section is empty.

Variables

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

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

View Source
var (
	// optional envoy.annotations.ResourceAnnotation resource = 265073217;
	E_Resource = &file_envoy_annotations_resource_proto_extTypes[0]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var File_envoy_annotations_deprecation_proto protoreflect.FileDescriptor
View Source
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 added in v0.9.6

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 added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

func (m ResourceAnnotationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceAnnotationMultiError) Error added in v0.10.0

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

Cause function returns cause value.

func (ResourceAnnotationValidationError) Error

Error satisfies the builtin error interface

func (ResourceAnnotationValidationError) ErrorName

ErrorName returns error name.

func (ResourceAnnotationValidationError) Field

Field function returns field value.

func (ResourceAnnotationValidationError) Key

Key function returns key value.

func (ResourceAnnotationValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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