v1beta1

package
v0.0.0-...-f6b6c41 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1beta1 is a generated protocol buffer package.

It is generated from these files:

policy/v1beta1/cfg.proto
policy/v1beta1/http_response.proto
policy/v1beta1/type.proto
policy/v1beta1/value_type.proto

It has these top-level messages:

AttributeManifest
Rule
Action
Instance
Handler
Connection
Sampling
RandomSampling
RateLimitSampling
FractionalPercent
Authentication
Tls
OAuth
Mutual
DirectHttpResponse
Value
IPAddress
Duration
TimeStamp
DNSName
EmailAddress
Uri

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCfg = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCfg   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthHttpResponse = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHttpResponse   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthType = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowType   = fmt.Errorf("proto: integer overflow")
)
View Source
var FractionalPercent_DenominatorType_name = map[int32]string{
	0: "HUNDRED",
	1: "TEN_THOUSAND",
}
View Source
var FractionalPercent_DenominatorType_value = map[string]int32{
	"HUNDRED":      0,
	"TEN_THOUSAND": 1,
}
View Source
var HttpStatusCode_name = map[int32]string{
	0:   "Empty",
	100: "Continue",
	200: "OK",
	201: "Created",
	202: "Accepted",
	203: "NonAuthoritativeInformation",
	204: "NoContent",
	205: "ResetContent",
	206: "PartialContent",
	207: "MultiStatus",
	208: "AlreadyReported",
	226: "IMUsed",
	300: "MultipleChoices",
	301: "MovedPermanently",
	302: "Found",
	303: "SeeOther",
	304: "NotModified",
	305: "UseProxy",
	307: "TemporaryRedirect",
	308: "PermanentRedirect",
	400: "BadRequest",
	401: "Unauthorized",
	402: "PaymentRequired",
	403: "Forbidden",
	404: "NotFound",
	405: "MethodNotAllowed",
	406: "NotAcceptable",
	407: "ProxyAuthenticationRequired",
	408: "RequestTimeout",
	409: "Conflict",
	410: "Gone",
	411: "LengthRequired",
	412: "PreconditionFailed",
	413: "PayloadTooLarge",
	414: "URITooLong",
	415: "UnsupportedMediaType",
	416: "RangeNotSatisfiable",
	417: "ExpectationFailed",
	421: "MisdirectedRequest",
	422: "UnprocessableEntity",
	423: "Locked",
	424: "FailedDependency",
	426: "UpgradeRequired",
	428: "PreconditionRequired",
	429: "TooManyRequests",
	431: "RequestHeaderFieldsTooLarge",
	500: "InternalServerError",
	501: "NotImplemented",
	502: "BadGateway",
	503: "ServiceUnavailable",
	504: "GatewayTimeout",
	505: "HTTPVersionNotSupported",
	506: "VariantAlsoNegotiates",
	507: "InsufficientStorage",
	508: "LoopDetected",
	510: "NotExtended",
	511: "NetworkAuthenticationRequired",
}
View Source
var HttpStatusCode_value = map[string]int32{
	"Empty":                         0,
	"Continue":                      100,
	"OK":                            200,
	"Created":                       201,
	"Accepted":                      202,
	"NonAuthoritativeInformation":   203,
	"NoContent":                     204,
	"ResetContent":                  205,
	"PartialContent":                206,
	"MultiStatus":                   207,
	"AlreadyReported":               208,
	"IMUsed":                        226,
	"MultipleChoices":               300,
	"MovedPermanently":              301,
	"Found":                         302,
	"SeeOther":                      303,
	"NotModified":                   304,
	"UseProxy":                      305,
	"TemporaryRedirect":             307,
	"PermanentRedirect":             308,
	"BadRequest":                    400,
	"Unauthorized":                  401,
	"PaymentRequired":               402,
	"Forbidden":                     403,
	"NotFound":                      404,
	"MethodNotAllowed":              405,
	"NotAcceptable":                 406,
	"ProxyAuthenticationRequired":   407,
	"RequestTimeout":                408,
	"Conflict":                      409,
	"Gone":                          410,
	"LengthRequired":                411,
	"PreconditionFailed":            412,
	"PayloadTooLarge":               413,
	"URITooLong":                    414,
	"UnsupportedMediaType":          415,
	"RangeNotSatisfiable":           416,
	"ExpectationFailed":             417,
	"MisdirectedRequest":            421,
	"UnprocessableEntity":           422,
	"Locked":                        423,
	"FailedDependency":              424,
	"UpgradeRequired":               426,
	"PreconditionRequired":          428,
	"TooManyRequests":               429,
	"RequestHeaderFieldsTooLarge":   431,
	"InternalServerError":           500,
	"NotImplemented":                501,
	"BadGateway":                    502,
	"ServiceUnavailable":            503,
	"GatewayTimeout":                504,
	"HTTPVersionNotSupported":       505,
	"VariantAlsoNegotiates":         506,
	"InsufficientStorage":           507,
	"LoopDetected":                  508,
	"NotExtended":                   510,
	"NetworkAuthenticationRequired": 511,
}
View Source
var Rule_HeaderOperationTemplate_Operation_name = map[int32]string{
	0: "REPLACE",
	1: "REMOVE",
	2: "APPEND",
}
View Source
var Rule_HeaderOperationTemplate_Operation_value = map[string]int32{
	"REPLACE": 0,
	"REMOVE":  1,
	"APPEND":  2,
}
View Source
var Tls_AuthHeader_name = map[int32]string{
	0: "PLAIN",
	1: "BEARER",
}
View Source
var Tls_AuthHeader_value = map[string]int32{
	"PLAIN":  0,
	"BEARER": 1,
}
View Source
var ValueType_name = map[int32]string{
	0:  "VALUE_TYPE_UNSPECIFIED",
	1:  "STRING",
	2:  "INT64",
	3:  "DOUBLE",
	4:  "BOOL",
	5:  "TIMESTAMP",
	6:  "IP_ADDRESS",
	7:  "EMAIL_ADDRESS",
	8:  "URI",
	9:  "DNS_NAME",
	10: "DURATION",
	11: "STRING_MAP",
}
View Source
var ValueType_value = map[string]int32{
	"VALUE_TYPE_UNSPECIFIED": 0,
	"STRING":                 1,
	"INT64":                  2,
	"DOUBLE":                 3,
	"BOOL":                   4,
	"TIMESTAMP":              5,
	"IP_ADDRESS":             6,
	"EMAIL_ADDRESS":          7,
	"URI":                    8,
	"DNS_NAME":               9,
	"DURATION":               10,
	"STRING_MAP":             11,
}

Functions

This section is empty.

Types

type Action

type Action struct {
	// Required. Fully qualified name of the handler to invoke.
	// Must match the `name` of a [Handler][istio.policy.v1beta1.Handler.name].
	Handler string `protobuf:"bytes,2,opt,name=handler,proto3" json:"handler,omitempty"`
	// Required. Each value must match the fully qualified name of the
	// [Instance][istio.policy.v1beta1.Instance.name]s.
	// Referenced instances are evaluated by resolving the attributes/literals for all the fields.
	// The constructed objects are then passed to the `handler` referenced within this action.
	Instances []string `protobuf:"bytes,3,rep,name=instances" json:"instances,omitempty"`
	// Optional. A handle to refer to the results of the action.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
}

Action describes which Handler[istio.policy.v1beta1.Handler] to invoke and what data to pass to it for processing.

The following example instructs Mixer to invoke 'prometheus-handler' handler and pass it the object constructed using the instance 'RequestCountByService'.

```yaml

handler: prometheus-handler
instances:
- RequestCountByService

```

func (*Action) Descriptor

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

func (*Action) Equal

func (this *Action) Equal(that interface{}) bool

func (*Action) GetHandler

func (m *Action) GetHandler() string

func (*Action) GetInstances

func (m *Action) GetInstances() []string

func (*Action) GetName

func (m *Action) GetName() string

func (*Action) GoString

func (this *Action) GoString() string

func (*Action) Marshal

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

func (*Action) MarshalTo

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

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) Reset

