commonv3

package
v1.34.2-20240430201508... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_geoip_providers_common_v3_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommonGeoipProviderConfig

type CommonGeoipProviderConfig struct {

	// Configuration for geolocation headers to add to request.
	GeoHeadersToAdd *CommonGeoipProviderConfig_GeolocationHeadersToAdd `protobuf:"bytes,1,opt,name=geo_headers_to_add,json=geoHeadersToAdd,proto3" json:"geo_headers_to_add,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonGeoipProviderConfig) Descriptor deprecated

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

Deprecated: Use CommonGeoipProviderConfig.ProtoReflect.Descriptor instead.

func (*CommonGeoipProviderConfig) GetGeoHeadersToAdd

func (*CommonGeoipProviderConfig) ProtoMessage

func (*CommonGeoipProviderConfig) ProtoMessage()

func (*CommonGeoipProviderConfig) ProtoReflect

func (*CommonGeoipProviderConfig) Reset

func (x *CommonGeoipProviderConfig) Reset()

func (*CommonGeoipProviderConfig) String

func (x *CommonGeoipProviderConfig) String() string

type CommonGeoipProviderConfig_GeolocationHeadersToAdd

type CommonGeoipProviderConfig_GeolocationHeadersToAdd struct {

	// If set, the header will be used to populate the country ISO code associated with the IP address.
	Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
	// If set, the header will be used to populate the city associated with the IP address.
	City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	// If set, the header will be used to populate the region ISO code associated with the IP address.
	// The least specific subdivision will be selected as region value.
	Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	// If set, the header will be used to populate the ASN associated with the IP address.
	Asn string `protobuf:"bytes,4,opt,name=asn,proto3" json:"asn,omitempty"`
	// If set, the IP address will be checked if it belongs to any type of anonymization network (e.g. VPN, public proxy etc)
	// and header will be populated with the check result. Header value will be set to either "true" or "false" depending on the check result.
	IsAnon string `protobuf:"bytes,5,opt,name=is_anon,json=isAnon,proto3" json:"is_anon,omitempty"`
	// If set, the IP address will be checked if it belongs to a VPN and header will be populated with the check result.
	// Header value will be set to either "true" or "false" depending on the check result.
	AnonVpn string `protobuf:"bytes,6,opt,name=anon_vpn,json=anonVpn,proto3" json:"anon_vpn,omitempty"`
	// If set, the IP address will be checked if it belongs to a hosting provider and header will be populated with the check result.
	// Header value will be set to either "true" or "false" depending on the check result.
	AnonHosting string `protobuf:"bytes,7,opt,name=anon_hosting,json=anonHosting,proto3" json:"anon_hosting,omitempty"`
	// If set, the IP address will be checked if it belongs to a TOR exit node and header will be populated with the check result.
	// Header value will be set to either "true" or "false" depending on the check result.
	AnonTor string `protobuf:"bytes,8,opt,name=anon_tor,json=anonTor,proto3" json:"anon_tor,omitempty"`
	// If set, the IP address will be checked if it belongs to a public proxy and header will be populated with the check result.
	// Header value will be set to either "true" or "false" depending on the check result.
	AnonProxy string `protobuf:"bytes,9,opt,name=anon_proxy,json=anonProxy,proto3" json:"anon_proxy,omitempty"`
	// contains filtered or unexported fields
}

The set of geolocation headers to add to request. If any of the configured headers is present in the incoming request, it will be overridden by the :ref:`Geoip filter <config_http_filters_geoip>`. [#next-free-field: 10]

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) Descriptor deprecated

Deprecated: Use CommonGeoipProviderConfig_GeolocationHeadersToAdd.ProtoReflect.Descriptor instead.

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetAnonHosting

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetAnonProxy

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetAnonTor

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetAnonVpn

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetAsn

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetCity

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetCountry

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetIsAnon

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) GetRegion

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) ProtoMessage

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) ProtoReflect

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) Reset

func (*CommonGeoipProviderConfig_GeolocationHeadersToAdd) String

Jump to

Keyboard shortcuts

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