dependencyv3

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dependency_DependencyType_name = map[int32]string{
		0: "HEADER",
		1: "FILTER_STATE_KEY",
		2: "DYNAMIC_METADATA",
	}
	Dependency_DependencyType_value = map[string]int32{
		"HEADER":           0,
		"FILTER_STATE_KEY": 1,
		"DYNAMIC_METADATA": 2,
	}
)

Enum value maps for Dependency_DependencyType.

View Source
var File_envoy_extensions_filters_common_dependency_v3_dependency_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dependency

type Dependency struct {

	// The kind of dependency.
	Type Dependency_DependencyType `` /* 139-byte string literal not displayed */
	// The string identifier for the dependency.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Dependency specification and string identifier.

func (*Dependency) Descriptor deprecated

func (*Dependency) Descriptor() ([]byte, []int)

Deprecated: Use Dependency.ProtoReflect.Descriptor instead.

func (*Dependency) GetName

func (x *Dependency) GetName() string

func (*Dependency) GetType

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) ProtoReflect

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

func (*Dependency) Reset

func (x *Dependency) Reset()

func (*Dependency) String

func (x *Dependency) String() string

func (*Dependency) Validate

func (m *Dependency) Validate() error

Validate checks the field values on Dependency 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 (*Dependency) ValidateAll

func (m *Dependency) ValidateAll() error

ValidateAll checks the field values on Dependency 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 DependencyMultiError, or nil if none found.

type DependencyMultiError

type DependencyMultiError []error

DependencyMultiError is an error wrapping multiple validation errors returned by Dependency.ValidateAll() if the designated constraints aren't met.

func (DependencyMultiError) AllErrors

func (m DependencyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DependencyMultiError) Error

