Mixer Adapter Model
This package defines the types that are used when creating Mixer templates. ValueType
defined in this pacakge is also used by adapters to know the underlying datatype of the instance fields.
DNSName
DNSName is used inside templates for fields that are of ValueType “DNS_NAME”
Duration
Duration is used inside templates for fields that are of ValueType “DURATION”
EmailAddress
EmailAddress is used inside templates for fields that are of ValueType “EMAIL_ADDRESS” DO NOT USE !! Under Development
IPAddress
IPAddress is used inside templates for fields that are of ValueType “IP_ADDRESS”
TemplateVariety
The available varieties of templates, controlling the semantics of what an adapter does with each instance.
Name | Description |
---|---|
TEMPLATE_VARIETY_CHECK | Makes the template applicable for Mixer’s check calls. |
TEMPLATE_VARIETY_REPORT | Makes the template applicable for Mixer’s report calls. |
TEMPLATE_VARIETY_QUOTA | Makes the template applicable for Mixer’s quota calls. |
TEMPLATE_VARIETY_ATTRIBUTE_GENERATOR | Makes the template applicable for Mixer’s quota calls. |
TimeStamp
TimeStamp is used inside templates for fields that are of ValueType “TIMESTAMP”
Uri
Uri is used inside templates for fields that are of ValueType “URI” DO NOT USE ! Under Development
Value
Value is used inside templates for fields that have dynamic types. The actual datatype of the field depends on the datatype of the expression used in the operator configuration.
ValueType
ValueType describes the types that values in the Istio system can take. These are used to describe the type of Attributes at run time, describe the type of the result of evaluating an expression, and to describe the runtime type of fields of other descriptors.
Name | Description |
---|---|
VALUE_TYPE_UNSPECIFIED | Invalid, default value. |
STRING | An undiscriminated variable-length string. |
INT64 | An undiscriminated 64-bit signed integer. |
DOUBLE | An undiscriminated 64-bit floating-point value. |
BOOL | An undiscriminated boolean value. |
TIMESTAMP | A point in time. |
IP_ADDRESS | An IP address. |
EMAIL_ADDRESS | An email address. |
URI | A URI. |
DNS_NAME | A DNS name. |
DURATION | A span between two points in time. |
STRING_MAP | A map string -> string, typically used by headers. |