v2

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthIpTagging = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIpTagging   = fmt.Errorf("proto: integer overflow")
)
View Source
var IPTagging_RequestType_name = map[int32]string{
	0: "BOTH",
	1: "INTERNAL",
	2: "EXTERNAL",
}
View Source
var IPTagging_RequestType_value = map[string]int32{
	"BOTH":     0,
	"INTERNAL": 1,
	"EXTERNAL": 2,
}

Functions

This section is empty.

Types

type IPTagging

type IPTagging struct {
	// The type of request the filter should apply to.
	RequestType IPTagging_RequestType `` /* 161-byte string literal not displayed */
	// [#comment:TODO(ccaraman): Extend functionality to load IP tags from file system.
	// Tracked by issue https://github.com/envoyproxy/envoy/issues/2695]
	// The set of IP tags for the filter.
	IpTags               []*IPTagging_IPTag `protobuf:"bytes,4,rep,name=ip_tags,json=ipTags" json:"ip_tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*IPTagging) Descriptor

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

func (*IPTagging) GetIpTags

func (m *IPTagging) GetIpTags() []*IPTagging_IPTag

func (*IPTagging) GetRequestType

func (m *IPTagging) GetRequestType() IPTagging_RequestType

func (*IPTagging) Marshal

func (m *IPTagging) Marshal() (dAtA []byte, err error)

func (*IPTagging) MarshalTo

func (m *IPTagging) MarshalTo(dAtA []byte) (int, error)

func (*IPTagging) ProtoMessage

func (*IPTagging) ProtoMessage()

func (*IPTagging) Reset

func (m *IPTagging) Reset()

func (*IPTagging) Size

func (m *IPTagging) Size() (n int)

func (*IPTagging) String

func (m *IPTagging) String() string

func (*IPTagging) Unmarshal

func (m *IPTagging) Unmarshal(dAtA []byte) error

func (*IPTagging) Validate

func (m *IPTagging) Validate() error

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

func (*IPTagging) XXX_DiscardUnknown

func (m *IPTagging) XXX_DiscardUnknown()

func (*IPTagging) XXX_Marshal

func (m *IPTagging) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPTagging) XXX_Merge

func (dst *IPTagging) XXX_Merge(src proto.Message)

func (*IPTagging) XXX_Size

func (m *IPTagging) XXX_Size() int

func (*IPTagging) XXX_Unmarshal

func (m *IPTagging) XXX_Unmarshal(b []byte) error

type IPTaggingValidationError

type IPTaggingValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

IPTaggingValidationError is the validation error returned by IPTagging.Validate if the designated constraints aren't met.

func (IPTaggingValidationError) Error

func (e IPTaggingValidationError) Error() string

Error satisfies the builtin error interface

type IPTagging_IPTag

type IPTagging_IPTag struct {
	// Specifies the IP tag name to apply.
	IpTagName string `protobuf:"bytes,1,opt,name=ip_tag_name,json=ipTagName,proto3" json:"ip_tag_name,omitempty"`
	// A list of IP address subnets that will be tagged with
	// ip_tag_name. Both IPv4 and IPv6 are supported.
	IpList               []*core.CidrRange `protobuf:"bytes,2,rep,name=ip_list,json=ipList" json:"ip_list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Supplies the IP tag name and the IP address subnets.

func (*IPTagging_IPTag) Descriptor

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

func (*IPTagging_IPTag) GetIpList

func (m *IPTagging_IPTag) GetIpList() []*core.CidrRange

func (*IPTagging_IPTag) GetIpTagName

func (m *IPTagging_IPTag) GetIpTagName() string

func (*IPTagging_IPTag) Marshal

func (m *IPTagging_IPTag) Marshal() (dAtA []byte, err error)

func (*IPTagging_IPTag) MarshalTo

func (m *IPTagging_IPTag) MarshalTo(dAtA []byte) (int, error)

func (*IPTagging_IPTag) ProtoMessage

func (*IPTagging_IPTag) ProtoMessage()

func (*IPTagging_IPTag) Reset

func (m *IPTagging_IPTag) Reset()

func (*IPTagging_IPTag) Size

func (m *IPTagging_IPTag) Size() (n int)

func (*IPTagging_IPTag) String

func (m *IPTagging_IPTag) String() string

func (*IPTagging_IPTag) Unmarshal

func (m *IPTagging_IPTag) Unmarshal(dAtA []byte) error

func (*IPTagging_IPTag) Validate

func (m *IPTagging_IPTag) Validate() error

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

func (*IPTagging_IPTag) XXX_DiscardUnknown

func (m *IPTagging_IPTag) XXX_DiscardUnknown()

func (*IPTagging_IPTag) XXX_Marshal

func (m *IPTagging_IPTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPTagging_IPTag) XXX_Merge

func (dst *IPTagging_IPTag) XXX_Merge(src proto.Message)

func (*IPTagging_IPTag) XXX_Size

func (m *IPTagging_IPTag) XXX_Size() int

func (*IPTagging_IPTag) XXX_Unmarshal

func (m *IPTagging_IPTag) XXX_Unmarshal(b []byte) error

type IPTagging_IPTagValidationError

type IPTagging_IPTagValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

IPTagging_IPTagValidationError is the validation error returned by IPTagging_IPTag.Validate if the designated constraints aren't met.

func (IPTagging_IPTagValidationError) Error

Error satisfies the builtin error interface

type IPTagging_RequestType

type IPTagging_RequestType int32

The type of requests the filter should apply to. The supported types are internal, external or both. The :ref:`x-forwarded-for<config_http_conn_man_headers_x-forwarded-for_internal_origin>` header is used to determine if a request is internal and will result in :ref:`x-envoy-internal<config_http_conn_man_headers_x-envoy-internal>` being set. The filter defaults to both, and it will apply to all request types.

const (
	// Both external and internal requests will be tagged. This is the default value.
	IPTagging_BOTH IPTagging_RequestType = 0
	// Only internal requests will be tagged.
	IPTagging_INTERNAL IPTagging_RequestType = 1
	// Only external requests will be tagged.
	IPTagging_EXTERNAL IPTagging_RequestType = 2
)

func (IPTagging_RequestType) EnumDescriptor

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

func (IPTagging_RequestType) String

func (x IPTagging_RequestType) String() string

Jump to

Keyboard shortcuts

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