istio: istio.io/istio/mixer/adapter/list/config Index | Files

package config

import "istio.io/istio/mixer/adapter/list/config"

Index

Package Files

config.pb.go

Variables

var (
    ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
)
var Params_ListEntryType_name = map[int32]string{
    0:  "STRINGS",
    1:  "CASE_INSENSITIVE_STRINGS",
    2:  "IP_ADDRESSES",
    3:  "REGEX",
}
var Params_ListEntryType_value = map[string]int32{
    "STRINGS":                  0,
    "CASE_INSENSITIVE_STRINGS": 1,
    "IP_ADDRESSES":             2,
    "REGEX":                    3,
}

type Params Uses

type Params struct {
    // Where to find the list to check against. This may be omitted 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,proto3,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,proto3,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,proto3,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,proto3" json:"overrides,omitempty"`
    // Determines the kind of list entry and overrides.
    EntryType Params_ListEntryType `protobuf:"varint,7,opt,name=entry_type,json=entryType,proto3,enum=adapter.list.config.Params_ListEntryType" json:"entry_type,omitempty"`
    // 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 Uses

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

func (*Params) Marshal Uses

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

func (*Params) MarshalTo Uses

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

func (*Params) MarshalToSizedBuffer Uses

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

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

func (*Params) String Uses

func (this *Params) String() string

func (*Params) Unmarshal Uses

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

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

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

func (*Params) XXX_Merge Uses

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

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

type Params_ListEntryType Uses

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 Uses

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

func (Params_ListEntryType) String Uses

func (x Params_ListEntryType) String() string

Package config imports 11 packages (graph) and is imported by 4 packages. Updated 2019-10-12. Refresh now. Tools for package owners.