client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApiSpec = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApiSpec   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthClientConfig = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClientConfig   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ClientConfigMarshaler   = &github_com_gogo_protobuf_jsonpb.Marshaler{}
	ClientConfigUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)
View Source
var (
	ErrInvalidLengthQuota = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuota   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowService   = fmt.Errorf("proto: integer overflow")
)
View Source
var NetworkFailPolicy_FailPolicy_name = map[int32]string{
	0: "FAIL_OPEN",
	1: "FAIL_CLOSE",
}
View Source
var NetworkFailPolicy_FailPolicy_value = map[string]int32{
	"FAIL_OPEN":  0,
	"FAIL_CLOSE": 1,
}

Functions

This section is empty.

Types

type APIKey

type APIKey struct {
	// Types that are valid to be assigned to Key:
	//	*APIKey_Query
	//	*APIKey_Header
	//	*APIKey_Cookie
	Key isAPIKey_Key `protobuf_oneof:"key"`
}

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

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

func (*APIKey) GetCookie

func (m *APIKey) GetCookie() string

func (*APIKey) GetHeader

func (m *APIKey) GetHeader() string

func (*APIKey) GetKey

func (m *APIKey) GetKey() isAPIKey_Key

func (*APIKey) GetQuery

func (m *APIKey) GetQuery() string

func (*APIKey) Marshal

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

func (*APIKey) MarshalJSON

func (this *APIKey) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for APIKey

func (*APIKey) MarshalTo

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

func (*APIKey) MarshalToSizedBuffer

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

func (*APIKey) ProtoMessage

func (*APIKey) ProtoMessage()

func (*APIKey) Reset

func (m *APIKey) Reset()

func (*APIKey) Size

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

func (*APIKey) String

func (this *APIKey) String() string

func (*APIKey) Unmarshal

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

func (*APIKey) UnmarshalJSON

func (this *APIKey) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for APIKey

func (*APIKey) XXX_DiscardUnknown

func (m *APIKey) XXX_DiscardUnknown()

func (*APIKey) XXX_Marshal

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

func (*APIKey) XXX_Merge

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

func (*APIKey) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*APIKey) XXX_Size

func (m *APIKey) XXX_Size() int

func (*APIKey) XXX_Unmarshal

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

func (*APIKey_Cookie) MarshalTo

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

func (*APIKey_Cookie) MarshalToSizedBuffer

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

func (*APIKey_Cookie) Size

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

func (*APIKey_Cookie) String

func (this *APIKey_Cookie) String() string

type APIKey_Header

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

func (*APIKey_Header) MarshalTo

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

func (*APIKey_Header) MarshalToSizedBuffer

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

func (*APIKey_Header) Size

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

func (*APIKey_Header) String

func (this *APIKey_Header) String() string

type APIKey_Query

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

func (*APIKey_Query) MarshalTo

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

func (*APIKey_Query) MarshalToSizedBuffer

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

func (*APIKey_Query) Size

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

func (*APIKey_Query) String

func (this *APIKey_Query) String() string

type AttributeMatch

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 `` /* 153-byte string literal not displayed */
}

Specifies a match clause to match Istio attributes

func (*AttributeMatch) Descriptor

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

func (*AttributeMatch) Marshal

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

func (*AttributeMatch) MarshalJSON