func (m *Action) Reset()

func (*Action) Size

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

func (*Action) String

func (this *Action) String() string

func (*Action) Unmarshal

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

type AttributeManifest

type AttributeManifest struct {
	// Optional. The revision of this document. Assigned by server.
	Revision string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// Required. Name of the component producing these attributes. This can be
	// the proxy (with the canonical name "istio-proxy") or the name of an
	// `attributes` kind adapter in Mixer.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The set of attributes this Istio component will be responsible for producing at runtime.
	// We map from attribute name to the attribute's specification. The name of an attribute,
	// which is how attributes are referred to in aspect configuration, must conform to:
	//
	//     Name = IDENT { SEPARATOR IDENT };
	//
	// Where `IDENT` must match the regular expression `[a-z][a-z0-9]+` and `SEPARATOR` must
	// match the regular expression `[\.-]`.
	//
	// Attribute names must be unique within a single Istio deployment. The set of canonical
	// attributes are described at https://istio.io/docs/reference/attribute-vocabulary.html.
	// Attributes not in that list should be named with a component-specific suffix such as
	// request.count-my.component.
	Attributes map[string]*AttributeManifest_AttributeInfo `` /* 147-byte string literal not displayed */
}

AttributeManifest describes a set of Attributes produced by some component of an Istio deployment.

func (*AttributeManifest) Descriptor

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

func (*AttributeManifest) Equal

func (this *AttributeManifest) Equal(that interface{}) bool

func (*AttributeManifest) GetAttributes

func (*AttributeManifest) GetName

func (m *AttributeManifest) GetName() string

func (*AttributeManifest) GetRevision

func (m *AttributeManifest) GetRevision() string

func (*AttributeManifest) GoString

func (this *AttributeManifest) GoString() string

func (*AttributeManifest) Marshal

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

func (*AttributeManifest) MarshalTo

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

func (*AttributeManifest) ProtoMessage

func (*AttributeManifest) ProtoMessage()

func (*AttributeManifest) Reset

func (m *AttributeManifest) Reset()

func (*AttributeManifest) Size

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

func (*AttributeManifest) String

func (this *AttributeManifest) String() string

func (*AttributeManifest) Unmarshal

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

type AttributeManifest_AttributeInfo

type AttributeManifest_AttributeInfo struct {
	// Optional. A human-readable description of the attribute's purpose.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Required. The type of data carried by this attribute.
	ValueType ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=istio.policy.v1beta1.ValueType" json:"value_type,omitempty"`
}

AttributeInfo describes the schema of an Istio `Attribute`.

Istio Attributes

Istio uses `attributes` to describe runtime activities of Istio services. An Istio attribute carries a specific piece of information about an activity, such as the error code of an API request, the latency of an API request, or the original IP address of a TCP connection. The attributes are often generated and consumed by different services. For example, a frontend service can generate an authenticated user attribute and pass it to a backend service for access control purpose.

To simplify the system and improve developer experience, Istio uses shared attribute definitions across all components. For example, the same authenticated user attribute will be used for logging, monitoring, analytics, billing, access control, auditing. Many Istio components provide their functionality by collecting, generating, and operating on attributes. For example, the proxy collects the error code attribute, and the logging stores it into a log.

Design

Each Istio attribute must conform to an `AttributeInfo` in an `AttributeManifest` in the current Istio deployment at runtime. An [`AttributeInfo`][istio.policy.v1beta1] is used to define an attribute's metadata: the type of its value and a detailed description that explains the semantics of the attribute type. Each attribute's name is globally unique; in other words an attribute name can only appear once across all manifests.

The runtime presentation of an attribute is intentionally left out of this specification, because passing attribute using JSON, XML, or Protocol Buffers does not change the semantics of the attribute. Different implementations can choose different representations based on their needs.

HTTP Mapping

Because many systems already have REST APIs, it makes sense to define a standard HTTP mapping for Istio attributes that are compatible with typical REST APIs. The design is to map one attribute to one HTTP header, the attribute name and value becomes the HTTP header name and value. The actual encoding scheme will be decided later.

func (*AttributeManifest_AttributeInfo) Descriptor

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

func (*AttributeManifest_AttributeInfo) Equal

func (this *AttributeManifest_AttributeInfo) Equal(that interface{}) bool

func (*AttributeManifest_AttributeInfo) GetDescription

func (m *AttributeManifest_AttributeInfo) GetDescription() string

func (*AttributeManifest_AttributeInfo) GetValueType

func (m *AttributeManifest_AttributeInfo) GetValueType() ValueType

func (*AttributeManifest_AttributeInfo) GoString

func (this *AttributeManifest_AttributeInfo) GoString() string

func (*AttributeManifest_AttributeInfo) Marshal

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

func (*AttributeManifest_AttributeInfo) MarshalTo

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

func (*AttributeManifest_AttributeInfo) ProtoMessage

func (*AttributeManifest_AttributeInfo) ProtoMessage()

func (*AttributeManifest_AttributeInfo) Reset

func (*AttributeManifest_AttributeInfo) Size

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

func (*AttributeManifest_AttributeInfo) String

func (this *AttributeManifest_AttributeInfo) String() string

func (*AttributeManifest_AttributeInfo) Unmarshal

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

type Authentication

type Authentication struct {
	// Types that are valid to be assigned to AuthType:
	//	*Authentication_Tls
	//	*Authentication_Mutual
	AuthType isAuthentication_AuthType `protobuf_oneof:"auth_type"`
}

Authentication allows the operator to specify the authentication of connections to out-of-process infrastructure backend.

func (*Authentication) Descriptor

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

func (*Authentication) Equal

func (this *Authentication) Equal(that interface{}) bool

func (*Authentication) GetAuthType

func (m *Authentication) GetAuthType() isAuthentication_AuthType

func (*Authentication) GetMutual

func (m *Authentication) GetMutual() *Mutual

func (*Authentication) GetTls

func (m *Authentication) GetTls() *Tls

func (*Authentication) GoString

func (this *Authentication) GoString() string

func (*Authentication) Marshal

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

func (*Authentication) MarshalTo

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

func (*Authentication) ProtoMessage

func (*Authentication) ProtoMessage()

func (*Authentication) Reset

func (m *Authentication) Reset()

func (*Authentication) Size

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

func (*Authentication) String

func (this *Authentication) String() string

func (*Authentication) Unmarshal

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

func (*Authentication) XXX_OneofFuncs

func (*Authentication) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Authentication_Mutual

type Authentication_Mutual struct {
	Mutual *Mutual `protobuf:"bytes,2,opt,name=mutual,oneof"`
}

func (*Authentication_Mutual) Equal

func (this *Authentication_Mutual) Equal(that interface{}) bool

func (*Authentication_Mutual) GoString

func (this *Authentication_Mutual) GoString() string

func (*Authentication_Mutual) MarshalTo

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

func (*Authentication_Mutual) Size

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

func (*Authentication_Mutual) String

func (this *Authentication_Mutual) String() string

type Authentication_Tls

type Authentication_Tls struct {
	Tls *Tls `protobuf:"bytes,1,opt,name=tls,oneof"`
}

func (*Authentication_Tls) Equal

func (this *Authentication_Tls) Equal(that interface{}) bool

func (*Authentication_Tls) GoString

func (this *Authentication_Tls) GoString() string

func (*Authentication_Tls) MarshalTo

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

func (*Authentication_Tls) Size

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

func (*Authentication_Tls) String

func (this *Authentication_Tls) String() string

type Connection

type Connection struct {
	// The address of the backend.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// Timeout for remote calls to the backend.
	Timeout *time.Duration `protobuf:"bytes,3,opt,name=timeout,stdduration" json:"timeout,omitempty"`
	// Auth config for the connection to the backend. If omitted, plain text will
	// be used.
	Authentication *Authentication `protobuf:"bytes,4,opt,name=authentication" json:"authentication,omitempty"`
}

Connection allows the operator to specify the endpoint for out-of-process infrastructure backend. Connection is part of the handler custom resource and is specified alongside adapter specific configuration.

func (*Connection) Descriptor

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

