istio: istio.io/istio/pilot/pkg/networking/plugin/mixer/client Index | Files

package client

import "istio.io/istio/pilot/pkg/networking/plugin/mixer/client"

Index

Package Files

api_spec.pb.go attributes.pb.go client_config.pb.go quota.pb.go service.pb.go

Variables

var NetworkFailPolicy_FailPolicy_name = map[int32]string{
    0:  "FAIL_OPEN",
    1:  "FAIL_CLOSE",
}
var NetworkFailPolicy_FailPolicy_value = map[string]int32{
    "FAIL_OPEN":  0,
    "FAIL_CLOSE": 1,
}

type APIKey Uses

type APIKey struct {
    // Types that are valid to be assigned to Key:
    //	*APIKey_Query
    //	*APIKey_Header
    //	*APIKey_Cookie
    Key                  isAPIKey_Key `protobuf_oneof:"key"`
    XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    XXX_unrecognized     []byte       `json:"-"`
    XXX_sizecache        int32        `json:"-"`
}

APIKey defines the explicit configuration for generating the `request.api_key` attribute from HTTP requests.

See [API Keys](https://swagger.io/docs/specification/authentication/api-keys) for a general overview of API keys as defined by OpenAPI.

func (*APIKey) Descriptor Uses

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

func (*APIKey) GetCookie Uses

func (m *APIKey) GetCookie() string

func (*APIKey) GetHeader Uses

func (m *APIKey) GetHeader() string

func (*APIKey) GetKey Uses

func (m *APIKey) GetKey() isAPIKey_Key

func (*APIKey) GetQuery Uses

func (m *APIKey) GetQuery() string

func (*APIKey) ProtoMessage Uses

func (*APIKey) ProtoMessage()

func (*APIKey) Reset Uses

func (m *APIKey) Reset()

func (*APIKey) String Uses

func (m *APIKey) String() string

func (*APIKey) XXX_DiscardUnknown Uses

func (m *APIKey) XXX_DiscardUnknown()

func (*APIKey) XXX_Marshal Uses

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

func (*APIKey) XXX_Merge Uses

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

func (*APIKey) XXX_OneofWrappers Uses

func (*APIKey) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*APIKey) XXX_Size Uses

func (m *APIKey) XXX_Size() int

func (*APIKey) XXX_Unmarshal Uses

func (m *APIKey) XXX_Unmarshal(b []byte) error
type APIKey_Cookie struct {
    Cookie string `protobuf:"bytes,3,opt,name=cookie,proto3,oneof"`
}

type APIKey_Header Uses

type APIKey_Header struct {
    Header string `protobuf:"bytes,2,opt,name=header,proto3,oneof"`
}

type APIKey_Query Uses

type APIKey_Query struct {
    Query string `protobuf:"bytes,1,opt,name=query,proto3,oneof"`
}

type AttributeMatch Uses

type AttributeMatch struct {
    // Map of attribute names to StringMatch type.
    // Each map element specifies one condition to match.
    //
    // Example:
    //
    //   clause:
    //     source.uid:
    //       exact: SOURCE_UID
    //     request.http_method:
    //       exact: POST
    Clause               map[string]*StringMatch `protobuf:"bytes,1,rep,name=clause,proto3" json:"clause,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

Specifies a match clause to match Istio attributes

func (*AttributeMatch) Descriptor Uses

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

func (*AttributeMatch) GetClause Uses

func (m *AttributeMatch) GetClause() map[string]*StringMatch

func (*AttributeMatch) ProtoMessage Uses

func (*AttributeMatch) ProtoMessage()

func (*AttributeMatch) Reset Uses

func (m *AttributeMatch) Reset()

func (*AttributeMatch) String Uses

func (m *AttributeMatch) String() string

func (*AttributeMatch) XXX_DiscardUnknown Uses

func (m *AttributeMatch) XXX_DiscardUnknown()

func (*AttributeMatch) XXX_Marshal Uses

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

func (*AttributeMatch) XXX_Merge Uses

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

func (*AttributeMatch) XXX_Size Uses

func (m *AttributeMatch) XXX_Size() int

func (*AttributeMatch) XXX_Unmarshal Uses

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

type Attributes Uses

type Attributes struct {
    // A map of attribute name to its value.
    Attributes           map[string]*Attributes_AttributeValue `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
    XXX_unrecognized     []byte                                `json:"-"`
    XXX_sizecache        int32                                 `json:"-"`
}

Attributes represents a set of typed name/value pairs. Many of Mixer's API either consume and/or return attributes.

Istio uses attributes to control the runtime behavior of services running in the service mesh. Attributes are named and typed pieces of metadata describing ingress and egress traffic and the environment this traffic occurs in. An Istio attribute carries a specific piece of information such as the error code of an API request, the latency of an API request, or the original IP address of a TCP connection. For example:

“`yaml request.path: xyz/abc request.size: 234 request.time: 12:34:56.789 04/17/2017 source.ip: 192.168.0.1 target.service: example “`

A given Istio deployment has a fixed vocabulary of attributes that it understands. The specific vocabulary is determined by the set of attribute producers being used in the deployment. The primary attribute producer in Istio is Envoy, although specialized Mixer adapters and services can also generate attributes.

The common baseline set of attributes available in most Istio deployments is defined [here](https://istio.io/docs/reference/config/policy-and-telemetry/attribute-vocabulary/).

Attributes are strongly typed. The supported attribute types are defined by [ValueType](https://github.com/istio/api/blob/master/policy/v1beta1/value_type.proto). Each type of value is encoded into one of the so-called transport types present in this message.

Defines a map of attributes in uncompressed format. Following places may use this message: 1) Configure Istio/Proxy with static per-proxy attributes, such as source.uid. 2) Service IDL definition to extract api attributes for active requests. 3) Forward attributes from client proxy to server proxy for HTTP requests.

func (*Attributes) Descriptor Uses

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

func (*Attributes) GetAttributes Uses

func (m *Attributes) GetAttributes() map[string]*Attributes_AttributeValue

func (*Attributes) ProtoMessage Uses

func (*Attributes) ProtoMessage()

func (*Attributes) Reset Uses

func (m *Attributes) Reset()

func (*Attributes) String Uses

func (m *Attributes) String() string

func (*Attributes) XXX_DiscardUnknown Uses

func (m *Attributes) XXX_DiscardUnknown()

func (*Attributes) XXX_Marshal Uses

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

func (*Attributes) XXX_Merge Uses

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

func (*Attributes) XXX_Size Uses

func (m *Attributes) XXX_Size() int

func (*Attributes) XXX_Unmarshal Uses

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

type Attributes_AttributeValue Uses

type Attributes_AttributeValue struct {
    // The attribute value.
    //
    // Types that are valid to be assigned to Value:
    //	*Attributes_AttributeValue_StringValue
    //	*Attributes_AttributeValue_Int64Value
    //	*Attributes_AttributeValue_DoubleValue
    //	*Attributes_AttributeValue_BoolValue
    //	*Attributes_AttributeValue_BytesValue
    //	*Attributes_AttributeValue_TimestampValue
    //	*Attributes_AttributeValue_DurationValue
    //	*Attributes_AttributeValue_StringMapValue
    Value                isAttributes_AttributeValue_Value `protobuf_oneof:"value"`
    XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
    XXX_unrecognized     []byte                            `json:"-"`
    XXX_sizecache        int32                             `json:"-"`
}