func (this *AttributeMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for AttributeMatch

func (*AttributeMatch) MarshalTo

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

func (*AttributeMatch) MarshalToSizedBuffer

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

func (*AttributeMatch) ProtoMessage

func (*AttributeMatch) ProtoMessage()

func (*AttributeMatch) Reset

func (m *AttributeMatch) Reset()

func (*AttributeMatch) Size

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

func (*AttributeMatch) String

func (this *AttributeMatch) String() string

func (*AttributeMatch) Unmarshal

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

func (*AttributeMatch) UnmarshalJSON

func (this *AttributeMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for AttributeMatch

func (*AttributeMatch) XXX_DiscardUnknown

func (m *AttributeMatch) XXX_DiscardUnknown()

func (*AttributeMatch) XXX_Marshal

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

func (*AttributeMatch) XXX_Merge

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

func (*AttributeMatch) XXX_Size

func (m *AttributeMatch) XXX_Size() int

func (*AttributeMatch) XXX_Unmarshal

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

type HTTPAPISpec

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 *v1.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"`
}

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

```

<!-- crd generation tags +cue-gen:HTTPAPISpec:schema:istio.mixer.v1.config.client.HTTPAPISpec +cue-gen:HTTPAPISpec:groupName:config.istio.io +cue-gen:HTTPAPISpec:version:v1alpha2 +cue-gen:HTTPAPISpec:storageVersion +cue-gen:HTTPAPISpec:annotations:helm.sh/resource-policy=keep +cue-gen:HTTPAPISpec:labels:app=istio-mixer,chart=istio,heritage=Tiller,release=istio +cue-gen:HTTPAPISpec:subresource:status +cue-gen:HTTPAPISpec:scope:Namespaced +cue-gen:HTTPAPISpec:resource:categories=istio-io,apim-istio-io -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=config.istio.io/v1alpha2 +genclient +k8s:deepcopy-gen=true -->

func (*HTTPAPISpec) DeepCopyInto

func (in *HTTPAPISpec) DeepCopyInto(out *HTTPAPISpec)

DeepCopyInto supports using HTTPAPISpec within kubernetes types, where deepcopy-gen is used.

func (*HTTPAPISpec) Descriptor

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

func (*HTTPAPISpec) Marshal

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

func (*HTTPAPISpec) MarshalJSON

func (this *HTTPAPISpec) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPAPISpec

func (*HTTPAPISpec) MarshalTo

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

func (*HTTPAPISpec) MarshalToSizedBuffer

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

func (*HTTPAPISpec) ProtoMessage

func (*HTTPAPISpec) ProtoMessage()

func (*HTTPAPISpec) Reset

func (m *HTTPAPISpec) Reset()

func (*HTTPAPISpec) Size

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

func (*HTTPAPISpec) String

func (this *HTTPAPISpec) String() string

func (*HTTPAPISpec) Unmarshal

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

func (*HTTPAPISpec) UnmarshalJSON

func (this *HTTPAPISpec) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPAPISpec

func (*HTTPAPISpec) XXX_DiscardUnknown

func (m *HTTPAPISpec) XXX_DiscardUnknown()

func (*HTTPAPISpec) XXX_Marshal

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

func (*HTTPAPISpec) XXX_Merge

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

func (*HTTPAPISpec) XXX_Size

func (m *HTTPAPISpec) XXX_Size() int

func (*HTTPAPISpec) XXX_Unmarshal

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

type HTTPAPISpecBinding

type HTTPAPISpecBinding struct {
	// One or more services to map the listed HTTPAPISpec onto.
	Services []*IstioService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// 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"`
}

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

```

<!-- crd generation tags +cue-gen:HTTPAPISpecBinding:schema:istio.mixer.v1.config.client.HTTPAPISpecBinding +cue-gen:HTTPAPISpecBinding:groupName:config.istio.io +cue-gen:HTTPAPISpecBinding:version:v1alpha2 +cue-gen:HTTPAPISpecBinding:storageVersion +cue-gen:HTTPAPISpecBinding:annotations:helm.sh/resource-policy=keep +cue-gen:HTTPAPISpecBinding:labels:app=istio-mixer,chart=istio,heritage=Tiller,release=istio +cue-gen:HTTPAPISpecBinding:subresource:status +cue-gen:HTTPAPISpecBinding:scope:Namespaced +cue-gen:HTTPAPISpecBinding:resource:categories=istio-io,apim-istio-io -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=config.istio.io/v1alpha2 +genclient +k8s:deepcopy-gen=true -->

func (*HTTPAPISpecBinding) DeepCopyInto

func (in *HTTPAPISpecBinding) DeepCopyInto(out *HTTPAPISpecBinding)

DeepCopyInto supports using HTTPAPISpecBinding within kubernetes types, where deepcopy-gen is used.

func (*HTTPAPISpecBinding) Descriptor

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

func (*HTTPAPISpecBinding) Marshal

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

func (*HTTPAPISpecBinding) MarshalJSON

func (this *HTTPAPISpecBinding) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPAPISpecBinding

func (*HTTPAPISpecBinding) MarshalTo

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

func (*HTTPAPISpecBinding) MarshalToSizedBuffer

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

func (*HTTPAPISpecBinding) ProtoMessage

func (*HTTPAPISpecBinding) ProtoMessage()

func (*HTTPAPISpecBinding) Reset

func (m *HTTPAPISpecBinding) Reset()

func (*HTTPAPISpecBinding) Size

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

func (*HTTPAPISpecBinding) String

func (this *HTTPAPISpecBinding) String() string

func (*HTTPAPISpecBinding) Unmarshal

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

func (*HTTPAPISpecBinding) UnmarshalJSON

func (this *HTTPAPISpecBinding) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPAPISpecBinding

func (*HTTPAPISpecBinding) XXX_DiscardUnknown

func (m *HTTPAPISpecBinding) XXX_DiscardUnknown()

func (*HTTPAPISpecBinding) XXX_Marshal

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

func (*HTTPAPISpecBinding) XXX_Merge

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

func (*HTTPAPISpecBinding) XXX_Size

func (m *HTTPAPISpecBinding) XXX_Size() int

func (*HTTPAPISpecBinding) XXX_Unmarshal

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

type HTTPAPISpecPattern

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 *v1.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"`
}

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

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