func (*Connection) Equal

func (this *Connection) Equal(that interface{}) bool

func (*Connection) GetAddress

func (m *Connection) GetAddress() string

func (*Connection) GetAuthentication

func (m *Connection) GetAuthentication() *Authentication

func (*Connection) GetTimeout

func (m *Connection) GetTimeout() *time.Duration

func (*Connection) GoString

func (this *Connection) GoString() string

func (*Connection) Marshal

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

func (*Connection) MarshalTo

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

func (*Connection) ProtoMessage

func (*Connection) ProtoMessage()

func (*Connection) Reset

func (m *Connection) Reset()

func (*Connection) Size

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

func (*Connection) String

func (this *Connection) String() string

func (*Connection) Unmarshal

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

type DNSName

type DNSName struct {
	// DNSName encoded as string.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

An instance field of type DNSName denotes that the expression for the field must evalaute to [ValueType.DNS_NAME][istio.policy.v1beta1.ValueType.DNS_NAME]

Objects of type DNSName are also passed to the adapters during request-time for the instance fields of type DNSName

func (*DNSName) Descriptor

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

func (*DNSName) Equal

func (this *DNSName) Equal(that interface{}) bool

func (*DNSName) GetValue

func (m *DNSName) GetValue() string

func (*DNSName) GoString

func (this *DNSName) GoString() string

func (*DNSName) Marshal

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

func (*DNSName) MarshalTo

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

func (*DNSName) ProtoMessage

func (*DNSName) ProtoMessage()

func (*DNSName) Reset

func (m *DNSName) Reset()

func (*DNSName) Size

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

func (*DNSName) String

func (this *DNSName) String() string

func (*DNSName) Unmarshal

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

type DirectHttpResponse

type DirectHttpResponse struct {
	// Optional HTTP status code. If not set, RPC error code is used.
	Code HttpStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=istio.policy.v1beta1.HttpStatusCode" json:"code,omitempty"`
	// HTTP response body.
	Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// Optional HTTP response headers.
	Headers map[string]string `` /* 148-byte string literal not displayed */
}

Direct HTTP response for a client-facing error message which can be attached to an RPC error.

func (*DirectHttpResponse) Descriptor

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

func (*DirectHttpResponse) Equal

func (this *DirectHttpResponse) Equal(that interface{}) bool

func (*DirectHttpResponse) GetBody

func (m *DirectHttpResponse) GetBody() string

func (*DirectHttpResponse) GetCode

func (m *DirectHttpResponse) GetCode() HttpStatusCode

func (*DirectHttpResponse) GetHeaders

func (m *DirectHttpResponse) GetHeaders() map[string]string

func (*DirectHttpResponse) GoString

func (this *DirectHttpResponse) GoString() string

func (*DirectHttpResponse) Marshal

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

func (*DirectHttpResponse) MarshalTo

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

func (*DirectHttpResponse) ProtoMessage

func (*DirectHttpResponse) ProtoMessage()

func (*DirectHttpResponse) Reset

func (m *DirectHttpResponse) Reset()

func (*DirectHttpResponse) Size

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

func (*DirectHttpResponse) String

func (this *DirectHttpResponse) String() string

func (*DirectHttpResponse) Unmarshal

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

type Duration

type Duration struct {
	// Duration encoded as google.protobuf.Duration.
	Value *google_protobuf2.Duration `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

An instance field of type Duration denotes that the expression for the field must evalaute to [ValueType.DURATION][istio.policy.v1beta1.ValueType.DURATION]

Objects of type Duration are also passed to the adapters during request-time for the instance fields of type Duration

func (*Duration) Descriptor

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

func (*Duration) Equal

func (this *Duration) Equal(that interface{}) bool

func (*Duration) GetValue

func (m *Duration) GetValue() *google_protobuf2.Duration

func (*Duration) GoString

func (this *Duration) GoString() string

func (*Duration) Marshal

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

func (*Duration) MarshalTo

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

func (*Duration) ProtoMessage

func (*Duration) ProtoMessage()

func (*Duration) Reset

func (m *Duration) Reset()

func (*Duration) Size

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

func (*Duration) String

func (this *Duration) String() string

func (*Duration) Unmarshal

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

type EmailAddress

type EmailAddress struct {
	// EmailAddress encoded as string.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

DO NOT USE !! Under Development An instance field of type EmailAddress denotes that the expression for the field must evalaute to [ValueType.EMAIL_ADDRESS][istio.policy.v1beta1.ValueType.EMAIL_ADDRESS]

Objects of type EmailAddress are also passed to the adapters during request-time for the instance fields of type EmailAddress

func (*EmailAddress) Descriptor

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

func (*EmailAddress) Equal

func (this *EmailAddress) Equal(that interface{}) bool

func (*EmailAddress) GetValue

func (m *EmailAddress) GetValue() string

func (*EmailAddress) GoString

func (this *EmailAddress) GoString() string

func (*EmailAddress) Marshal

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

func (*EmailAddress) MarshalTo

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

func (*EmailAddress) ProtoMessage

func (*EmailAddress) ProtoMessage()

func (*EmailAddress) Reset

func (m *EmailAddress) Reset()

func (*EmailAddress) Size

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

func (*EmailAddress) String

func (this *EmailAddress) String() string

func (*EmailAddress) Unmarshal

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

type FractionalPercent

type FractionalPercent struct {
	// Specifies the numerator. Defaults to 0.
	Numerator uint32 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
	// Specifies the denominator. If the denominator specified is less than the numerator, the final
	// fractional percentage is capped at 1 (100%).
	Denominator FractionalPercent_DenominatorType `` /* 136-byte string literal not displayed */
}

$hide_from_docs A fractional percentage is used in cases in which for performance reasons performing floating point to integer conversions during randomness calculations is undesirable. The message includes both a numerator and denominator that together determine the final fractional value.

* **Example**: 1/100 = 1%. * **Example**: 3/10000 = 0.03%.

func (*FractionalPercent) Descriptor

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

func (*FractionalPercent) Equal

func (this *FractionalPercent) Equal(that interface{}) bool

func (*FractionalPercent) GetDenominator

func (*FractionalPercent) GetNumerator

func (m *FractionalPercent) GetNumerator() uint32

func (*FractionalPercent) GoString

func (this *FractionalPercent) GoString() string

func (*FractionalPercent) Marshal

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

func (*FractionalPercent) MarshalTo

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

func (*FractionalPercent) ProtoMessage

func (*FractionalPercent) ProtoMessage()

func (*FractionalPercent) Reset

func (m *FractionalPercent) Reset()

func (*FractionalPercent) Size

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

func (*FractionalPercent) String

func (this *FractionalPercent) String() string

func (*FractionalPercent) Unmarshal

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

type FractionalPercent_DenominatorType

type FractionalPercent_DenominatorType int32

Fraction percentages support several fixed denominator values.

const (
	// 100.
	//
	// **Example**: 1/100 = 1%.
	HUNDRED FractionalPercent_DenominatorType = 0
	// 10,000.
	//
	// **Example**: 1/10000 = 0.01%.
	TEN_THOUSAND FractionalPercent_DenominatorType = 1
)

func (FractionalPercent_DenominatorType) EnumDescriptor

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

func (FractionalPercent_DenominatorType) String

type Handler

type Handler struct {
	// Required. Must be unique in the entire mixer configuration. Used by [Actions][istio.policy.v1beta1.Action.handler]
	// to refer to this handler.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The name of the compiled in adapter this handler instantiates. For referencing non compiled-in
	// adapters, use the `adapter` field instead.
	//
	// The value must match the name of the available adapter Mixer is built with. An adapter's name is typically a
	// constant in its code.
	CompiledAdapter string `protobuf:"bytes,67794676,opt,name=compiled_adapter,json=compiledAdapter,proto3" json:"compiled_adapter,omitempty"`
	// Required. The name of a specific adapter implementation. For referencing compiled-in
	// adapters, use the `compiled_adapter` field instead.
	//
	// An adapter's implementation name is typically a constant in its code.
	Adapter string `protobuf:"bytes,2,opt,name=adapter,proto3" json:"adapter,omitempty"`
	// Optional. Depends on adapter implementation. Struct representation of a
	// proto defined by the adapter implementation; this varies depending on the value of field `adapter`.
	Params *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=params" json:"params,omitempty"`
	// Optional. Information on how to connect to the out-of-process adapter.
	// This is used if the adapter is not compiled into Mixer binary and is running as a separate process.
	Connection *Connection `protobuf:"bytes,4,opt,name=connection" json:"connection,omitempty"`
}

Handler allows the operator to configure a specific adapter implementation. Each adapter implementation defines its own `params` proto.

In the following example we define a `metrics` handler for the `prometheus` adapter. The example is in the form of a kubernetes resource: * The `metadata.name` is the name of the handler * The `kind` refers to the adapter name * The `spec` block represents adapter-specific configuration as well as the connection information

```yaml # Sample-1: No connection specified (for compiled in adapters) # Note: if connection information is not specified, the adapter configuration is directly inside # `spec` block. This is going to be DEPRECATED in favor of Sample-2 apiVersion: "config.istio.io/v1alpha2" kind: prometheus metadata:

name: handler
namespace: istio-system

spec:

metrics:
- name: request_count
  instance_name: requestcount.metric.istio-system
  kind: COUNTER
  label_names:
  - source_service
  - source_version
  - destination_service
  - destination_version

--- # Sample-2: With connection information (for out-of-process adapters) # Note: Unlike sample-1, the adapter configuration is parallel to `connection` and is nested inside `param` block. apiVersion: "config.istio.io/v1alpha2" kind: prometheus metadata:

name: handler
namespace: istio-system

spec:

param:
  metrics:
  - name: request_count
    instance_name: requestcount.metric.istio-system
    kind: COUNTER
    label_names:
    - source_service
    - source_version
    - destination_service
    - destination_version
connection:
  address: localhost:8090

--- ```

func (*Handler) Descriptor

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

func (*Handler) Equal

func (this *Handler) Equal(that interface{}) bool

func (*Handler) GetAdapter

func (m *Handler) GetAdapter() string

func (*Handler) GetCompiledAdapter

func (m *Handler) GetCompiledAdapter() string

func (*Handler) GetConnection

func (m *Handler) GetConnection() *Connection

func (*Handler) GetName

func (m *Handler) GetName() string

func (*Handler) GetParams

func (m *Handler) GetParams() *google_protobuf1.Struct

func (*Handler) GoString

func (this *Handler) GoString() string

func (*Handler) Marshal

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

func (*Handler) MarshalTo

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

func (*Handler) ProtoMessage

func (*Handler) ProtoMessage()

func (*Handler) Reset

func (m *Handler) Reset()

func (*Handler) Size

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

func (*Handler) String

func (this *Handler) String() string

func (*Handler) Unmarshal

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

type HttpStatusCode

type HttpStatusCode int32

HTTP response codes. For more details: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

const (
	// Empty - This code not part of the HTTP status code specification, but it is needed for proto
	// `enum` type.
	Empty                         HttpStatusCode = 0
	Continue                      HttpStatusCode = 100
	OK                            HttpStatusCode = 200
	Created                       HttpStatusCode = 201
	Accepted                      HttpStatusCode = 202
	NonAuthoritativeInformation   HttpStatusCode = 203
	NoContent                     HttpStatusCode = 204
	ResetContent                  HttpStatusCode = 205
	PartialContent                HttpStatusCode = 206
	MultiStatus                   HttpStatusCode = 207
	AlreadyReported               HttpStatusCode = 208
	IMUsed                        HttpStatusCode = 226
	MultipleChoices               HttpStatusCode = 300
	MovedPermanently              HttpStatusCode = 301
	Found                         HttpStatusCode = 302
	SeeOther                      HttpStatusCode = 303
	NotModified                   HttpStatusCode = 304
	UseProxy                      HttpStatusCode = 305
	TemporaryRedirect             HttpStatusCode = 307
	PermanentRedirect             HttpStatusCode = 308
	BadRequest                    HttpStatusCode = 400
	Unauthorized                  HttpStatusCode = 401
	PaymentRequired               HttpStatusCode = 402
	Forbidden                     HttpStatusCode = 403
	NotFound                      HttpStatusCode = 404
	MethodNotAllowed              HttpStatusCode = 405
	NotAcceptable                 HttpStatusCode = 406
	ProxyAuthenticationRequired   HttpStatusCode = 407
	RequestTimeout                HttpStatusCode = 408
	Conflict                      HttpStatusCode = 409
	Gone                          HttpStatusCode = 410
	LengthRequired                HttpStatusCode = 411
	PreconditionFailed            HttpStatusCode = 412
	PayloadTooLarge               HttpStatusCode = 413
	URITooLong                    HttpStatusCode = 414
	UnsupportedMediaType          HttpStatusCode = 415
	RangeNotSatisfiable           HttpStatusCode = 416
	ExpectationFailed             HttpStatusCode = 417
	MisdirectedRequest            HttpStatusCode = 421
	UnprocessableEntity           HttpStatusCode = 422
	Locked                        HttpStatusCode = 423
	FailedDependency              HttpStatusCode = 424
	UpgradeRequired               HttpStatusCode = 426
	PreconditionRequired          HttpStatusCode = 428
	TooManyRequests               HttpStatusCode = 429
	RequestHeaderFieldsTooLarge   HttpStatusCode = 431
	InternalServerError           HttpStatusCode = 500
	NotImplemented                HttpStatusCode = 501
	BadGateway                    HttpStatusCode = 502
	ServiceUnavailable            HttpStatusCode = 503
	GatewayTimeout                HttpStatusCode = 504
	HTTPVersionNotSupported       HttpStatusCode = 505
	VariantAlsoNegotiates         HttpStatusCode = 506
	InsufficientStorage           HttpStatusCode = 507
	LoopDetected                  HttpStatusCode = 508
	NotExtended                   HttpStatusCode = 510
	NetworkAuthenticationRequired HttpStatusCode = 511
)

func (HttpStatusCode) EnumDescriptor

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

func (HttpStatusCode) String

func (x HttpStatusCode) String() string

type IPAddress

type IPAddress struct {
	// IPAddress encoded as bytes.
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

An instance field of type IPAddress denotes that the expression for the field must evalaute to [ValueType.IP_ADDRESS][istio.policy.v1beta1.ValueType.IP_ADDRESS]

Objects of type IPAddress are also passed to the adapters during request-time for the instance fields of type IPAddress

func (*IPAddress) Descriptor

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

func (*IPAddress) Equal

func (this *IPAddress) Equal(that interface{}) bool

func (*IPAddress) GetValue

func (m *IPAddress) GetValue() []byte

func (*IPAddress) GoString

func (this *IPAddress) GoString() string

func (*IPAddress) Marshal

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

func (*IPAddress) MarshalTo

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

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) Reset

func (m *IPAddress) Reset()

func (*IPAddress) Size

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

func (*IPAddress) String

func (this *IPAddress) String() string

func (*IPAddress) Unmarshal

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

type Instance

type Instance struct {
	// Required. The name of this instance
	//
	// Must be unique amongst other Instances in scope. Used by [Action][istio.policy.v1beta1.Action] to refer
	// to an instance produced by this instance.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The name of the compiled in template this instance creates instances for. For referencing non compiled-in
	// templates, use the `template` field instead.
	//
	// The value must match the name of the available template Mixer is built with.
	CompiledTemplate string `protobuf:"bytes,67794676,opt,name=compiled_template,json=compiledTemplate,proto3" json:"compiled_template,omitempty"`
	// Required. The name of the template this instance creates instances for. For referencing compiled-in
	// templates, use the `compiled_template` field instead.
	//
	// The value must match the name of the available template in scope.
	Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// Required. Depends on referenced template. Struct representation of a
	// proto defined by the template; this varies depending on the value of field `template`.
	Params *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=params" json:"params,omitempty"`
	// Optional. Defines attribute bindings to map the output of attribute-producing adapters back into
	// the attribute space. The variable `output` refers to the output template instance produced
	// by the adapter.
	// The following example derives `source.namespace` from `source.uid` in the context of Kubernetes:
	// “`yaml
	// params:
	//   # Pass the required attribute data to the adapter
	//   source_uid: source.uid | ""
	// attribute_bindings:
	//   # Fill the new attributes from the adapter produced output
	//   source.namespace: output.source_namespace
	// “`
	AttributeBindings map[string]string `` /* 193-byte string literal not displayed */
}

An Instance tells Mixer how to create instances for particular template.

Instance is defined by the operator. Instance is defined relative to a known template. Their purpose is to tell Mixer how to use attributes or literals to produce instances of the specified template at runtime.

The following example instructs Mixer to construct an instance associated with template 'istio.mixer.adapter.metric.Metric'. It provides a mapping from the template's fields to expressions. Instances produced with this instance can be referenced by [Actions][istio.policy.v1beta1.Action] using name 'RequestCountByService'

```yaml

  • name: RequestCountByService template: istio.mixer.adapter.metric.Metric params: value: 1 dimensions: source: source.name destination_ip: destination.ip

```

func (*Instance) Descriptor

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

func (*Instance) Equal

func (this *Instance) Equal(that interface{}) bool

func (*Instance) GetAttributeBindings

func (m *Instance) GetAttributeBindings() map[string]string

func (*Instance) GetCompiledTemplate

func (m *Instance) GetCompiledTemplate() string

func (*Instance) GetName

func (m *Instance) GetName() string

func (*Instance) GetParams

func (m *Instance) GetParams() *google_protobuf1.Struct

func (*Instance) GetTemplate

func (m *Instance) GetTemplate() string

func (*Instance) GoString

func (this *Instance) GoString() string

func (*Instance) Marshal

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

func (*Instance) MarshalTo

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

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) Reset

