Documentation ¶
Overview ¶
Package config is a generated protocol buffer package.
The `list` adapter makes it possible to perform simple whitelist or blacklist checks. You can configure the adapter with the list to check, or you can point it to a URL from where the list should be fetched. Lists can be simple strings, IP addresses, or regex patterns.
This adapter supports the [listentry template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/listentry/).
It is generated from these files:
mixer/adapter/list/config/config.proto
It has these top-level messages:
Params
Index ¶
- Variables
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (this *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- type Params_ListEntryType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConfig = fmt.Errorf("proto: integer overflow") )
View Source
var Params_ListEntryType_name = map[int32]string{
0: "STRINGS",
1: "CASE_INSENSITIVE_STRINGS",
2: "IP_ADDRESSES",
3: "REGEX",
}
View Source
var Params_ListEntryType_value = map[string]int32{
"STRINGS": 0,
"CASE_INSENSITIVE_STRINGS": 1,
"IP_ADDRESSES": 2,
"REGEX": 3,
}
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { // Where to find the list to check against. This may be ommited for a completely local list. ProviderUrl string `protobuf:"bytes,1,opt,name=provider_url,json=providerUrl,proto3" json:"provider_url,omitempty"` // Determines how often the provider is polled for // an updated list RefreshInterval time.Duration `protobuf:"bytes,2,opt,name=refresh_interval,json=refreshInterval,stdduration" json:"refresh_interval"` // Indicates how long to keep a list before discarding it. // Typically, the TTL value should be set to noticeably longer (> 2x) than the // refresh interval to ensure continued operation in the face of transient // server outages. Ttl time.Duration `protobuf:"bytes,3,opt,name=ttl,stdduration" json:"ttl"` // Indicates the amount of time a caller of this adapter can cache an answer // before it should ask the adapter again. CachingInterval time.Duration `protobuf:"bytes,4,opt,name=caching_interval,json=cachingInterval,stdduration" json:"caching_interval"` // Indicates the number of times a caller of this adapter can use a cached answer // before it should ask the adapter again. CachingUseCount int32 `protobuf:"varint,5,opt,name=caching_use_count,json=cachingUseCount,proto3" json:"caching_use_count,omitempty"` // List entries that are consulted first, before the list from the server Overrides []string `protobuf:"bytes,6,rep,name=overrides" json:"overrides,omitempty"` // Determines the kind of list entry and overrides. EntryType Params_ListEntryType `` /* 135-byte string literal not displayed */ // Whether the list operates as a blacklist or a whitelist. Blacklist bool `protobuf:"varint,8,opt,name=blacklist,proto3" json:"blacklist,omitempty"` }
Configuration format for the `list` adapter.
func (*Params) Descriptor ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
type Params_ListEntryType ¶
type Params_ListEntryType int32
Determines the type of list that the adapter is consulting.
const ( // List entries are treated as plain strings. STRINGS Params_ListEntryType = 0 // List entries are treated as case-insensitive strings. CASE_INSENSITIVE_STRINGS Params_ListEntryType = 1 // List entries are treated as IP addresses and ranges. IP_ADDRESSES Params_ListEntryType = 2 // List entries are treated as re2 regexp. See [here](https://github.com/google/re2/wiki/Syntax) for the supported syntax. REGEX Params_ListEntryType = 3 )
func (Params_ListEntryType) EnumDescriptor ¶
func (Params_ListEntryType) EnumDescriptor() ([]byte, []int)
func (Params_ListEntryType) String ¶
func (x Params_ListEntryType) String() string
Click to show internal directories.
Click to hide internal directories.