func (*HTTPAPISpecPattern) GetPattern

func (m *HTTPAPISpecPattern) GetPattern() isHTTPAPISpecPattern_Pattern

func (*HTTPAPISpecPattern) GetRegex

func (m *HTTPAPISpecPattern) GetRegex() string

func (*HTTPAPISpecPattern) GetUriTemplate

func (m *HTTPAPISpecPattern) GetUriTemplate() string

func (*HTTPAPISpecPattern) Marshal

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

func (*HTTPAPISpecPattern) MarshalJSON

func (this *HTTPAPISpecPattern) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPAPISpecPattern

func (*HTTPAPISpecPattern) MarshalTo

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

func (*HTTPAPISpecPattern) MarshalToSizedBuffer

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

func (*HTTPAPISpecPattern) ProtoMessage

func (*HTTPAPISpecPattern) ProtoMessage()

func (*HTTPAPISpecPattern) Reset

func (m *HTTPAPISpecPattern) Reset()

func (*HTTPAPISpecPattern) Size

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

func (*HTTPAPISpecPattern) String

func (this *HTTPAPISpecPattern) String() string

func (*HTTPAPISpecPattern) Unmarshal

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

func (*HTTPAPISpecPattern) UnmarshalJSON

func (this *HTTPAPISpecPattern) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPAPISpecPattern

func (*HTTPAPISpecPattern) XXX_DiscardUnknown

func (m *HTTPAPISpecPattern) XXX_DiscardUnknown()

func (*HTTPAPISpecPattern) XXX_Marshal

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

func (*HTTPAPISpecPattern) XXX_Merge

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

func (*HTTPAPISpecPattern) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*HTTPAPISpecPattern) XXX_Size

func (m *HTTPAPISpecPattern) XXX_Size() int

func (*HTTPAPISpecPattern) XXX_Unmarshal

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

type HTTPAPISpecPattern_Regex

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

func (*HTTPAPISpecPattern_Regex) MarshalTo

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

func (*HTTPAPISpecPattern_Regex) MarshalToSizedBuffer

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

func (*HTTPAPISpecPattern_Regex) Size

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

func (*HTTPAPISpecPattern_Regex) String

func (this *HTTPAPISpecPattern_Regex) String() string

type HTTPAPISpecPattern_UriTemplate

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

func (*HTTPAPISpecPattern_UriTemplate) MarshalTo

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

func (*HTTPAPISpecPattern_UriTemplate) MarshalToSizedBuffer

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

func (*HTTPAPISpecPattern_UriTemplate) Size

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

func (*HTTPAPISpecPattern_UriTemplate) String

func (this *HTTPAPISpecPattern_UriTemplate) String() string

type HTTPAPISpecReference

type HTTPAPISpecReference struct {
	// 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"`
}

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

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

func (*HTTPAPISpecReference) Marshal

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

func (*HTTPAPISpecReference) MarshalJSON

func (this *HTTPAPISpecReference) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPAPISpecReference

func (*HTTPAPISpecReference) MarshalTo

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

func (*HTTPAPISpecReference) MarshalToSizedBuffer

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