func (m *Instance) Reset()

func (*Instance) Size

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

func (*Instance) String

func (this *Instance) String() string

func (*Instance) Unmarshal

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

type Mutual

type Mutual struct {
	// The path to the file holding the private key for mtls. If omitted, the
	// default mixer private key will be used.
	PrivateKey string `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// The path to the file holding client certificate for mtls. If omitted, the
	// default mixer certificates will be used.
	ClientCertificate string `protobuf:"bytes,2,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
	// The path to the file holding additional CA certificates that are needed to
	// verify the presented adapter certificates. By default mixer should already
	// include Istio CA certificates and system certificates in cert pool.
	CaCertificates string `protobuf:"bytes,3,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
}

Mutual let operator specify tls config for mixer as client if mtls is used to secure connection to adapter backend.

func (*Mutual) Descriptor

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

func (*Mutual) Equal

func (this *Mutual) Equal(that interface{}) bool

func (*Mutual) GetCaCertificates

func (m *Mutual) GetCaCertificates() string

func (*Mutual) GetClientCertificate

func (m *Mutual) GetClientCertificate() string

func (*Mutual) GetPrivateKey

func (m *Mutual) GetPrivateKey() string

func (*Mutual) GoString

func (this *Mutual) GoString() string

func (*Mutual) Marshal

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

func (*Mutual) MarshalTo

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

func (*Mutual) ProtoMessage

func (*Mutual) ProtoMessage()

func (*Mutual) Reset

func (m *Mutual) Reset()

func (*Mutual) Size

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

func (*Mutual) String

func (this *Mutual) String() string

func (*Mutual) Unmarshal

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

type OAuth

type OAuth struct {
	// REQUIRED. OAuth client id for mixer.
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// REQUIRED. The path to the file holding the client secret for oauth.
	ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// REQUIRED. The Resource server's token endpoint URL.
	TokenUrl string `protobuf:"bytes,3,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
	// List of requested permissions.
	Scopes []string `protobuf:"bytes,4,rep,name=scopes" json:"scopes,omitempty"`
	// Additional parameters for requests to the token endpoint.
	EndpointParams map[string]string `` /* 184-byte string literal not displayed */
}

