go-control-plane: github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2 Index | Files

package envoy_config_filter_http_csrf_v2

import "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/csrf/v2"


Package Files

csrf.pb.go csrf.pb.validate.go


var File_envoy_config_filter_http_csrf_v2_csrf_proto protoreflect.FileDescriptor

type CsrfPolicy Uses

type CsrfPolicy struct {
    FilterEnabled     *core.RuntimeFractionalPercent `protobuf:"bytes,1,opt,name=filter_enabled,json=filterEnabled,proto3" json:"filter_enabled,omitempty"`
    ShadowEnabled     *core.RuntimeFractionalPercent `protobuf:"bytes,2,opt,name=shadow_enabled,json=shadowEnabled,proto3" json:"shadow_enabled,omitempty"`
    AdditionalOrigins []*matcher.StringMatcher       `protobuf:"bytes,3,rep,name=additional_origins,json=additionalOrigins,proto3" json:"additional_origins,omitempty"`
    // contains filtered or unexported fields

func (*CsrfPolicy) Descriptor Uses

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

Deprecated: Use CsrfPolicy.ProtoReflect.Descriptor instead.

func (*CsrfPolicy) GetAdditionalOrigins Uses

func (x *CsrfPolicy) GetAdditionalOrigins() []*matcher.StringMatcher

func (*CsrfPolicy) GetFilterEnabled Uses

func (x *CsrfPolicy) GetFilterEnabled() *core.RuntimeFractionalPercent

func (*CsrfPolicy) GetShadowEnabled Uses

func (x *CsrfPolicy) GetShadowEnabled() *core.RuntimeFractionalPercent

func (*CsrfPolicy) ProtoMessage Uses

func (*CsrfPolicy) ProtoMessage()

func (*CsrfPolicy) ProtoReflect Uses

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

func (*CsrfPolicy) Reset Uses

func (x *CsrfPolicy) Reset()

func (*CsrfPolicy) String Uses

func (x *CsrfPolicy) String() string

func (*CsrfPolicy) Validate Uses

func (m *CsrfPolicy) Validate() error

Validate checks the field values on CsrfPolicy with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CsrfPolicyValidationError Uses

type CsrfPolicyValidationError struct {
    // contains filtered or unexported fields

CsrfPolicyValidationError is the validation error returned by CsrfPolicy.Validate if the designated constraints aren't met.

func (CsrfPolicyValidationError) Cause Uses

func (e CsrfPolicyValidationError) Cause() error

Cause function returns cause value.

func (CsrfPolicyValidationError) Error Uses

func (e CsrfPolicyValidationError) Error() string

Error satisfies the builtin error interface

func (CsrfPolicyValidationError) ErrorName Uses

func (e CsrfPolicyValidationError) ErrorName() string

ErrorName returns error name.

func (CsrfPolicyValidationError) Field Uses

func (e CsrfPolicyValidationError) Field() string

Field function returns field value.

func (CsrfPolicyValidationError) Key Uses

func (e CsrfPolicyValidationError) Key() bool

Key function returns key value.

func (CsrfPolicyValidationError) Reason Uses

func (e CsrfPolicyValidationError) Reason() string

Reason function returns reason value.

Package envoy_config_filter_http_csrf_v2 imports 20 packages (graph) and is imported by 3 packages. Updated 2020-07-20. Refresh now. Tools for package owners.