func (*HTTPAPISpecReference) ProtoMessage

func (*HTTPAPISpecReference) ProtoMessage()

func (*HTTPAPISpecReference) Reset

func (m *HTTPAPISpecReference) Reset()

func (*HTTPAPISpecReference) Size

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

func (*HTTPAPISpecReference) String

func (this *HTTPAPISpecReference) String() string

func (*HTTPAPISpecReference) Unmarshal

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

func (*HTTPAPISpecReference) UnmarshalJSON

func (this *HTTPAPISpecReference) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPAPISpecReference

func (*HTTPAPISpecReference) XXX_DiscardUnknown

func (m *HTTPAPISpecReference) XXX_DiscardUnknown()

func (*HTTPAPISpecReference) XXX_Marshal

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

func (*HTTPAPISpecReference) XXX_Merge

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

func (*HTTPAPISpecReference) XXX_Size

func (m *HTTPAPISpecReference) XXX_Size() int

func (*HTTPAPISpecReference) XXX_Unmarshal

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

type HttpClientConfig

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 `` /* 191-byte string literal not displayed */
	// Default destination service name if none was specified in the
	// client request.
	DefaultDestinationService string `` /* 138-byte string literal not displayed */
	// Default attributes to send to Mixer in both Check and
	// Report. This typically includes "destination.ip" and
	// "destination.uid" attributes.
	MixerAttributes *v1.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 *v1.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 `` /* 139-byte string literal not displayed */
}

Defines the client config for HTTP.

func (*HttpClientConfig) Descriptor

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

func (*HttpClientConfig) Marshal

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

func (*HttpClientConfig) MarshalJSON