func (m DependencyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DependencyValidationError

type DependencyValidationError struct {
	// contains filtered or unexported fields
}

DependencyValidationError is the validation error returned by Dependency.Validate if the designated constraints aren't met.

func (DependencyValidationError) Cause

func (e DependencyValidationError) Cause() error

Cause function returns cause value.

func (DependencyValidationError) Error

Error satisfies the builtin error interface

func (DependencyValidationError) ErrorName

func (e DependencyValidationError) ErrorName() string

ErrorName returns error name.

func (DependencyValidationError) Field

Field function returns field value.

func (DependencyValidationError) Key

Key function returns key value.

func (DependencyValidationError) Reason

func (e DependencyValidationError) Reason() string

Reason function returns reason value.

type Dependency_DependencyType

type Dependency_DependencyType int32
const (
	Dependency_HEADER           Dependency_DependencyType = 0
	Dependency_FILTER_STATE_KEY Dependency_DependencyType = 1
	Dependency_DYNAMIC_METADATA Dependency_DependencyType = 2
)

func (Dependency_DependencyType) Descriptor

func (Dependency_DependencyType) Enum

func (Dependency_DependencyType) EnumDescriptor deprecated

func (Dependency_DependencyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Dependency_DependencyType.Descriptor instead.

func (Dependency_DependencyType) Number

func (Dependency_DependencyType) String

func (x Dependency_DependencyType) String() string

func (Dependency_DependencyType) Type

type FilterDependencies

type FilterDependencies struct {

	// A list of dependencies required on the decode path.
	DecodeRequired []*Dependency `protobuf:"bytes,1,rep,name=decode_required,json=decodeRequired,proto3" json:"decode_required,omitempty"`
	// A list of dependencies provided on the encode path.
	DecodeProvided []*Dependency `protobuf:"bytes,2,rep,name=decode_provided,json=decodeProvided,proto3" json:"decode_provided,omitempty"`
	// A list of dependencies required on the decode path.
	EncodeRequired []*Dependency `protobuf:"bytes,3,rep,name=encode_required,json=encodeRequired,proto3" json:"encode_required,omitempty"`
	// A list of dependencies provided on the encode path.
	EncodeProvided []*Dependency `protobuf:"bytes,4,rep,name=encode_provided,json=encodeProvided,proto3" json:"encode_provided,omitempty"`
	// contains filtered or unexported fields
}

Dependency specification for a filter. For a filter chain to be valid, any dependency that is required must be provided by an earlier filter.

func (*FilterDependencies) Descriptor deprecated

func (*FilterDependencies) Descriptor() ([]byte, []int)

Deprecated: Use FilterDependencies.ProtoReflect.Descriptor instead.

func (*FilterDependencies) GetDecodeProvided

func (x *FilterDependencies) GetDecodeProvided() []*Dependency

func (*FilterDependencies) GetDecodeRequired

func (x *FilterDependencies) GetDecodeRequired() []*Dependency

func (*FilterDependencies) GetEncodeProvided

func (x *FilterDependencies) GetEncodeProvided() []*Dependency

func (*FilterDependencies) GetEncodeRequired

func (x *FilterDependencies) GetEncodeRequired() []*Dependency

func (*FilterDependencies) ProtoMessage

func (*FilterDependencies) ProtoMessage()

func (*FilterDependencies) ProtoReflect

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

func (*FilterDependencies) Reset

func (x *FilterDependencies) Reset()

func (*FilterDependencies) String

func (x *FilterDependencies) String() string

func (*FilterDependencies) Validate

func (m *FilterDependencies) Validate() error

Validate checks the field values on FilterDependencies 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 (*FilterDependencies) ValidateAll

func (m *FilterDependencies) ValidateAll() error

ValidateAll checks the field values on FilterDependencies 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 FilterDependenciesMultiError, or nil if none found.

type FilterDependenciesMultiError

type FilterDependenciesMultiError []error

FilterDependenciesMultiError is an error wrapping multiple validation errors returned by FilterDependencies.ValidateAll() if the designated constraints aren't met.

func (FilterDependenciesMultiError) AllErrors

func (m FilterDependenciesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FilterDependenciesMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FilterDependenciesValidationError

type FilterDependenciesValidationError struct {
	// contains filtered or unexported fields
}

FilterDependenciesValidationError is the validation error returned by FilterDependencies.Validate if the designated constraints aren't met.

func (FilterDependenciesValidationError) Cause

Cause function returns cause value.

func (FilterDependenciesValidationError) Error

Error satisfies the builtin error interface

func (FilterDependenciesValidationError) ErrorName

ErrorName returns error name.

func (FilterDependenciesValidationError) Field

Field function returns field value.

func (FilterDependenciesValidationError) Key

Key function returns key value.

func (FilterDependenciesValidationError) Reason

Reason function returns reason value.

type MatchingRequirements

type MatchingRequirements struct {
	DataInputAllowList *MatchingRequirements_DataInputAllowList `protobuf:"bytes,1,opt,name=data_input_allow_list,json=dataInputAllowList,proto3" json:"data_input_allow_list,omitempty"`
	// contains filtered or unexported fields
}

Matching requirements for a filter. For a match tree to be used with a filter, the match requirements must be satisfied.

This protobuf is provided by the filter implementation as a way to communicate the matching requirements to the filter factories, allowing for config rejection if the requirements are not satisfied.

func (*MatchingRequirements) Descriptor deprecated

func (*MatchingRequirements) Descriptor() ([]byte, []int)

Deprecated: Use MatchingRequirements.ProtoReflect.Descriptor instead.

func (*MatchingRequirements) GetDataInputAllowList

func (*MatchingRequirements) ProtoMessage

func (*MatchingRequirements) ProtoMessage()

func (*MatchingRequirements) ProtoReflect

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

func (*MatchingRequirements) Reset

func (x *MatchingRequirements) Reset()

func (*MatchingRequirements) String

func (x *MatchingRequirements) String() string

func (*MatchingRequirements) Validate

func (m *MatchingRequirements) Validate() error

Validate checks the field values on MatchingRequirements 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 (*MatchingRequirements) ValidateAll

func (m *MatchingRequirements) ValidateAll() error

ValidateAll checks the field values on MatchingRequirements 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 MatchingRequirementsMultiError, or nil if none found.

type MatchingRequirementsMultiError

type MatchingRequirementsMultiError []error

MatchingRequirementsMultiError is an error wrapping multiple validation errors returned by MatchingRequirements.ValidateAll() if the designated constraints aren't met.

func (MatchingRequirementsMultiError) AllErrors

func (m MatchingRequirementsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MatchingRequirementsMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MatchingRequirementsValidationError

type MatchingRequirementsValidationError struct {
	// contains filtered or unexported fields
}

MatchingRequirementsValidationError is the validation error returned by MatchingRequirements.Validate if the designated constraints aren't met.

func (MatchingRequirementsValidationError) Cause

Cause function returns cause value.

func (MatchingRequirementsValidationError) Error

Error satisfies the builtin error interface

func (MatchingRequirementsValidationError) ErrorName

ErrorName returns error name.

func (MatchingRequirementsValidationError) Field

Field function returns field value.

func (MatchingRequirementsValidationError) Key

Key function returns key value.

func (MatchingRequirementsValidationError) Reason

Reason function returns reason value.

type MatchingRequirements_DataInputAllowList

type MatchingRequirements_DataInputAllowList struct {

	// An explicit list of data inputs that are allowed to be used with this filter.
	TypeUrl []string `protobuf:"bytes,1,rep,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchingRequirements_DataInputAllowList) Descriptor deprecated

func (*MatchingRequirements_DataInputAllowList) Descriptor() ([]byte, []int)

Deprecated: Use MatchingRequirements_DataInputAllowList.ProtoReflect.Descriptor instead.

func (*MatchingRequirements_DataInputAllowList) GetTypeUrl

func (*MatchingRequirements_DataInputAllowList) ProtoMessage

func (*MatchingRequirements_DataInputAllowList) ProtoReflect

func (*MatchingRequirements_DataInputAllowList) Reset

func (*MatchingRequirements_DataInputAllowList) String

func (*MatchingRequirements_DataInputAllowList) Validate

Validate checks the field values on MatchingRequirements_DataInputAllowList 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 (*MatchingRequirements_DataInputAllowList) ValidateAll

ValidateAll checks the field values on MatchingRequirements_DataInputAllowList 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 MatchingRequirements_DataInputAllowListMultiError, or nil if none found.

type MatchingRequirements_DataInputAllowListMultiError

type MatchingRequirements_DataInputAllowListMultiError []error

MatchingRequirements_DataInputAllowListMultiError is an error wrapping multiple validation errors returned by MatchingRequirements_DataInputAllowList.ValidateAll() if the designated constraints aren't met.

func (MatchingRequirements_DataInputAllowListMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (MatchingRequirements_DataInputAllowListMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MatchingRequirements_DataInputAllowListValidationError

type MatchingRequirements_DataInputAllowListValidationError struct {
	// contains filtered or unexported fields
}

MatchingRequirements_DataInputAllowListValidationError is the validation error returned by MatchingRequirements_DataInputAllowList.Validate if the designated constraints aren't met.

func (MatchingRequirements_DataInputAllowListValidationError) Cause

Cause function returns cause value.

func (MatchingRequirements_DataInputAllowListValidationError) Error

Error satisfies the builtin error interface

func (MatchingRequirements_DataInputAllowListValidationError) ErrorName

ErrorName returns error name.

func (MatchingRequirements_DataInputAllowListValidationError) Field

Field function returns field value.

func (MatchingRequirements_DataInputAllowListValidationError) Key

Key function returns key value.

func (MatchingRequirements_DataInputAllowListValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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