OAuth let operator specify config to fetch access token via oauth when using TLS for connection to the backend.

func (*OAuth) Descriptor

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

func (*OAuth) Equal

func (this *OAuth) Equal(that interface{}) bool

func (*OAuth) GetClientId

func (m *OAuth) GetClientId() string

func (*OAuth) GetClientSecret

func (m *OAuth) GetClientSecret() string

func (*OAuth) GetEndpointParams

func (m *OAuth) GetEndpointParams() map[string]string

func (*OAuth) GetScopes

func (m *OAuth) GetScopes() []string

func (*OAuth) GetTokenUrl

func (m *OAuth) GetTokenUrl() string

func (*OAuth) GoString

func (this *OAuth) GoString() string

func (*OAuth) Marshal

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

func (*OAuth) MarshalTo

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

func (*OAuth) ProtoMessage

func (*OAuth) ProtoMessage()

func (*OAuth) Reset

func (m *OAuth) Reset()

func (*OAuth) Size

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

func (*OAuth) String

func (this *OAuth) String() string

func (*OAuth) Unmarshal

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

type RandomSampling

type RandomSampling struct {
	// Specifies an attribute expression to use to override the numerator in the `percent_sampled` field.
	// If this value is set, but no value is found OR if that value is not a numeric value, then
	// the derived sampling rate will be 0 (meaning no `Action`s are executed for a `Rule`).
	AttributeExpression string `protobuf:"bytes,1,opt,name=attribute_expression,json=attributeExpression,proto3" json:"attribute_expression,omitempty"`
	// The default sampling rate, expressed as a percentage. Defaults to 0% with a denominator
	// of 100.
	PercentSampled *FractionalPercent `protobuf:"bytes,2,opt,name=percent_sampled,json=percentSampled" json:"percent_sampled,omitempty"`
	// By default sampling will be based on the value of the request header `x-request-id`.
	// This behavior will cause consistent sampling across `Rule`s and for the full trace of a
	// request through a mesh (across hosts). If that value is not present and/or
	// `use_independent_randomness` is set to true, the sampling will be done based on the value of
	// attribute specified in `attribute_epxression`. If that attribute does not exist, the system
	// will behave as if the sampling rate was 0 (meaning no `Action`s are executed for a `Rule`).
	UseIndependentRandomness bool `` /* 136-byte string literal not displayed */
}

$hide_from_docs RandomSampling will filter based on the comparison of a randomly-generated value against the threshold provided.

Example: To restrict the execution of Rule actions to only 12.5% of requests, the `sampling_rate` would be set `12.5`.

This sampling configuration is meant to closely match the access log RuntimeFilter configuration supported by Envoy: https://github.com/envoyproxy/data-plane-api/blob/master/envoy/config/filter/accesslog/v2/accesslog.proto#L113

func (*RandomSampling) Descriptor

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

func (*RandomSampling) Equal

func (this *RandomSampling) Equal(that interface{}) bool

func (*RandomSampling) GetAttributeExpression

func (m *RandomSampling) GetAttributeExpression() string

func (*RandomSampling) GetPercentSampled

func (m *RandomSampling) GetPercentSampled() *FractionalPercent

func (*RandomSampling) GetUseIndependentRandomness

func (m *RandomSampling) GetUseIndependentRandomness() bool

func (*RandomSampling) GoString

func (this *RandomSampling) GoString() string

func (*RandomSampling) Marshal

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

func (*RandomSampling) MarshalTo

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

func (*RandomSampling) ProtoMessage

func (*RandomSampling) ProtoMessage()

func (*RandomSampling) Reset

func (m *RandomSampling) Reset()

func (*RandomSampling) Size

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

func (*RandomSampling) String

func (this *RandomSampling) String() string

func (*RandomSampling) Unmarshal

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

type RateLimitSampling