func (this *HttpClientConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HttpClientConfig

func (*HttpClientConfig) MarshalTo

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

func (*HttpClientConfig) MarshalToSizedBuffer

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

func (*HttpClientConfig) ProtoMessage

func (*HttpClientConfig) ProtoMessage()

func (*HttpClientConfig) Reset

func (m *HttpClientConfig) Reset()

func (*HttpClientConfig) Size

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

func (*HttpClientConfig) String

func (this *HttpClientConfig) String() string

func (*HttpClientConfig) Unmarshal

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

func (*HttpClientConfig) UnmarshalJSON

func (this *HttpClientConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HttpClientConfig

func (*HttpClientConfig) XXX_DiscardUnknown

func (m *HttpClientConfig) XXX_DiscardUnknown()

func (*HttpClientConfig) XXX_Marshal

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

func (*HttpClientConfig) XXX_Merge

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

func (*HttpClientConfig) XXX_Size

func (m *HttpClientConfig) XXX_Size() int

func (*HttpClientConfig) XXX_Unmarshal

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

type IstioService

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 `` /* 153-byte string literal not displayed */
}

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

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

func (*IstioService) Marshal

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

func (*IstioService) MarshalJSON

func (this *IstioService) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioService

func (*IstioService) MarshalTo

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

func (*IstioService) MarshalToSizedBuffer

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

func (*IstioService) ProtoMessage

func (*IstioService) ProtoMessage()

func (*IstioService) Reset

func (m *IstioService) Reset()

func (*IstioService) Size

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

func (*IstioService) String

func (this *IstioService) String() string

func (*IstioService) Unmarshal

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

func (*IstioService) UnmarshalJSON

func (this *IstioService) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioService

func (*IstioService) XXX_DiscardUnknown

func (m *IstioService) XXX_DiscardUnknown()

func (*IstioService) XXX_Marshal

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

func (*IstioService) XXX_Merge

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

func (*IstioService) XXX_Size

func (m *IstioService) XXX_Size() int

func (*IstioService) XXX_Unmarshal

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

type NetworkFailPolicy

type NetworkFailPolicy struct {
	// Specifies the behavior when the client is unable to connect to Mixer.
	Policy NetworkFailPolicy_FailPolicy `` /* 129-byte string literal not displayed */
	// 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 *types.Duration `protobuf:"bytes,3,opt,name=base_retry_wait,json=baseRetryWait,proto3" json:"base_retry_wait,omitempty"`
	// Max time to wait between retries.
	MaxRetryWait *types.Duration `protobuf:"bytes,4,opt,name=max_retry_wait,json=maxRetryWait,proto3" json:"max_retry_wait,omitempty"`
}

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

func (*NetworkFailPolicy) Descriptor

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

func (*NetworkFailPolicy) Marshal

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

func (*NetworkFailPolicy) MarshalJSON

func (this *NetworkFailPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for NetworkFailPolicy

func (*NetworkFailPolicy) MarshalTo

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

func (*NetworkFailPolicy) MarshalToSizedBuffer

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

func (*NetworkFailPolicy) ProtoMessage

func (*NetworkFailPolicy) ProtoMessage()

func (*NetworkFailPolicy) Reset

func (m *NetworkFailPolicy) Reset()

func (*NetworkFailPolicy) Size

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

func (*NetworkFailPolicy) String

func (this *NetworkFailPolicy) String() string

func (*NetworkFailPolicy) Unmarshal

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

func (*NetworkFailPolicy) UnmarshalJSON

func (this *NetworkFailPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for NetworkFailPolicy

func (*NetworkFailPolicy) XXX_DiscardUnknown

func (m *NetworkFailPolicy) XXX_DiscardUnknown()

func (*NetworkFailPolicy) XXX_Marshal

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

func (*NetworkFailPolicy) XXX_Merge

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

func (*NetworkFailPolicy) XXX_Size

func (m *NetworkFailPolicy) XXX_Size() int

func (*NetworkFailPolicy) XXX_Unmarshal

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

type NetworkFailPolicy_FailPolicy

type NetworkFailPolicy_FailPolicy int32

Describes the policy.

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

func (NetworkFailPolicy_FailPolicy) EnumDescriptor

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

func (NetworkFailPolicy_FailPolicy) String

type Quota

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 int32 `protobuf:"varint,2,opt,name=charge,proto3" json:"charge,omitempty"`
}

Specifies a quota to use with quota name and amount.

func (*Quota) Descriptor

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

func (*Quota) Marshal

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

func (*Quota) MarshalJSON

func (this *Quota) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Quota

func (*Quota) MarshalTo

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

func (*Quota) MarshalToSizedBuffer

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

func (*Quota) ProtoMessage

func (*Quota) ProtoMessage()

func (*Quota) Reset

func (m *Quota) Reset()

func (*Quota) Size

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

func (*Quota) String

func (this *Quota) String() string

func (*Quota) Unmarshal

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

func (*Quota) UnmarshalJSON

func (this *Quota) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Quota

func (*Quota) XXX_DiscardUnknown

func (m *Quota) XXX_DiscardUnknown()

func (*Quota) XXX_Marshal

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

func (*Quota) XXX_Merge

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

func (*Quota) XXX_Size

func (m *Quota) XXX_Size() int

func (*Quota) XXX_Unmarshal

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

type QuotaRule

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"`
}

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

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

func (*QuotaRule) Marshal

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

func (*QuotaRule) MarshalJSON

func (this *QuotaRule) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for QuotaRule

func (*QuotaRule) MarshalTo

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

func (*QuotaRule) MarshalToSizedBuffer

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

func (*QuotaRule) ProtoMessage

func (*QuotaRule) ProtoMessage()

func (*QuotaRule) Reset

func (m *QuotaRule) Reset()

func (*QuotaRule) Size

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

func (*QuotaRule) String

func (this *QuotaRule) String() string

func (*QuotaRule) Unmarshal

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

func (*QuotaRule) UnmarshalJSON

func (this *QuotaRule) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for QuotaRule

func (*QuotaRule) XXX_DiscardUnknown

func (m *QuotaRule) XXX_DiscardUnknown()

func (*QuotaRule) XXX_Marshal

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

func (*QuotaRule) XXX_Merge

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

func (*QuotaRule) XXX_Size

func (m *QuotaRule) XXX_Size() int

func (*QuotaRule) XXX_Unmarshal

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

type QuotaSpec

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

Determines the quotas used for individual requests.

<!-- crd generation tags +cue-gen:QuotaSpec:schema:istio.mixer.v1.config.client.QuotaSpec +cue-gen:QuotaSpec:groupName:config.istio.io +cue-gen:QuotaSpec:version:v1alpha2 +cue-gen:QuotaSpec:storageVersion +cue-gen:QuotaSpec:annotations:helm.sh/resource-policy=keep +cue-gen:QuotaSpec:labels:app=istio-mixer,chart=istio,heritage=Tiller,release=istio +cue-gen:QuotaSpec:subresource:status +cue-gen:QuotaSpec:scope:Namespaced +cue-gen:QuotaSpec:resource:categories=istio-io,apim-istio-io -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=config.istio.io/v1alpha2 +genclient +k8s:deepcopy-gen=true -->

func (*QuotaSpec) DeepCopyInto

func (in *QuotaSpec) DeepCopyInto(out *QuotaSpec)

DeepCopyInto supports using QuotaSpec within kubernetes types, where deepcopy-gen is used.

func (*QuotaSpec) Descriptor

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

func (*QuotaSpec) Marshal

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

func (*QuotaSpec) MarshalJSON

func (this *QuotaSpec) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for QuotaSpec

func (*QuotaSpec) MarshalTo

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

func (*QuotaSpec) MarshalToSizedBuffer

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

func (*QuotaSpec) ProtoMessage

func (*QuotaSpec) ProtoMessage()

func (*QuotaSpec) Reset

func (m *QuotaSpec) Reset()

func (*QuotaSpec) Size

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

func (*QuotaSpec) String

func (this *QuotaSpec) String() string

func (*QuotaSpec) Unmarshal

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

func (*QuotaSpec) UnmarshalJSON

func (this *QuotaSpec) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for QuotaSpec

func (*QuotaSpec) XXX_DiscardUnknown

func (m *QuotaSpec) XXX_DiscardUnknown()

func (*QuotaSpec) XXX_Marshal

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

func (*QuotaSpec) XXX_Merge

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

func (*QuotaSpec) XXX_Size

func (m *QuotaSpec) XXX_Size() int

func (*QuotaSpec) XXX_Unmarshal

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

type QuotaSpecBinding

type QuotaSpecBinding struct {
	// One or more services to map the listed QuotaSpec onto.
	Services []*IstioService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// 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"`
}

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

<!-- crd generation tags +cue-gen:QuotaSpecBinding:schema:istio.mixer.v1.config.client.QuotaSpecBinding +cue-gen:QuotaSpecBinding:groupName:config.istio.io +cue-gen:QuotaSpecBinding:version:v1alpha2 +cue-gen:QuotaSpecBinding:storageVersion +cue-gen:QuotaSpecBinding:annotations:helm.sh/resource-policy=keep +cue-gen:QuotaSpecBinding:labels:app=istio-mixer,chart=istio,heritage=Tiller,release=istio +cue-gen:QuotaSpecBinding:subresource:status +cue-gen:QuotaSpecBinding:scope:Namespaced +cue-gen:QuotaSpecBinding:resource:categories=istio-io,apim-istio-io -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=config.istio.io/v1alpha2 +genclient +k8s:deepcopy-gen=true -->

func (*QuotaSpecBinding) DeepCopyInto

func (in *QuotaSpecBinding) DeepCopyInto(out *QuotaSpecBinding)

DeepCopyInto supports using QuotaSpecBinding within kubernetes types, where deepcopy-gen is used.

func (*QuotaSpecBinding) Descriptor

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

func (*QuotaSpecBinding) Marshal

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

func (*QuotaSpecBinding) MarshalJSON

func (this *QuotaSpecBinding) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for QuotaSpecBinding

func (*QuotaSpecBinding) MarshalTo

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

func (*QuotaSpecBinding) MarshalToSizedBuffer

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

func (*QuotaSpecBinding) ProtoMessage

func (*QuotaSpecBinding) ProtoMessage()

func (*QuotaSpecBinding) Reset

func (m *QuotaSpecBinding) Reset()

func (*QuotaSpecBinding) Size

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

func (*QuotaSpecBinding) String

func (this *QuotaSpecBinding) String() string

func (*QuotaSpecBinding) Unmarshal

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

func (*QuotaSpecBinding) UnmarshalJSON

func (this *QuotaSpecBinding) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for QuotaSpecBinding

func (*QuotaSpecBinding) XXX_DiscardUnknown

func (m *QuotaSpecBinding) XXX_DiscardUnknown()

func (*QuotaSpecBinding) XXX_Marshal

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

func (*QuotaSpecBinding) XXX_Merge

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

func (*QuotaSpecBinding) XXX_Size

func (m *QuotaSpecBinding) XXX_Size() int

func (*QuotaSpecBinding) XXX_Unmarshal

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

type QuotaSpecBinding_QuotaSpecReference

type QuotaSpecBinding_QuotaSpecReference struct {
	// 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"`
}

QuotaSpecReference uniquely identifies the QuotaSpec used in the Binding.

func (*QuotaSpecBinding_QuotaSpecReference) Descriptor

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

func (*QuotaSpecBinding_QuotaSpecReference) Marshal

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

func (*QuotaSpecBinding_QuotaSpecReference) MarshalJSON

func (this *QuotaSpecBinding_QuotaSpecReference) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for QuotaSpecBinding_QuotaSpecReference

func (*QuotaSpecBinding_QuotaSpecReference) MarshalTo

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

func (*QuotaSpecBinding_QuotaSpecReference) MarshalToSizedBuffer

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

func (*QuotaSpecBinding_QuotaSpecReference) ProtoMessage

func (*QuotaSpecBinding_QuotaSpecReference) ProtoMessage()

func (*QuotaSpecBinding_QuotaSpecReference) Reset

func (*QuotaSpecBinding_QuotaSpecReference) Size

func (*QuotaSpecBinding_QuotaSpecReference) String

func (*QuotaSpecBinding_QuotaSpecReference) Unmarshal

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

func (*QuotaSpecBinding_QuotaSpecReference) UnmarshalJSON

func (this *QuotaSpecBinding_QuotaSpecReference) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for QuotaSpecBinding_QuotaSpecReference

func (*QuotaSpecBinding_QuotaSpecReference) XXX_DiscardUnknown

func (m *QuotaSpecBinding_QuotaSpecReference) XXX_DiscardUnknown()

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Marshal

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

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Merge

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Size

func (*QuotaSpecBinding_QuotaSpecReference) XXX_Unmarshal

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

type ServiceConfig

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 *v1.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 *v1.Attributes `protobuf:"bytes,8,opt,name=forward_attributes,json=forwardAttributes,proto3" json:"forward_attributes,omitempty"`
}