Specifies one attribute value with different type.

func (*Attributes_AttributeValue) Descriptor Uses

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

func (*Attributes_AttributeValue) GetBoolValue Uses

func (m *Attributes_AttributeValue) GetBoolValue() bool

func (*Attributes_AttributeValue) GetBytesValue Uses

func (m *Attributes_AttributeValue) GetBytesValue() []byte

func (*Attributes_AttributeValue) GetDoubleValue Uses

func (m *Attributes_AttributeValue) GetDoubleValue() float64

func (*Attributes_AttributeValue) GetDurationValue Uses

func (m *Attributes_AttributeValue) GetDurationValue() *duration.Duration

func (*Attributes_AttributeValue) GetInt64Value Uses

func (m *Attributes_AttributeValue) GetInt64Value() int64

func (*Attributes_AttributeValue) GetStringMapValue Uses

func (m *Attributes_AttributeValue) GetStringMapValue() *Attributes_StringMap

func (*Attributes_AttributeValue) GetStringValue Uses

func (m *Attributes_AttributeValue) GetStringValue() string

func (*Attributes_AttributeValue) GetTimestampValue Uses

func (m *Attributes_AttributeValue) GetTimestampValue() *timestamp.Timestamp

func (*Attributes_AttributeValue) GetValue Uses

func (m *Attributes_AttributeValue) GetValue() isAttributes_AttributeValue_Value

func (*Attributes_AttributeValue) ProtoMessage Uses

func (*Attributes_AttributeValue) ProtoMessage()

func (*Attributes_AttributeValue) Reset Uses

func (m *Attributes_AttributeValue) Reset()

func (*Attributes_AttributeValue) String Uses

func (m *Attributes_AttributeValue) String() string

func (*Attributes_AttributeValue) XXX_DiscardUnknown Uses

func (m *Attributes_AttributeValue) XXX_DiscardUnknown()

func (*Attributes_AttributeValue) XXX_Marshal Uses

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

func (*Attributes_AttributeValue) XXX_Merge Uses

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

func (*Attributes_AttributeValue) XXX_OneofWrappers Uses

func (*Attributes_AttributeValue) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Attributes_AttributeValue) XXX_Size Uses

func (m *Attributes_AttributeValue) XXX_Size() int

func (*Attributes_AttributeValue) XXX_Unmarshal Uses

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

type Attributes_AttributeValue_BoolValue Uses