type RateLimitSampling struct {
	// Window in which to enforce the sampling rate.
	SamplingDuration time.Duration `protobuf:"bytes,1,opt,name=sampling_duration,json=samplingDuration,stdduration" json:"sampling_duration"`
	// Number of entries to allow during the `sampling_duration` before sampling is enforced.
	MaxUnsampledEntries int64 `protobuf:"varint,2,opt,name=max_unsampled_entries,json=maxUnsampledEntries,proto3" json:"max_unsampled_entries,omitempty"`
	// The rate at which to sample entries once the unsampled limit has been reached. Sampling will be enforced
	// as 1 per every `sampling_rate` entries allowed.
	SamplingRate int64 `protobuf:"varint,3,opt,name=sampling_rate,json=samplingRate,proto3" json:"sampling_rate,omitempty"`
}

$hide_from_docs RateLimitSampling provides the ability to limit the number of Rule action executions that occur over a period of time.

func (*RateLimitSampling) Descriptor

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

func (*RateLimitSampling) Equal

func (this *RateLimitSampling) Equal(that interface{}) bool

func (*RateLimitSampling) GetMaxUnsampledEntries

func (m *RateLimitSampling) GetMaxUnsampledEntries() int64

func (*RateLimitSampling) GetSamplingDuration

func (m *RateLimitSampling) GetSamplingDuration() time.Duration

func (*RateLimitSampling) GetSamplingRate

func (m *RateLimitSampling) GetSamplingRate() int64

func (*RateLimitSampling) GoString

func (this *RateLimitSampling) GoString() string

func (*RateLimitSampling) Marshal

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

func (*RateLimitSampling) MarshalTo

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

func (*RateLimitSampling) ProtoMessage

func (*RateLimitSampling) ProtoMessage()

func (*RateLimitSampling) Reset

func (m *RateLimitSampling) Reset()

func (*RateLimitSampling) Size

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

func (*RateLimitSampling) String

func (this *RateLimitSampling) String() string

func (*RateLimitSampling) Unmarshal

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

type Rule

type Rule struct {
	// Required. Match is an attribute based predicate. When Mixer receives a
	// request it evaluates the match expression and executes all the associated `actions`
	// if the match evaluates to true.
	//
	// A few example match:
	//
	// * an empty match evaluates to `true`
	// * `true`, a boolean literal; a rule with this match will always be executed
	// * `match(destination.service.host, "ratings.*)` selects any request targeting a service whose
	// name starts with "ratings"
	// * `attr1 == "20" && attr2 == "30"` logical AND, OR, and NOT are also available
	Match string `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	// Optional. The actions that will be executed when match evaluates to `true`.
	Actions []*Action `protobuf:"bytes,2,rep,name=actions" json:"actions,omitempty"`
	// Optional. Templatized operations on the request headers using values produced by the
	// rule actions. Require the check action result to be OK.
	RequestHeaderOperations []*Rule_HeaderOperationTemplate `protobuf:"bytes,3,rep,name=request_header_operations,json=requestHeaderOperations" json:"request_header_operations,omitempty"`
	// Optional. Templatized operations on the response headers using values produced by the
	// rule actions. Require the check action result to be OK.
	ResponseHeaderOperations []*Rule_HeaderOperationTemplate `` /* 128-byte string literal not displayed */
	// $hide_from_docs
	// Optional. Provides the ability to add a sampling configuration for Mixer rules. This sampling
	// will limit the scenarios in which the `actions` of the rule are executed. The sampling will
	// only take place after a `match` predicate has evaluated to true.
	//
	// Default behavior is no sampling (the `actions` are executed for all requests).
	Sampling *Sampling `protobuf:"bytes,5,opt,name=sampling" json:"sampling,omitempty"`
}

A Rule is a selector and a set of intentions to be executed when the selector is `true`

The following example instructs Mixer to invoke 'prometheus-handler' handler for all services and pass it the instance constructed using the 'RequestCountByService' instance.

```yaml

  • match: match(destination.service.host, "*") actions:
  • handler: prometheus-handler instances:
  • RequestCountByService

```

func (*Rule) Descriptor

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

func (*Rule) Equal

func (this *Rule) Equal(that interface{}) bool

func (*Rule) GetActions

func (m *Rule) GetActions() []*Action

func (*Rule) GetMatch

func (m *Rule) GetMatch() string

func (*Rule) GetRequestHeaderOperations

func (m *Rule) GetRequestHeaderOperations() []*Rule_HeaderOperationTemplate

func (*Rule) GetResponseHeaderOperations

func (m *Rule) GetResponseHeaderOperations() []*Rule_HeaderOperationTemplate

func (*Rule) GetSampling

func (m *Rule) GetSampling() *Sampling

func (*Rule) GoString

func (this *Rule) GoString() string

func (*Rule) Marshal

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

func (*Rule) MarshalTo

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

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) Size

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

func (*Rule) String

func (this *Rule) String() string

func (*Rule) Unmarshal

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

type Rule_HeaderOperationTemplate

type Rule_HeaderOperationTemplate struct {
	// Required. Header name literal value.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Header value expressions.
	Values []string `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"`
	// Optional. Header operation type. Default operation is to replace the value of the header by name.
	Operation Rule_HeaderOperationTemplate_Operation `` /* 137-byte string literal not displayed */
}

A template for an HTTP header manipulation. Values in the template are expressions that may reference action outputs by name. For example, if an action `x` produces an output with a field `f`, then the header value expressions may use attribute `x.output.f` to reference the field value:

```yaml request_header_operations:

  • name: x-istio-header values:
  • x.output.f

```

If the header value expression evaluates to an empty string, and the operation is to either replace or append a header, then the operation is not applied. This permits conditional behavior on behalf of the adapter to optionally modify the headers.

func (*Rule_HeaderOperationTemplate) Descriptor

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

func (*Rule_HeaderOperationTemplate) Equal

func (this *Rule_HeaderOperationTemplate) Equal(that interface{}) bool

func (*Rule_HeaderOperationTemplate) GetName

func (m *Rule_HeaderOperationTemplate) GetName() string

func (*Rule_HeaderOperationTemplate) GetOperation

func (*Rule_HeaderOperationTemplate) GetValues

func (m *Rule_HeaderOperationTemplate) GetValues() []string

func (*Rule_HeaderOperationTemplate) GoString

func (this *Rule_HeaderOperationTemplate) GoString() string

func (*Rule_HeaderOperationTemplate) Marshal

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

func (*Rule_HeaderOperationTemplate) MarshalTo

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

func (*Rule_HeaderOperationTemplate) ProtoMessage

func (*Rule_HeaderOperationTemplate) ProtoMessage()

func (*Rule_HeaderOperationTemplate) Reset

func (m *Rule_HeaderOperationTemplate) Reset()

func (*Rule_HeaderOperationTemplate) Size

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

func (*Rule_HeaderOperationTemplate) String

func (this *Rule_HeaderOperationTemplate) String() string

func (*Rule_HeaderOperationTemplate) Unmarshal

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

type Rule_HeaderOperationTemplate_Operation

type Rule_HeaderOperationTemplate_Operation int32

Header operation type.

const (
	// Replace a header by name.
	REPLACE Rule_HeaderOperationTemplate_Operation = 0
	// Remove a header by name. Values are ignored.
	REMOVE Rule_HeaderOperationTemplate_Operation = 1
	// Append values to the existing header values.
	APPEND Rule_HeaderOperationTemplate_Operation = 2
)

func (Rule_HeaderOperationTemplate_Operation) EnumDescriptor

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

func (Rule_HeaderOperationTemplate_Operation) String

type Sampling

type Sampling struct {
	// Optional. Provides filtering of actions based on random selection per request.
	Random *RandomSampling `protobuf:"bytes,1,opt,name=random" json:"random,omitempty"`
	// Optional. Provides filtering of actions based on number of requests observed within
	// a configured time window.
	RateLimit *RateLimitSampling `protobuf:"bytes,2,opt,name=rate_limit,json=rateLimit" json:"rate_limit,omitempty"`
}

$hide_from_docs Sampling provides configuration of sampling strategies for Rule actions. Multiple sampling strategies are supported. When multiple strategies are configured, a request must be selected by all configured sampling strategies.

func (*Sampling) Descriptor

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

func (*Sampling) Equal

func (this *Sampling) Equal(that interface{}) bool

func (*Sampling) GetRandom

func (m *Sampling) GetRandom() *RandomSampling