Defines the per-service client configuration.

func (*ServiceConfig) Descriptor

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

func (*ServiceConfig) Marshal

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

func (*ServiceConfig) MarshalJSON

func (this *ServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServiceConfig

func (*ServiceConfig) MarshalTo

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

func (*ServiceConfig) MarshalToSizedBuffer

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

func (*ServiceConfig) ProtoMessage

func (*ServiceConfig) ProtoMessage()

func (*ServiceConfig) Reset

func (m *ServiceConfig) Reset()

func (*ServiceConfig) Size

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

func (*ServiceConfig) String

func (this *ServiceConfig) String() string

func (*ServiceConfig) Unmarshal

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

func (*ServiceConfig) UnmarshalJSON

func (this *ServiceConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServiceConfig

func (*ServiceConfig) XXX_DiscardUnknown

func (m *ServiceConfig) XXX_DiscardUnknown()

func (*ServiceConfig) XXX_Marshal

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

func (*ServiceConfig) XXX_Merge

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

func (*ServiceConfig) XXX_Size

func (m *ServiceConfig) XXX_Size() int

func (*ServiceConfig) XXX_Unmarshal

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

type StringMatch

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"`
}

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

func (*StringMatch) Descriptor

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

func (*StringMatch) GetExact

func (m *StringMatch) GetExact() string

func (*StringMatch) GetMatchType

func (m *StringMatch) GetMatchType() isStringMatch_MatchType

func (*StringMatch) GetPrefix

func (m *StringMatch) GetPrefix() string

func (*StringMatch) GetRegex

func (m *StringMatch) GetRegex() string

func (*StringMatch) Marshal

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

func (*StringMatch) MarshalJSON

func (this *StringMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for StringMatch

func (*StringMatch) MarshalTo

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

func (*StringMatch) MarshalToSizedBuffer

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

func (*StringMatch) ProtoMessage

func (*StringMatch) ProtoMessage()

func (*StringMatch) Reset

func (m *StringMatch) Reset()

func (*StringMatch) Size

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

func (*StringMatch) String

func (this *StringMatch) String() string

func (*StringMatch) Unmarshal

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

func (*StringMatch) UnmarshalJSON

func (this *StringMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for StringMatch

func (*StringMatch) XXX_DiscardUnknown

func (m *StringMatch) XXX_DiscardUnknown()

func (*StringMatch) XXX_Marshal

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

func (*StringMatch) XXX_Merge

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

func (*StringMatch) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*StringMatch) XXX_Size

func (m *StringMatch) XXX_Size() int

func (*StringMatch) XXX_Unmarshal

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

type StringMatch_Exact

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

func (*StringMatch_Exact) MarshalTo

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

func (*StringMatch_Exact) MarshalToSizedBuffer

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

func (*StringMatch_Exact) Size

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

func (*StringMatch_Exact) String

func (this *StringMatch_Exact) String() string

type StringMatch_Prefix

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

func (*StringMatch_Prefix) MarshalTo

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

func (*StringMatch_Prefix) MarshalToSizedBuffer

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

func (*StringMatch_Prefix) Size

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

func (*StringMatch_Prefix) String

func (this *StringMatch_Prefix) String() string

type StringMatch_Regex

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

func (*StringMatch_Regex) MarshalTo

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

func (*StringMatch_Regex) MarshalToSizedBuffer

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

func (*StringMatch_Regex) Size

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

func (*StringMatch_Regex) String

func (this *StringMatch_Regex) String() string

type TcpClientConfig

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 *v1.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 *types.Duration `protobuf:"bytes,6,opt,name=report_interval,json=reportInterval,proto3" json:"report_interval,omitempty"`
}

Defines the client config for TCP.

func (*TcpClientConfig) Descriptor

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

func (*TcpClientConfig) Marshal

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

func (*TcpClientConfig) MarshalJSON

func (this *TcpClientConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TcpClientConfig

func (*TcpClientConfig) MarshalTo

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

func (*TcpClientConfig) MarshalToSizedBuffer

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

func (*TcpClientConfig) ProtoMessage

func (*TcpClientConfig) ProtoMessage()

func (*TcpClientConfig) Reset

func (m *TcpClientConfig) Reset()

func (*TcpClientConfig) Size

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

func (*TcpClientConfig) String

func (this *TcpClientConfig) String() string

func (*TcpClientConfig) Unmarshal

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

func (*TcpClientConfig) UnmarshalJSON

func (this *TcpClientConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TcpClientConfig

func (*TcpClientConfig) XXX_DiscardUnknown

func (m *TcpClientConfig) XXX_DiscardUnknown()

func (*TcpClientConfig) XXX_Marshal

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

func (*TcpClientConfig) XXX_Merge

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

func (*TcpClientConfig) XXX_Size

func (m *TcpClientConfig) XXX_Size() int

func (*TcpClientConfig) XXX_Unmarshal

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

type TransportConfig

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 *types.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 *v1.Attributes `` /* 134-byte string literal not displayed */
	// 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 `` /* 129-byte string literal not displayed */
	// 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 *types.Duration `protobuf:"bytes,10,opt,name=report_batch_max_time,json=reportBatchMaxTime,proto3" json:"report_batch_max_time,omitempty"`
}

Defines the transport config on how to call Mixer.

func (*TransportConfig) Descriptor

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

func (*TransportConfig) Marshal

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

func (*TransportConfig) MarshalJSON

func (this *TransportConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TransportConfig

func (*TransportConfig) MarshalTo

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

func (*TransportConfig) MarshalToSizedBuffer

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

func (*TransportConfig) ProtoMessage

func (*TransportConfig) ProtoMessage()

func (*TransportConfig) Reset

func (m *TransportConfig) Reset()

func (*TransportConfig) Size

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

func (*TransportConfig) String

func (this *TransportConfig) String() string

func (*TransportConfig) Unmarshal

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

func (*TransportConfig) UnmarshalJSON

func (this *TransportConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TransportConfig

func (*TransportConfig) XXX_DiscardUnknown

func (m *TransportConfig) XXX_DiscardUnknown()

func (*TransportConfig) XXX_Marshal

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

func (*TransportConfig) XXX_Merge

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

func (*TransportConfig) XXX_Size

func (m *TransportConfig) XXX_Size() int

func (*TransportConfig) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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