type Attributes_AttributeValue_BoolValue struct {
    BoolValue bool `protobuf:"varint,5,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Attributes_AttributeValue_BytesValue Uses

type Attributes_AttributeValue_BytesValue struct {
    BytesValue []byte `protobuf:"bytes,6,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}

type Attributes_AttributeValue_DoubleValue Uses

type Attributes_AttributeValue_DoubleValue struct {
    DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type Attributes_AttributeValue_DurationValue Uses

type Attributes_AttributeValue_DurationValue struct {
    DurationValue *duration.Duration `protobuf:"bytes,8,opt,name=duration_value,json=durationValue,proto3,oneof"`
}

type Attributes_AttributeValue_Int64Value Uses

type Attributes_AttributeValue_Int64Value struct {
    Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type Attributes_AttributeValue_StringMapValue Uses

type Attributes_AttributeValue_StringMapValue struct {
    StringMapValue *Attributes_StringMap `protobuf:"bytes,9,opt,name=string_map_value,json=stringMapValue,proto3,oneof"`
}

type Attributes_AttributeValue_StringValue Uses

type Attributes_AttributeValue_StringValue struct {
    StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Attributes_AttributeValue_TimestampValue Uses

type Attributes_AttributeValue_TimestampValue struct {
    TimestampValue *timestamp.Timestamp `protobuf:"bytes,7,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
}

type Attributes_StringMap Uses

type Attributes_StringMap struct {
    // Holds a set of name/value pairs.
    Entries              map[string]string `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

Defines a string map.

func (*Attributes_StringMap) Descriptor Uses

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

func (*Attributes_StringMap) GetEntries Uses

func (m *Attributes_StringMap) GetEntries() map[string]string

func (*Attributes_StringMap) ProtoMessage Uses

func (*Attributes_StringMap) ProtoMessage()

func (*Attributes_StringMap) Reset Uses

func (m *Attributes_StringMap) Reset()

func (*Attributes_StringMap) String Uses

func (m *Attributes_StringMap) String() string

func (*Attributes_StringMap) XXX_DiscardUnknown Uses

func (m *Attributes_StringMap) XXX_DiscardUnknown()

func (*Attributes_StringMap) XXX_Marshal Uses

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

func (*Attributes_StringMap) XXX_Merge Uses

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

func (*Attributes_StringMap) XXX_Size Uses

func (m *Attributes_StringMap) XXX_Size() int

func (*Attributes_StringMap) XXX_Unmarshal Uses

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

type CompressedAttributes Uses

type CompressedAttributes struct {
    // The message-level dictionary.
    Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"`
    // Holds attributes of type STRING, DNS_NAME, EMAIL_ADDRESS, URI
    Strings map[int32]int32 `protobuf:"bytes,2,rep,name=strings,proto3" json:"strings,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"zigzag32,2,opt,name=value,proto3"`
    // Holds attributes of type INT64
    Int64S map[int32]int64 `protobuf:"bytes,3,rep,name=int64s,proto3" json:"int64s,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
    // Holds attributes of type DOUBLE
    Doubles map[int32]float64 `protobuf:"bytes,4,rep,name=doubles,proto3" json:"doubles,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
    // Holds attributes of type BOOL
    Bools map[int32]bool `protobuf:"bytes,5,rep,name=bools,proto3" json:"bools,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
    // Holds attributes of type TIMESTAMP
    Timestamps map[int32]*timestamp.Timestamp `protobuf:"bytes,6,rep,name=timestamps,proto3" json:"timestamps,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Holds attributes of type DURATION
    Durations map[int32]*duration.Duration `protobuf:"bytes,7,rep,name=durations,proto3" json:"durations,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Holds attributes of type BYTES
    Bytes map[int32][]byte `protobuf:"bytes,8,rep,name=bytes,proto3" json:"bytes,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Holds attributes of type STRING_MAP
    StringMaps           map[int32]*StringMap `protobuf:"bytes,9,rep,name=string_maps,json=stringMaps,proto3" json:"string_maps,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

Defines a list of attributes in compressed format optimized for transport. Within this message, strings are referenced using integer indices into one of two string dictionaries. Positive integers index into the global deployment-wide dictionary, whereas negative integers index into the message-level dictionary instead. The message-level dictionary is carried by the `words` field of this message, the deployment-wide dictionary is determined via configuration.

func (*CompressedAttributes) Descriptor Uses

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

func (*CompressedAttributes) GetBools Uses

func (m *CompressedAttributes) GetBools() map[int32]bool

func (*CompressedAttributes) GetBytes Uses

func (m *CompressedAttributes) GetBytes() map[int32][]byte

func (*CompressedAttributes) GetDoubles Uses

func (m *CompressedAttributes) GetDoubles() map[int32]float64

func (*CompressedAttributes) GetDurations Uses

func (m *CompressedAttributes) GetDurations() map[int32]*duration.Duration

func (*CompressedAttributes) GetInt64S Uses

func (m *CompressedAttributes) GetInt64S() map[int32]int64

func (*CompressedAttributes) GetStringMaps Uses

func (m *CompressedAttributes) GetStringMaps() map[int32]*StringMap

func (*CompressedAttributes) GetStrings Uses

func (m *CompressedAttributes) GetStrings() map[int32]int32

func (*CompressedAttributes) GetTimestamps Uses

func (m *CompressedAttributes) GetTimestamps() map[int32]*timestamp.Timestamp

func (*CompressedAttributes) GetWords Uses

func (m *CompressedAttributes) GetWords() []string

func (*CompressedAttributes) ProtoMessage Uses

func (*CompressedAttributes) ProtoMessage()

func (*CompressedAttributes) Reset Uses

func (m *CompressedAttributes) Reset()

func (*CompressedAttributes) String Uses

func (m *CompressedAttributes) String() string

func (*CompressedAttributes) XXX_DiscardUnknown Uses

func (m *CompressedAttributes) XXX_DiscardUnknown()

func (*CompressedAttributes) XXX_Marshal Uses

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

func (*CompressedAttributes) XXX_Merge Uses

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

func (*CompressedAttributes) XXX_Size Uses

func (m *CompressedAttributes) XXX_Size() int

func (*CompressedAttributes) XXX_Unmarshal Uses

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

type HTTPAPISpec Uses

type HTTPAPISpec struct {
    // List of attributes that are generated when *any* of the HTTP
    // patterns match. This list typically includes the "api.service"
    // and "api.version" attributes.
    Attributes *Attributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
    // List of HTTP patterns to match.
    Patterns []*HTTPAPISpecPattern `protobuf:"bytes,2,rep,name=patterns,proto3" json:"patterns,omitempty"`
    // List of APIKey that describes how to extract an API-KEY from an
    // HTTP request. The first API-Key match found in the list is used,
    // i.e. 'OR' semantics.
    //
    // The following default policies are used to generate the
    // `request.api_key` attribute if no explicit APIKey is defined.
    //
    //     `query: key, `query: api_key`, and then `header: x-api-key`
    //
    ApiKeys              []*APIKey `protobuf:"bytes,3,rep,name=api_keys,json=apiKeys,proto3" json:"api_keys,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

HTTPAPISpec defines the canonical configuration for generating API-related attributes from HTTP requests based on the method and uri templated path matches. It is sufficient for defining the API surface of a service for the purposes of API attribute generation. It is not intended to represent auth, quota, documentation, or other information commonly found in other API specifications, e.g. OpenAPI.

Existing standards that define operations (or methods) in terms of HTTP methods and paths can be normalized to this format for use in Istio. For example, a simple petstore API described by OpenAPIv2 [here](https://github.com/googleapis/gnostic/blob/master/examples/v2.0/yaml/petstore-simple.yaml) can be represented with the following HTTPAPISpec.

“`yaml apiVersion: config.istio.io/v1alpha2 kind: HTTPAPISpec metadata:

name: petstore
namespace: default

spec:

attributes:
  attributes:
    api.service:
      stringValue: petstore.swagger.io
    api.version:
      stringValue: 1.0.0
patterns:
- attributes:
    attributes:
      api.operation:
        stringValue: findPets
  httpMethod: GET
  uriTemplate: /api/pets
- attributes:
    attributes:
      api.operation:
        stringValue: addPet
  httpMethod: POST
  uriTemplate: /api/pets
- attributes:
    attributes:
      api.operation:
        stringValue: findPetById
  httpMethod: GET
  uriTemplate: /api/pets/{id}
- attributes:
    attributes:
      api.operation:
        stringValue: deletePet
  httpMethod: DELETE
  uriTemplate: /api/pets/{id}
apiKeys:
- query: api-key

“`

func (*HTTPAPISpec) Descriptor Uses

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

func (*HTTPAPISpec) GetApiKeys Uses

func (m *HTTPAPISpec) GetApiKeys() []*APIKey

func (*HTTPAPISpec) GetAttributes Uses

func (m *HTTPAPISpec) GetAttributes() *Attributes

func (*HTTPAPISpec) GetPatterns Uses

func (m *HTTPAPISpec) GetPatterns() []*HTTPAPISpecPattern

func (*HTTPAPISpec) ProtoMessage Uses

func (*HTTPAPISpec) ProtoMessage()

func (*HTTPAPISpec) Reset Uses

func (m *HTTPAPISpec) Reset()

func (*HTTPAPISpec) String Uses

func (m *HTTPAPISpec) String() string

func (*HTTPAPISpec) XXX_DiscardUnknown Uses

func (m *HTTPAPISpec) XXX_DiscardUnknown()

func (*HTTPAPISpec) XXX_Marshal Uses

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

func (*HTTPAPISpec) XXX_Merge Uses

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

func (*HTTPAPISpec) XXX_Size Uses

func (m *HTTPAPISpec) XXX_Size() int

func (*HTTPAPISpec) XXX_Unmarshal Uses

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

type HTTPAPISpecBinding Uses

type HTTPAPISpecBinding struct {
    // REQUIRED. One or more services to map the listed HTTPAPISpec onto.
    Services []*IstioService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
    // REQUIRED. One or more HTTPAPISpec references that should be mapped to
    // the specified service(s). The aggregate collection of match
    // conditions defined in the HTTPAPISpecs should not overlap.
    ApiSpecs             []*HTTPAPISpecReference `protobuf:"bytes,2,rep,name=api_specs,json=apiSpecs,proto3" json:"api_specs,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

HTTPAPISpecBinding defines the binding between HTTPAPISpecs and one or more IstioService. For example, the following establishes a binding between the HTTPAPISpec `petstore` and service `foo` in namespace `bar`.

“`yaml apiVersion: config.istio.io/v1alpha2 kind: HTTPAPISpecBinding metadata:

name: my-binding
namespace: default

spec:

services:
- name: foo
  namespace: bar
apiSpecs:
- name: petstore
  namespace: default

“`

func (*HTTPAPISpecBinding) Descriptor Uses

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

func (*HTTPAPISpecBinding) GetApiSpecs Uses

func (m *HTTPAPISpecBinding) GetApiSpecs() []*HTTPAPISpecReference

func (*HTTPAPISpecBinding) GetServices Uses

func (m *HTTPAPISpecBinding) GetServices() []*IstioService

func (*HTTPAPISpecBinding) ProtoMessage Uses

func (*HTTPAPISpecBinding) ProtoMessage()

func (*HTTPAPISpecBinding) Reset Uses

func (m *HTTPAPISpecBinding) Reset()

func (*HTTPAPISpecBinding) String Uses

func (m *HTTPAPISpecBinding) String() string

func (*HTTPAPISpecBinding) XXX_DiscardUnknown Uses

func (m *HTTPAPISpecBinding) XXX_DiscardUnknown()

func (*HTTPAPISpecBinding) XXX_Marshal Uses

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

func (*HTTPAPISpecBinding) XXX_Merge Uses

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

func (*HTTPAPISpecBinding) XXX_Size Uses

func (m *HTTPAPISpecBinding) XXX_Size() int

func (*HTTPAPISpecBinding) XXX_Unmarshal Uses

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

type HTTPAPISpecPattern Uses

type HTTPAPISpecPattern struct {
    // List of attributes that are generated if the HTTP request matches
    // the specified http_method and uri_template. This typically
    // includes the "api.operation" attribute.
    Attributes *Attributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
    // HTTP request method to match against as defined by
    // [rfc7231](https://tools.ietf.org/html/rfc7231#page-21). For
    // example: GET, HEAD, POST, PUT, DELETE.
    HttpMethod string `protobuf:"bytes,2,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
    // Types that are valid to be assigned to Pattern:
    //	*HTTPAPISpecPattern_UriTemplate
    //	*HTTPAPISpecPattern_Regex
    Pattern              isHTTPAPISpecPattern_Pattern `protobuf_oneof:"pattern"`
    XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
    XXX_unrecognized     []byte                       `json:"-"`
    XXX_sizecache        int32                        `json:"-"`
}

HTTPAPISpecPattern defines a single pattern to match against incoming HTTP requests. The per-pattern list of attributes is generated if both the http_method and uri_template match. In addition, the top-level list of attributes in the HTTPAPISpec is also generated.

“`yaml pattern: - attributes

  api.operation: doFooBar
httpMethod: GET
uriTemplate: /foo/bar

“`

func (*HTTPAPISpecPattern) Descriptor Uses

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

func (*HTTPAPISpecPattern) GetAttributes Uses

func (m *HTTPAPISpecPattern) GetAttributes() *Attributes

func (*HTTPAPISpecPattern) GetHttpMethod Uses

func (m *HTTPAPISpecPattern) GetHttpMethod() string

func (*HTTPAPISpecPattern) GetPattern Uses

func (m *HTTPAPISpecPattern) GetPattern() isHTTPAPISpecPattern_Pattern

func (*HTTPAPISpecPattern) GetRegex Uses

func (m *HTTPAPISpecPattern) GetRegex() string

func (*HTTPAPISpecPattern) GetUriTemplate Uses

func (m *HTTPAPISpecPattern) GetUriTemplate() string

func (*HTTPAPISpecPattern) ProtoMessage Uses

func (*HTTPAPISpecPattern) ProtoMessage()

func (*HTTPAPISpecPattern) Reset Uses

func (m *HTTPAPISpecPattern) Reset()

func (*HTTPAPISpecPattern) String Uses

func (m *HTTPAPISpecPattern) String() string

func (*HTTPAPISpecPattern) XXX_DiscardUnknown Uses

func (m *HTTPAPISpecPattern) XXX_DiscardUnknown()

func (*HTTPAPISpecPattern) XXX_Marshal Uses

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

func (*HTTPAPISpecPattern) XXX_Merge Uses

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

func (*HTTPAPISpecPattern) XXX_OneofWrappers Uses

func (*HTTPAPISpecPattern) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*HTTPAPISpecPattern) XXX_Size Uses

func (m *HTTPAPISpecPattern) XXX_Size() int

func (*HTTPAPISpecPattern) XXX_Unmarshal Uses

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

type HTTPAPISpecPattern_Regex Uses

type HTTPAPISpecPattern_Regex struct {
    Regex string `protobuf:"bytes,4,opt,name=regex,proto3,oneof"`
}

type HTTPAPISpecPattern_UriTemplate Uses

type HTTPAPISpecPattern_UriTemplate struct {
    UriTemplate string `protobuf:"bytes,3,opt,name=uri_template,json=uriTemplate,proto3,oneof"`
}

type HTTPAPISpecReference Uses

type HTTPAPISpecReference struct {
    // REQUIRED. The short name of the HTTPAPISpec. This is the resource
    // name defined by the metadata name field.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Optional namespace of the HTTPAPISpec. Defaults to the encompassing
    // HTTPAPISpecBinding's metadata namespace field.
    Namespace            string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

HTTPAPISpecReference defines a reference to an HTTPAPISpec. This is typically used for establishing bindings between an HTTPAPISpec and an IstioService. For example, the following defines an HTTPAPISpecReference for service `foo` in namespace `bar`.

“`yaml - name: foo

namespace: bar

“`

func (*HTTPAPISpecReference) Descriptor Uses

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

func (*HTTPAPISpecReference) GetName Uses

func (m *HTTPAPISpecReference) GetName() string

func (*HTTPAPISpecReference) GetNamespace Uses

func (m *HTTPAPISpecReference) GetNamespace() string

func (*HTTPAPISpecReference) ProtoMessage Uses

func (*HTTPAPISpecReference) ProtoMessage()

func (*HTTPAPISpecReference) Reset Uses

func (m *HTTPAPISpecReference) Reset()

func (*HTTPAPISpecReference) String Uses

func (m *HTTPAPISpecReference) String() string

func (*HTTPAPISpecReference) XXX_DiscardUnknown Uses

func (m *HTTPAPISpecReference) XXX_DiscardUnknown()

func (*HTTPAPISpecReference) XXX_Marshal Uses

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

func (*HTTPAPISpecReference) XXX_Merge Uses

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

func (*HTTPAPISpecReference) XXX_Size Uses

func (m *HTTPAPISpecReference) XXX_Size() int

func (*HTTPAPISpecReference) XXX_Unmarshal Uses

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

type HttpClientConfig Uses

type HttpClientConfig struct {
    // The transport config.
    Transport *TransportConfig `protobuf:"bytes,1,opt,name=transport,proto3" json:"transport,omitempty"`
    // Map of control configuration indexed by destination.service. This
    // is used to support per-service configuration for cases where a
    // mixerclient serves multiple services.
    ServiceConfigs map[string]*ServiceConfig `protobuf:"bytes,2,rep,name=service_configs,json=serviceConfigs,proto3" json:"service_configs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Default destination service name if none was specified in the
    // client request.
    DefaultDestinationService string `protobuf:"bytes,3,opt,name=default_destination_service,json=defaultDestinationService,proto3" json:"default_destination_service,omitempty"`
    // Default attributes to send to Mixer in both Check and
    // Report. This typically includes "destination.ip" and
    // "destination.uid" attributes.
    MixerAttributes *Attributes `protobuf:"bytes,4,opt,name=mixer_attributes,json=mixerAttributes,proto3" json:"mixer_attributes,omitempty"`
    // Default attributes to forward to upstream. This typically
    // includes the "source.ip" and "source.uid" attributes.
    ForwardAttributes *Attributes `protobuf:"bytes,5,opt,name=forward_attributes,json=forwardAttributes,proto3" json:"forward_attributes,omitempty"`
    // Whether or not to use attributes forwarded in the request headers to
    // create the attribute bag to send to mixer. For intra-mesh traffic,
    // this should be set to "false". For ingress/egress gateways, this
    // should be set to "true".
    IgnoreForwardedAttributes bool     `protobuf:"varint,6,opt,name=ignore_forwarded_attributes,json=ignoreForwardedAttributes,proto3" json:"ignore_forwarded_attributes,omitempty"`
    XXX_NoUnkeyedLiteral      struct{} `json:"-"`
    XXX_unrecognized          []byte   `json:"-"`
    XXX_sizecache             int32    `json:"-"`
}

Defines the client config for HTTP.

func (*HttpClientConfig) Descriptor Uses

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

func (*HttpClientConfig) GetDefaultDestinationService Uses

func (m *HttpClientConfig) GetDefaultDestinationService() string

func (*HttpClientConfig) GetForwardAttributes Uses

func (m *HttpClientConfig) GetForwardAttributes() *Attributes

func (*HttpClientConfig) GetIgnoreForwardedAttributes Uses

func (m *HttpClientConfig) GetIgnoreForwardedAttributes() bool

func (*HttpClientConfig) GetMixerAttributes Uses

func (m *HttpClientConfig) GetMixerAttributes() *Attributes

func (*HttpClientConfig) GetServiceConfigs Uses

func (m *HttpClientConfig) GetServiceConfigs() map[string]*ServiceConfig

func (*HttpClientConfig) GetTransport Uses

func (m *HttpClientConfig) GetTransport() *TransportConfig

func (*HttpClientConfig) ProtoMessage Uses

func (*HttpClientConfig) ProtoMessage()

func (*HttpClientConfig) Reset Uses

func (m *HttpClientConfig) Reset()

func (*HttpClientConfig) String Uses

func (m *HttpClientConfig) String() string

func (*HttpClientConfig) XXX_DiscardUnknown Uses

func (m *HttpClientConfig) XXX_DiscardUnknown()

func (*HttpClientConfig) XXX_Marshal Uses

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

func (*HttpClientConfig) XXX_Merge Uses

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

func (*HttpClientConfig) XXX_Size Uses

func (m *HttpClientConfig) XXX_Size() int

func (*HttpClientConfig) XXX_Unmarshal Uses

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

type IstioService Uses

type IstioService struct {
    // The short name of the service such as "foo".
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Optional namespace of the service. Defaults to value of metadata namespace field.
    Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
    // Domain suffix used to construct the service FQDN in implementations that support such specification.
    Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
    // The service FQDN.
    Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
    // Optional one or more labels that uniquely identify the service version.
    //
    // *Note:* When used for a VirtualService destination, labels MUST be empty.
    //
    Labels               map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

IstioService identifies a service and optionally service version. The FQDN of the service is composed from the name, namespace, and implementation-specific domain suffix (e.g. on Kubernetes, "reviews" + "default" + "svc.cluster.local" -> "reviews.default.svc.cluster.local").

func (*IstioService) Descriptor Uses

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

func (*IstioService) GetDomain Uses

func (m *IstioService) GetDomain() string

func (*IstioService) GetLabels Uses

func (m *IstioService) GetLabels() map[string]string

func (*IstioService) GetName Uses

func (m *IstioService) GetName() string

func (*IstioService) GetNamespace Uses

func (m *IstioService) GetNamespace() string

func (*IstioService) GetService Uses

func (m *IstioService) GetService() string

func (*IstioService) ProtoMessage Uses

func (*IstioService) ProtoMessage()

func (*IstioService) Reset Uses

func (m *IstioService) Reset()

func (*IstioService) String Uses

func (m *IstioService) String() string

func (*IstioService) XXX_DiscardUnknown Uses

func (m *IstioService) XXX_DiscardUnknown()

func (*IstioService) XXX_Marshal Uses

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

func (*IstioService) XXX_Merge Uses

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

func (*IstioService) XXX_Size Uses

func (m *IstioService) XXX_Size() int

func (*IstioService) XXX_Unmarshal Uses

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

type NetworkFailPolicy Uses

type NetworkFailPolicy struct {
    // Specifies the behavior when the client is unable to connect to Mixer.
    Policy NetworkFailPolicy_FailPolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=istio.mixer.v1.config.client.NetworkFailPolicy_FailPolicy" json:"policy,omitempty"`
    // Max retries on transport error.
    MaxRetry uint32 `protobuf:"varint,2,opt,name=max_retry,json=maxRetry,proto3" json:"max_retry,omitempty"`
    // Base time to wait between retries.  Will be adjusted by exponential
    // backoff and jitter.
    BaseRetryWait *duration.Duration `protobuf:"bytes,3,opt,name=base_retry_wait,json=baseRetryWait,proto3" json:"base_retry_wait,omitempty"`
    // Max time to wait between retries.
    MaxRetryWait         *duration.Duration `protobuf:"bytes,4,opt,name=max_retry_wait,json=maxRetryWait,proto3" json:"max_retry_wait,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

Specifies the behavior when the client is unable to connect to Mixer.

func (*NetworkFailPolicy) Descriptor Uses

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

func (*NetworkFailPolicy) GetBaseRetryWait Uses

func (m *NetworkFailPolicy) GetBaseRetryWait() *duration.Duration

func (*NetworkFailPolicy) GetMaxRetry Uses

func (m *NetworkFailPolicy) GetMaxRetry() uint32

func (*NetworkFailPolicy) GetMaxRetryWait Uses

func (m *NetworkFailPolicy) GetMaxRetryWait() *duration.Duration

func (*NetworkFailPolicy) GetPolicy Uses

func (m *NetworkFailPolicy) GetPolicy() NetworkFailPolicy_FailPolicy

func (*NetworkFailPolicy) ProtoMessage Uses

func (*NetworkFailPolicy) ProtoMessage()

func (*NetworkFailPolicy) Reset Uses

func (m *NetworkFailPolicy) Reset()

func (*NetworkFailPolicy) String Uses

func (m *NetworkFailPolicy) String() string

func (*NetworkFailPolicy) XXX_DiscardUnknown Uses

func (m *NetworkFailPolicy) XXX_DiscardUnknown()

func (*NetworkFailPolicy) XXX_Marshal Uses

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

func (*NetworkFailPolicy) XXX_Merge Uses

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

func (*NetworkFailPolicy) XXX_Size Uses

func (m *NetworkFailPolicy) XXX_Size() int

func (*NetworkFailPolicy) XXX_Unmarshal Uses

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

type NetworkFailPolicy_FailPolicy Uses

type NetworkFailPolicy_FailPolicy int32

Describes the policy.

const (
    // If network connection fails, request is allowed and delivered to the
    // service.
    NetworkFailPolicy_FAIL_OPEN NetworkFailPolicy_FailPolicy = 0
    // If network connection fails, request is rejected.
    NetworkFailPolicy_FAIL_CLOSE NetworkFailPolicy_FailPolicy = 1
)

func (NetworkFailPolicy_FailPolicy) EnumDescriptor Uses

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

func (NetworkFailPolicy_FailPolicy) String Uses

func (x NetworkFailPolicy_FailPolicy) String() string

type Quota Uses

type Quota struct {
    // The quota name to charge
    Quota string `protobuf:"bytes,1,opt,name=quota,proto3" json:"quota,omitempty"`
    // The quota amount to charge
    Charge               int64    `protobuf:"varint,2,opt,name=charge,proto3" json:"charge,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Specifies a quota to use with quota name and amount.

func (*Quota) Descriptor Uses

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

func (*Quota) GetCharge Uses

func (m *Quota) GetCharge() int64

func (*Quota) GetQuota Uses

func (m *Quota) GetQuota() string

func (*Quota) ProtoMessage Uses

func (*Quota) ProtoMessage()

func (*Quota) Reset Uses

func (m *Quota) Reset()

func (*Quota) String Uses

func (m *Quota) String() string

func (*Quota) XXX_DiscardUnknown Uses

func (m *Quota) XXX_DiscardUnknown()

func (*Quota) XXX_Marshal Uses

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

func (*Quota) XXX_Merge Uses

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

func (*Quota) XXX_Size Uses

func (m *Quota) XXX_Size() int

func (*Quota) XXX_Unmarshal Uses

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

type QuotaRule Uses

type QuotaRule struct {
    // If empty, match all request.
    // If any of match is true, it is matched.
    Match []*AttributeMatch `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
    // The list of quotas to charge.
    Quotas               []*Quota `protobuf:"bytes,2,rep,name=quotas,proto3" json:"quotas,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Specifies a rule with list of matches and list of quotas. If any clause matched, the list of quotas will be used.

func (*QuotaRule) Descriptor Uses

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

func (*QuotaRule) GetMatch Uses

func (m *QuotaRule) GetMatch() []*AttributeMatch

func (*QuotaRule) GetQuotas Uses

func (m *QuotaRule) GetQuotas() []*Quota

func (*QuotaRule) ProtoMessage Uses

func (*QuotaRule) ProtoMessage()

func (*QuotaRule) Reset Uses

func (m *QuotaRule) Reset()

func (*QuotaRule) String Uses

func (m *QuotaRule) String() string

func (*QuotaRule) XXX_DiscardUnknown Uses

func (m *QuotaRule) XXX_DiscardUnknown()

func (*QuotaRule) XXX_Marshal Uses

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

func (*QuotaRule) XXX_Merge Uses

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

func (*QuotaRule) XXX_Size Uses

func (m *QuotaRule) XXX_Size() int

func (*QuotaRule) XXX_Unmarshal Uses

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

type QuotaSpec Uses

type QuotaSpec struct {
    // A list of Quota rules.
    Rules                []*QuotaRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
    XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    XXX_unrecognized     []byte       `json:"-"`
    XXX_sizecache        int32        `json:"-"`
}

Determines the quotas used for individual requests.

func (*QuotaSpec) Descriptor Uses

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

func (*QuotaSpec) GetRules Uses

func (m *QuotaSpec) GetRules() []*QuotaRule

func (*QuotaSpec) ProtoMessage Uses

func (*QuotaSpec) ProtoMessage()

func (*QuotaSpec) Reset Uses

func (m *QuotaSpec) Reset()

func (*QuotaSpec) String Uses

func (m *QuotaSpec) String() string

func (*QuotaSpec) XXX_DiscardUnknown Uses

func (m *QuotaSpec) XXX_DiscardUnknown()

func (*QuotaSpec) XXX_Marshal Uses

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

func (*QuotaSpec) XXX_Merge Uses

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

func (*QuotaSpec) XXX_Size Uses

func (m *QuotaSpec) XXX_Size() int

func (*QuotaSpec) XXX_Unmarshal Uses

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

type QuotaSpecBinding Uses

type QuotaSpecBinding struct {
    // REQUIRED. One or more services to map the listed QuotaSpec onto.
    Services []*IstioService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
    // REQUIRED. One or more QuotaSpec references that should be mapped to
    // the specified service(s). The aggregate collection of match
    // conditions defined in the QuotaSpecs should not overlap.
    QuotaSpecs           []*QuotaSpecBinding_QuotaSpecReference `protobuf:"bytes,2,rep,name=quota_specs,json=quotaSpecs,proto3" json:"quota_specs,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
    XXX_unrecognized     []byte                                 `json:"-"`
    XXX_sizecache        int32                                  `json:"-"`
}

QuotaSpecBinding defines the binding between QuotaSpecs and one or more IstioService.

func (*QuotaSpecBinding) Descriptor Uses

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

func (*QuotaSpecBinding) GetQuotaSpecs Uses

func (m *QuotaSpecBinding) GetQuotaSpecs() []*QuotaSpecBinding_QuotaSpecReference

func (*QuotaSpecBinding) GetServices Uses

func (m *QuotaSpecBinding) GetServices() []*IstioService

func (*QuotaSpecBinding) ProtoMessage Uses

func (*QuotaSpecBinding) ProtoMessage()

func (*QuotaSpecBinding) Reset Uses

func (m *QuotaSpecBinding) Reset()

func (*QuotaSpecBinding) String Uses

func (m *QuotaSpecBinding) String() string

func (*QuotaSpecBinding) XXX_DiscardUnknown Uses

func (m *QuotaSpecBinding) XXX_DiscardUnknown()

func (*QuotaSpecBinding) XXX_Marshal Uses

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

func (*QuotaSpecBinding) XXX_Merge Uses

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

func (*QuotaSpecBinding) XXX_Size Uses

func (m *QuotaSpecBinding) XXX_Size() int

func (*QuotaSpecBinding) XXX_Unmarshal Uses

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

type QuotaSpecBinding_QuotaSpecReference Uses

type QuotaSpecBinding_QuotaSpecReference struct {
    // REQUIRED. The short name of the QuotaSpec. This is the resource
    // name defined by the metadata name field.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Optional namespace of the QuotaSpec. Defaults to the value of the
    // metadata namespace field.
    Namespace            string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

QuotaSpecReference uniquely identifies the QuotaSpec used in the Binding.

func (*QuotaSpecBinding_QuotaSpecReference) Descriptor Uses

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

func (*QuotaSpecBinding_QuotaSpecReference) GetName Uses

func (m *QuotaSpecBinding_QuotaSpecReference) GetName() string

func (*QuotaSpecBinding_QuotaSpecReference) GetNamespace Uses

func (m *QuotaSpecBinding_QuotaSpecReference) GetNamespace() string

func (*QuotaSpecBinding_QuotaSpecReference) ProtoMessage Uses

func (*QuotaSpecBinding_QuotaSpecReference) ProtoMessage()

func (*QuotaSpecBinding_QuotaSpecReference) Reset Uses

func (m *QuotaSpecBinding_QuotaSpecReference) Reset()

func (*QuotaSpecBinding_QuotaSpecReference) String Uses

func (m *QuotaSpecBinding_QuotaSpecReference) String() string

func (*QuotaSpecBinding_QuotaSpecReference) XXX_DiscardUnknown Uses

func (m *QuotaSpecBinding_QuotaSpecReference) XXX_DiscardUnknown()

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Marshal Uses

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

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Merge Uses

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

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Size Uses

func (m *QuotaSpecBinding_QuotaSpecReference) XXX_Size() int

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Unmarshal Uses

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

type ServiceConfig Uses

type ServiceConfig struct {
    // If true, do not call Mixer Check.
    DisableCheckCalls bool `protobuf:"varint,1,opt,name=disable_check_calls,json=disableCheckCalls,proto3" json:"disable_check_calls,omitempty"`
    // If true, do not call Mixer Report.
    DisableReportCalls bool `protobuf:"varint,2,opt,name=disable_report_calls,json=disableReportCalls,proto3" json:"disable_report_calls,omitempty"`
    // Send these attributes to Mixer in both Check and Report. This
    // typically includes the "destination.service" attribute.
    // In case of a per-route override, per-route attributes take precedence
    // over the attributes supplied in the client configuration.
    MixerAttributes *Attributes `protobuf:"bytes,3,opt,name=mixer_attributes,json=mixerAttributes,proto3" json:"mixer_attributes,omitempty"`
    // HTTP API specifications to generate API attributes.
    HttpApiSpec []*HTTPAPISpec `protobuf:"bytes,4,rep,name=http_api_spec,json=httpApiSpec,proto3" json:"http_api_spec,omitempty"`
    // Quota specifications to generate quota requirements.
    QuotaSpec []*QuotaSpec `protobuf:"bytes,5,rep,name=quota_spec,json=quotaSpec,proto3" json:"quota_spec,omitempty"`
    // Specifies the behavior when the client is unable to connect to Mixer.
    // This is the service-level policy. It overrides
    // [mesh-level
    // policy][istio.mixer.v1.config.client.TransportConfig.network_fail_policy].
    NetworkFailPolicy *NetworkFailPolicy `protobuf:"bytes,7,opt,name=network_fail_policy,json=networkFailPolicy,proto3" json:"network_fail_policy,omitempty"`
    // Default attributes to forward to upstream. This typically
    // includes the "source.ip" and "source.uid" attributes.
    // In case of a per-route override, per-route attributes take precedence
    // over the attributes supplied in the client configuration.
    //
    // Forwarded attributes take precedence over the static Mixer attributes,
    // except in cases where there is clear configuration to ignore forwarded
    // attributes. Gateways, for instance, should never use forwarded attributes.
    //
    // The full order of application is as follows:
    // 1. static Mixer attributes from the filter config;
    // 2. static Mixer attributes from the route config;
    // 3. forwarded attributes from the source filter config (if any and not ignored);
    // 4. forwarded attributes from the source route config (if any and not ignored);
    // 5. derived attributes from the request metadata.
    ForwardAttributes    *Attributes `protobuf:"bytes,8,opt,name=forward_attributes,json=forwardAttributes,proto3" json:"forward_attributes,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

Defines the per-service client configuration.

func (*ServiceConfig) Descriptor Uses

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

func (*ServiceConfig) GetDisableCheckCalls Uses

func (m *ServiceConfig) GetDisableCheckCalls() bool

func (*ServiceConfig) GetDisableReportCalls Uses

func (m *ServiceConfig) GetDisableReportCalls() bool

func (*ServiceConfig) GetForwardAttributes Uses

func (m *ServiceConfig) GetForwardAttributes() *Attributes

func (*ServiceConfig) GetHttpApiSpec Uses

func (m *ServiceConfig) GetHttpApiSpec() []*HTTPAPISpec

func (*ServiceConfig) GetMixerAttributes Uses

func (m *ServiceConfig) GetMixerAttributes() *Attributes

func (*ServiceConfig) GetNetworkFailPolicy Uses

func (m *ServiceConfig) GetNetworkFailPolicy() *NetworkFailPolicy

func (*ServiceConfig) GetQuotaSpec Uses

func (m *ServiceConfig) GetQuotaSpec() []*QuotaSpec

func (*ServiceConfig) ProtoMessage Uses

func (*ServiceConfig) ProtoMessage()

func (*ServiceConfig) Reset Uses

func (m *ServiceConfig) Reset()

func (*ServiceConfig) String Uses

func (m *ServiceConfig) String() string

func (*ServiceConfig) XXX_DiscardUnknown Uses

func (m *ServiceConfig) XXX_DiscardUnknown()

func (*ServiceConfig) XXX_Marshal Uses

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

func (*ServiceConfig) XXX_Merge Uses

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

func (*ServiceConfig) XXX_Size Uses

func (m *ServiceConfig) XXX_Size() int

func (*ServiceConfig) XXX_Unmarshal Uses

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

type StringMap Uses

type StringMap struct {
    // Holds a set of name/value pairs.
    Entries              map[int32]int32 `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"zigzag32,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

A map of string to string. The keys and values in this map are dictionary indices (see the [Attributes][istio.mixer.v1.CompressedAttributes] message for an explanation)

func (*StringMap) Descriptor Uses

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

func (*StringMap) GetEntries Uses

func (m *StringMap) GetEntries() map[int32]int32

func (*StringMap) ProtoMessage Uses

func (*StringMap) ProtoMessage()

func (*StringMap) Reset Uses

func (m *StringMap) Reset()

func (*StringMap) String Uses

func (m *StringMap) String() string

func (*StringMap) XXX_DiscardUnknown Uses

func (m *StringMap) XXX_DiscardUnknown()

func (*StringMap) XXX_Marshal Uses

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

func (*StringMap) XXX_Merge Uses

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

func (*StringMap) XXX_Size Uses

func (m *StringMap) XXX_Size() int

func (*StringMap) XXX_Unmarshal Uses

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

type StringMatch Uses

type StringMatch struct {
    // Types that are valid to be assigned to MatchType:
    //	*StringMatch_Exact
    //	*StringMatch_Prefix
    //	*StringMatch_Regex
    MatchType            isStringMatch_MatchType `protobuf_oneof:"match_type"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

Describes how to match a given string in HTTP headers. Match is case-sensitive.

func (*StringMatch) Descriptor Uses

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

func (*StringMatch) GetExact Uses

func (m *StringMatch) GetExact() string

func (*StringMatch) GetMatchType Uses

func (m *StringMatch) GetMatchType() isStringMatch_MatchType

func (*StringMatch) GetPrefix Uses

func (m *StringMatch) GetPrefix() string

func (*StringMatch) GetRegex Uses

func (m *StringMatch) GetRegex() string

func (*StringMatch) ProtoMessage Uses

func (*StringMatch) ProtoMessage()

func (*StringMatch) Reset Uses

func (m *StringMatch) Reset()

func (*StringMatch) String Uses

func (m *StringMatch) String() string

func (*StringMatch) XXX_DiscardUnknown Uses

func (m *StringMatch) XXX_DiscardUnknown()

func (*StringMatch) XXX_Marshal Uses

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

func (*StringMatch) XXX_Merge Uses

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

func (*StringMatch) XXX_OneofWrappers Uses

func (*StringMatch) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*StringMatch) XXX_Size Uses

func (m *StringMatch) XXX_Size() int

func (*StringMatch) XXX_Unmarshal Uses

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

type StringMatch_Exact Uses

type StringMatch_Exact struct {
    Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}

type StringMatch_Prefix Uses

type StringMatch_Prefix struct {
    Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}

type StringMatch_Regex Uses

type StringMatch_Regex struct {
    Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}

type TcpClientConfig Uses

type TcpClientConfig struct {
    // The transport config.
    Transport *TransportConfig `protobuf:"bytes,1,opt,name=transport,proto3" json:"transport,omitempty"`
    // Default attributes to send to Mixer in both Check and
    // Report. This typically includes "destination.ip" and
    // "destination.uid" attributes.
    MixerAttributes *Attributes `protobuf:"bytes,2,opt,name=mixer_attributes,json=mixerAttributes,proto3" json:"mixer_attributes,omitempty"`
    // If set to true, disables Mixer check calls.
    DisableCheckCalls bool `protobuf:"varint,3,opt,name=disable_check_calls,json=disableCheckCalls,proto3" json:"disable_check_calls,omitempty"`
    // If set to true, disables Mixer check calls.
    DisableReportCalls bool `protobuf:"varint,4,opt,name=disable_report_calls,json=disableReportCalls,proto3" json:"disable_report_calls,omitempty"`
    // Quota specifications to generate quota requirements.
    // It applies on the new TCP connections.
    ConnectionQuotaSpec *QuotaSpec `protobuf:"bytes,5,opt,name=connection_quota_spec,json=connectionQuotaSpec,proto3" json:"connection_quota_spec,omitempty"`
    // Specify report interval to send periodical reports for long TCP
    // connections. If not specified, the interval is 10 seconds. This interval
    // should not be less than 1 second, otherwise it will be reset to 1 second.
    ReportInterval       *duration.Duration `protobuf:"bytes,6,opt,name=report_interval,json=reportInterval,proto3" json:"report_interval,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

Defines the client config for TCP.

func (*TcpClientConfig) Descriptor Uses

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

func (*TcpClientConfig) GetConnectionQuotaSpec Uses

func (m *TcpClientConfig) GetConnectionQuotaSpec() *QuotaSpec

func (*TcpClientConfig) GetDisableCheckCalls Uses

func (m *TcpClientConfig) GetDisableCheckCalls() bool

func (*TcpClientConfig) GetDisableReportCalls Uses

func (m *TcpClientConfig) GetDisableReportCalls() bool

func (*TcpClientConfig) GetMixerAttributes Uses

func (m *TcpClientConfig) GetMixerAttributes() *Attributes

func (*TcpClientConfig) GetReportInterval Uses

func (m *TcpClientConfig) GetReportInterval() *duration.Duration

func (*TcpClientConfig) GetTransport Uses

func (m *TcpClientConfig) GetTransport() *TransportConfig

func (*TcpClientConfig) ProtoMessage Uses

func (*TcpClientConfig) ProtoMessage()

func (*TcpClientConfig) Reset Uses

func (m *TcpClientConfig) Reset()

func (*TcpClientConfig) String Uses

func (m *TcpClientConfig) String() string

func (*TcpClientConfig) XXX_DiscardUnknown Uses

func (m *TcpClientConfig) XXX_DiscardUnknown()

func (*TcpClientConfig) XXX_Marshal Uses

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

func (*TcpClientConfig) XXX_Merge Uses

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

func (*TcpClientConfig) XXX_Size Uses

func (m *TcpClientConfig) XXX_Size() int

func (*TcpClientConfig) XXX_Unmarshal Uses

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

type TransportConfig Uses

type TransportConfig struct {
    // The flag to disable check cache.
    DisableCheckCache bool `protobuf:"varint,1,opt,name=disable_check_cache,json=disableCheckCache,proto3" json:"disable_check_cache,omitempty"`
    // The flag to disable quota cache.
    DisableQuotaCache bool `protobuf:"varint,2,opt,name=disable_quota_cache,json=disableQuotaCache,proto3" json:"disable_quota_cache,omitempty"`
    // The flag to disable report batch.
    DisableReportBatch bool `protobuf:"varint,3,opt,name=disable_report_batch,json=disableReportBatch,proto3" json:"disable_report_batch,omitempty"`
    // Specifies the behavior when the client is unable to connect to Mixer.
    // This is the mesh level policy. The default value for policy is FAIL_OPEN.
    NetworkFailPolicy *NetworkFailPolicy `protobuf:"bytes,4,opt,name=network_fail_policy,json=networkFailPolicy,proto3" json:"network_fail_policy,omitempty"`
    // Specify refresh interval to write Mixer client statistics to Envoy share
    // memory. If not specified, the interval is 10 seconds.
    StatsUpdateInterval *duration.Duration `protobuf:"bytes,5,opt,name=stats_update_interval,json=statsUpdateInterval,proto3" json:"stats_update_interval,omitempty"`
    // Name of the cluster that will forward check calls to a pool of mixer
    // servers. Defaults to "mixer_server". By using different names for
    // checkCluster and reportCluster, it is possible to have one set of
    // Mixer servers handle check calls, while another set of Mixer servers
    // handle report calls.
    //
    // NOTE: Any value other than the default "mixer_server" will require the
    // Istio Grafana dashboards to be reconfigured to use the new name.
    CheckCluster string `protobuf:"bytes,6,opt,name=check_cluster,json=checkCluster,proto3" json:"check_cluster,omitempty"`
    // Name of the cluster that will forward report calls to a pool of mixer
    // servers. Defaults to "mixer_server". By using different names for
    // checkCluster and reportCluster, it is possible to have one set of
    // Mixer servers handle check calls, while another set of Mixer servers
    // handle report calls.
    //
    // NOTE: Any value other than the default "mixer_server" will require the
    // Istio Grafana dashboards to be reconfigured to use the new name.
    ReportCluster string `protobuf:"bytes,7,opt,name=report_cluster,json=reportCluster,proto3" json:"report_cluster,omitempty"`
    // Default attributes to forward to Mixer upstream. This typically
    // includes the "source.ip" and "source.uid" attributes. These
    // attributes are consumed by the proxy in front of mixer.
    AttributesForMixerProxy *Attributes `protobuf:"bytes,8,opt,name=attributes_for_mixer_proxy,json=attributesForMixerProxy,proto3" json:"attributes_for_mixer_proxy,omitempty"`
    // When disable_report_batch is false, this value specifies the maximum number
    // of requests that are batched in report. If left unspecified, the default value
    // of report_batch_max_entries == 0 will use the hardcoded defaults of
    // istio::mixerclient::ReportOptions.
    ReportBatchMaxEntries uint32 `protobuf:"varint,9,opt,name=report_batch_max_entries,json=reportBatchMaxEntries,proto3" json:"report_batch_max_entries,omitempty"`
    // When disable_report_batch is false, this value specifies the maximum elapsed
    // time a batched report will be sent after a user request is processed. If left
    // unspecified, the default report_batch_max_time == 0 will use the hardcoded
    // defaults of istio::mixerclient::ReportOptions.
    ReportBatchMaxTime   *duration.Duration `protobuf:"bytes,10,opt,name=report_batch_max_time,json=reportBatchMaxTime,proto3" json:"report_batch_max_time,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

Defines the transport config on how to call Mixer.

func (*TransportConfig) Descriptor Uses

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

func (*TransportConfig) GetAttributesForMixerProxy Uses

func (m *TransportConfig) GetAttributesForMixerProxy() *Attributes

func (*TransportConfig) GetCheckCluster Uses

func (m *TransportConfig) GetCheckCluster() string

func (*TransportConfig) GetDisableCheckCache Uses

func (m *TransportConfig) GetDisableCheckCache() bool

func (*TransportConfig) GetDisableQuotaCache Uses

func (m *TransportConfig) GetDisableQuotaCache() bool

func (*TransportConfig) GetDisableReportBatch Uses

func (m *TransportConfig) GetDisableReportBatch() bool

func (*TransportConfig) GetNetworkFailPolicy Uses

func (m *TransportConfig) GetNetworkFailPolicy() *NetworkFailPolicy

func (*TransportConfig) GetReportBatchMaxEntries Uses

func (m *TransportConfig) GetReportBatchMaxEntries() uint32

func (*TransportConfig) GetReportBatchMaxTime Uses

func (m *TransportConfig) GetReportBatchMaxTime() *duration.Duration

func (*TransportConfig) GetReportCluster Uses

func (m *TransportConfig) GetReportCluster() string

func (*TransportConfig) GetStatsUpdateInterval Uses

func (m *TransportConfig) GetStatsUpdateInterval() *duration.Duration

func (*TransportConfig) ProtoMessage Uses

func (*TransportConfig) ProtoMessage()

func (*TransportConfig) Reset Uses

func (m *TransportConfig) Reset()

func (*TransportConfig) String Uses

func (m *TransportConfig) String() string

func (*TransportConfig) XXX_DiscardUnknown Uses

func (m *TransportConfig) XXX_DiscardUnknown()

func (*TransportConfig) XXX_Marshal Uses

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

func (*TransportConfig) XXX_Merge Uses

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

func (*TransportConfig) XXX_Size Uses

func (m *TransportConfig) XXX_Size() int

func (*TransportConfig) XXX_Unmarshal Uses

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

Package client imports 6 packages (graph) and is imported by 3 packages. Updated 2019-10-10. Refresh now. Tools for package owners.