func (*Sampling) GetRateLimit

func (m *Sampling) GetRateLimit() *RateLimitSampling

func (*Sampling) GoString

func (this *Sampling) GoString() string

func (*Sampling) Marshal

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

func (*Sampling) MarshalTo

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

func (*Sampling) ProtoMessage

func (*Sampling) ProtoMessage()

func (*Sampling) Reset

func (m *Sampling) Reset()

func (*Sampling) Size

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

func (*Sampling) String

func (this *Sampling) String() string

func (*Sampling) Unmarshal

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

type TimeStamp

type TimeStamp struct {
	// TimeStamp encoded as google.protobuf.Timestamp.
	Value *google_protobuf3.Timestamp `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

An instance field of type TimeStamp denotes that the expression for the field must evalaute to [ValueType.TIMESTAMP][istio.policy.v1beta1.ValueType.TIMESTAMP]

Objects of type TimeStamp are also passed to the adapters during request-time for the instance fields of type TimeStamp

func (*TimeStamp) Descriptor

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

func (*TimeStamp) Equal

func (this *TimeStamp) Equal(that interface{}) bool

func (*TimeStamp) GetValue

func (m *TimeStamp) GetValue() *google_protobuf3.Timestamp

func (*TimeStamp) GoString

func (this *TimeStamp) GoString() string

func (*TimeStamp) Marshal

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

func (*TimeStamp) MarshalTo

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

func (*TimeStamp) ProtoMessage

func (*TimeStamp) ProtoMessage()

func (*TimeStamp) Reset

func (m *TimeStamp) Reset()

func (*TimeStamp) Size

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

func (*TimeStamp) String

func (this *TimeStamp) String() string

func (*TimeStamp) Unmarshal

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

type Tls

type Tls struct {
	// The path to the file holding additional CA certificates to well known
	// public certs.
	CaCertificates string `protobuf:"bytes,1,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
	// Specifies how to get access token for client authn and authz.
	//
	// Types that are valid to be assigned to TokenSource:
	//	*Tls_TokenPath
	//	*Tls_Oauth
	TokenSource isTls_TokenSource `protobuf_oneof:"token_source"`
	// Specifies how to pass access token to the adapter backend.
	//
	// Types that are valid to be assigned to TokenType:
	//	*Tls_AuthHeader_
	//	*Tls_CustomHeader
	TokenType isTls_TokenType `protobuf_oneof:"token_type"`
}

Tls let operator specify client authentication setting when TLS is used for connection to the backend.

func (*Tls) Descriptor

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

func (*Tls) Equal

func (this *Tls) Equal(that interface{}) bool

func (*Tls) GetAuthHeader

func (m *Tls) GetAuthHeader() Tls_AuthHeader

func (*Tls) GetCaCertificates

func (m *Tls) GetCaCertificates() string

func (*Tls) GetCustomHeader

func (m *Tls) GetCustomHeader() string

func (*Tls) GetOauth

func (m *Tls) GetOauth() *OAuth

func (*Tls) GetTokenPath

func (m *Tls) GetTokenPath() string

func (*Tls) GetTokenSource

func (m *Tls) GetTokenSource() isTls_TokenSource

func (*Tls) GetTokenType

func (m *Tls) GetTokenType() isTls_TokenType

func (*Tls) GoString

func (this *Tls) GoString() string

func (*Tls) Marshal

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

func (*Tls) MarshalTo

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

func (*Tls) ProtoMessage

func (*Tls) ProtoMessage()

func (*Tls) Reset

func (m *Tls) Reset()

func (*Tls) Size

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

func (*Tls) String

func (this *Tls) String() string

func (*Tls) Unmarshal

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

func (*Tls) XXX_OneofFuncs

func (*Tls) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Tls_AuthHeader

type Tls_AuthHeader int32

AuthHeader specifies how to pass access token with authorization header.

const (
	// Access token is passed in authorization header as what it is
	// (authorization: some-token).
	PLAIN Tls_AuthHeader = 0
	// Access token is passed to adapter as bearer token (i.e. authorization:
	// bearer some-token).
	BEARER Tls_AuthHeader = 1
)

func (Tls_AuthHeader) EnumDescriptor

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

func (Tls_AuthHeader) String

func (x Tls_AuthHeader) String() string

type Tls_AuthHeader_

type Tls_AuthHeader_ struct {
	AuthHeader Tls_AuthHeader `protobuf:"varint,4,opt,name=auth_header,json=authHeader,proto3,enum=istio.policy.v1beta1.Tls_AuthHeader,oneof"`
}

func (*Tls_AuthHeader_) Equal

func (this *Tls_AuthHeader_) Equal(that interface{}) bool

func (*Tls_AuthHeader_) GoString

func (this *Tls_AuthHeader_) GoString() string

func (*Tls_AuthHeader_) MarshalTo

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

func (*Tls_AuthHeader_) Size

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

func (*Tls_AuthHeader_) String

func (this *Tls_AuthHeader_) String() string

type Tls_CustomHeader

type Tls_CustomHeader struct {
	CustomHeader string `protobuf:"bytes,5,opt,name=custom_header,json=customHeader,proto3,oneof"`
}

func (*Tls_CustomHeader) Equal

func (this *Tls_CustomHeader) Equal(that interface{}) bool

func (*Tls_CustomHeader) GoString

func (this *Tls_CustomHeader) GoString() string

func (*Tls_CustomHeader) MarshalTo

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

func (*Tls_CustomHeader) Size

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

func (*Tls_CustomHeader) String

func (this *Tls_CustomHeader) String() string

type Tls_Oauth

type Tls_Oauth struct {
	Oauth *OAuth `protobuf:"bytes,3,opt,name=oauth,oneof"`
}

func (*Tls_Oauth) Equal

func (this *Tls_Oauth) Equal(that interface{}) bool

func (*Tls_Oauth) GoString

func (this *Tls_Oauth) GoString() string

func (*Tls_Oauth) MarshalTo

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

func (*Tls_Oauth) Size

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

func (*Tls_Oauth) String

func (this *Tls_Oauth) String() string

type Tls_TokenPath

type Tls_TokenPath struct {
	TokenPath string `protobuf:"bytes,2,opt,name=token_path,json=tokenPath,proto3,oneof"`
}

func (*Tls_TokenPath) Equal

func (this *Tls_TokenPath) Equal(that interface{}) bool

func (*Tls_TokenPath) GoString

func (this *Tls_TokenPath) GoString() string

func (*Tls_TokenPath) MarshalTo

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

func (*Tls_TokenPath) Size

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

func (*Tls_TokenPath) String

func (this *Tls_TokenPath) String() string

type Uri

type Uri struct {
	// Uri encoded as string.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

DO NOT USE !! Under Development An instance field of type Uri denotes that the expression for the field must evalaute to [ValueType.URI][istio.policy.v1beta1.ValueType.URI]

Objects of type Uri are also passed to the adapters during request-time for the instance fields of type Uri

func (*Uri) Descriptor

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

func (*Uri) Equal

func (this *Uri) Equal(that interface{}) bool

func (*Uri) GetValue

func (m *Uri) GetValue() string

func (*Uri) GoString

func (this *Uri) GoString() string

func (*Uri) Marshal

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

func (*Uri) MarshalTo

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

func (*Uri) ProtoMessage

func (*Uri) ProtoMessage()

func (*Uri) Reset

func (m *Uri) Reset()

func (*Uri) Size

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

func (*Uri) String

func (this *Uri) String() string

func (*Uri) Unmarshal

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

type Value

type Value struct {
	// Types that are valid to be assigned to Value:
	//	*Value_StringValue
	//	*Value_Int64Value
	//	*Value_DoubleValue
	//	*Value_BoolValue
	//	*Value_IpAddressValue
	//	*Value_TimestampValue
	//	*Value_DurationValue
	//	*Value_EmailAddressValue
	//	*Value_DnsNameValue
	//	*Value_UriValue
	Value isValue_Value `protobuf_oneof:"value"`
}

An instance field of type Value denotes that the expression for the field is of dynamic type and can evalaute to any ValueType[istio.policy.v1beta1.ValueType] enum values. For example, when authoring an instance configuration for a template that has a field `data` of type `istio.policy.v1beta1.Value`, both of the following expressions are valid `data: source.ip | ip("0.0.0.0")`, `data: request.id | ""`; the resulting type is either ValueType.IP_ADDRESS or ValueType.STRING for the two cases respectively.

Objects of type Value are also passed to the adapters during request-time. There is a 1:1 mapping between oneof fields in `Value` and enum values inside `ValueType`. Depending on the expression's evaluated `ValueType`, the equivalent oneof field in `Value` is populated by Mixer and passed to the adapters.

func (*Value) Descriptor

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

func (*Value) Equal

func (this *Value) Equal(that interface{}) bool

func (*Value) GetBoolValue

func (m *Value) GetBoolValue() bool

func (*Value) GetDnsNameValue

func (m *Value) GetDnsNameValue() *DNSName

func (*Value) GetDoubleValue

func (m *Value) GetDoubleValue() float64

func (*Value) GetDurationValue

func (m *Value) GetDurationValue() *Duration

func (*Value) GetEmailAddressValue

func (m *Value) GetEmailAddressValue() *EmailAddress

func (*Value) GetInt64Value

func (m *Value) GetInt64Value() int64

func (*Value) GetIpAddressValue

func (m *Value) GetIpAddressValue() *IPAddress

func (*Value) GetStringValue

func (m *Value) GetStringValue() string

func (*Value) GetTimestampValue

func (m *Value) GetTimestampValue() *TimeStamp

func (*Value) GetUriValue

func (m *Value) GetUriValue() *Uri

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) GoString

func (this *Value) GoString() string

func (*Value) Marshal

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

func (*Value) MarshalTo

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

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) Reset

func (m *Value) Reset()

func (*Value) Size

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

func (*Value) String

func (this *Value) String() string

func (*Value) Unmarshal

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

func (*Value) XXX_OneofFuncs

func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ValueType

type ValueType int32

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.

const (
	// Invalid, default value.
	VALUE_TYPE_UNSPECIFIED ValueType = 0
	// An undiscriminated variable-length string.
	STRING ValueType = 1
	// An undiscriminated 64-bit signed integer.
	INT64 ValueType = 2
	// An undiscriminated 64-bit floating-point value.
	DOUBLE ValueType = 3
	// An undiscriminated boolean value.
	BOOL ValueType = 4
	// A point in time.
	TIMESTAMP ValueType = 5
	// An IP address.
	IP_ADDRESS ValueType = 6
	// An email address.
	EMAIL_ADDRESS ValueType = 7
	// A URI.
	URI ValueType = 8
	// A DNS name.
	DNS_NAME ValueType = 9
	// A span between two points in time.
	DURATION ValueType = 10
	// A map string -> string, typically used by headers.
	STRING_MAP ValueType = 11
)

func (ValueType) EnumDescriptor

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

func (ValueType) String

func (x ValueType) String() string

type Value_BoolValue

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

func (*Value_BoolValue) Equal

func (this *Value_BoolValue) Equal(that interface{}) bool

func (*Value_BoolValue) GoString

func (this *Value_BoolValue) GoString() string

func (*Value_BoolValue) MarshalTo

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

func (*Value_BoolValue) Size

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

func (*Value_BoolValue) String

func (this *Value_BoolValue) String() string

type Value_DnsNameValue

type Value_DnsNameValue struct {
	DnsNameValue *DNSName `protobuf:"bytes,9,opt,name=dns_name_value,json=dnsNameValue,oneof"`
}

func (*Value_DnsNameValue) Equal

func (this *Value_DnsNameValue) Equal(that interface{}) bool

func (*Value_DnsNameValue) GoString

func (this *Value_DnsNameValue) GoString() string

func (*Value_DnsNameValue) MarshalTo

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

func (*Value_DnsNameValue) Size

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

func (*Value_DnsNameValue) String

func (this *Value_DnsNameValue) String() string

type Value_DoubleValue

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

func (*Value_DoubleValue) Equal

func (this *Value_DoubleValue) Equal(that interface{}) bool

func (*Value_DoubleValue) GoString

func (this *Value_DoubleValue) GoString() string

func (*Value_DoubleValue) MarshalTo

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

func (*Value_DoubleValue) Size

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

func (*Value_DoubleValue) String

func (this *Value_DoubleValue) String() string

type Value_DurationValue

type Value_DurationValue struct {
	DurationValue *Duration `protobuf:"bytes,7,opt,name=duration_value,json=durationValue,oneof"`
}

func (*Value_DurationValue) Equal

func (this *Value_DurationValue) Equal(that interface{}) bool

func (*Value_DurationValue) GoString

func (this *Value_DurationValue) GoString() string

func (*Value_DurationValue) MarshalTo

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

func (*Value_DurationValue) Size

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

func (*Value_DurationValue) String

func (this *Value_DurationValue) String() string

type Value_EmailAddressValue

type Value_EmailAddressValue struct {
	EmailAddressValue *EmailAddress `protobuf:"bytes,8,opt,name=email_address_value,json=emailAddressValue,oneof"`
}

func (*Value_EmailAddressValue) Equal

func (this *Value_EmailAddressValue) Equal(that interface{}) bool

func (*Value_EmailAddressValue) GoString

func (this *Value_EmailAddressValue) GoString() string

func (*Value_EmailAddressValue) MarshalTo

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

func (*Value_EmailAddressValue) Size

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

func (*Value_EmailAddressValue) String

func (this *Value_EmailAddressValue) String() string

type Value_Int64Value

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

func (*Value_Int64Value) Equal

func (this *Value_Int64Value) Equal(that interface{}) bool

func (*Value_Int64Value) GoString

func (this *Value_Int64Value) GoString() string

func (*Value_Int64Value) MarshalTo

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

func (*Value_Int64Value) Size

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

func (*Value_Int64Value) String

func (this *Value_Int64Value) String() string

type Value_IpAddressValue

type Value_IpAddressValue struct {
	IpAddressValue *IPAddress `protobuf:"bytes,5,opt,name=ip_address_value,json=ipAddressValue,oneof"`
}

func (*Value_IpAddressValue) Equal

func (this *Value_IpAddressValue) Equal(that interface{}) bool

func (*Value_IpAddressValue) GoString

func (this *Value_IpAddressValue) GoString() string

func (*Value_IpAddressValue) MarshalTo

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

func (*Value_IpAddressValue) Size

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

func (*Value_IpAddressValue) String

func (this *Value_IpAddressValue) String() string

type Value_StringValue

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

func (*Value_StringValue) Equal

func (this *Value_StringValue) Equal(that interface{}) bool

func (*Value_StringValue) GoString

func (this *Value_StringValue) GoString() string

func (*Value_StringValue) MarshalTo

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

func (*Value_StringValue) Size

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

func (*Value_StringValue) String

func (this *Value_StringValue) String() string

type Value_TimestampValue

type Value_TimestampValue struct {
	TimestampValue *TimeStamp `protobuf:"bytes,6,opt,name=timestamp_value,json=timestampValue,oneof"`
}

func (*Value_TimestampValue) Equal

func (this *Value_TimestampValue) Equal(that interface{}) bool

func (*Value_TimestampValue) GoString

func (this *Value_TimestampValue) GoString() string

func (*Value_TimestampValue) MarshalTo

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

func (*Value_TimestampValue) Size

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

func (*Value_TimestampValue) String

func (this *Value_TimestampValue) String() string

type Value_UriValue

type Value_UriValue struct {
	UriValue *Uri `protobuf:"bytes,10,opt,name=uri_value,json=uriValue,oneof"`
}

func (*Value_UriValue) Equal

func (this *Value_UriValue) Equal(that interface{}) bool

func (*Value_UriValue) GoString

func (this *Value_UriValue) GoString() string

func (*Value_UriValue) MarshalTo

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

func (*Value_UriValue) Size

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

func (*Value_UriValue) String

func (this *Value_UriValue) String() string

Jump to

Keyboard shortcuts

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